fluent-plugin-http 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d23fcad9c2b487dc5147ee19e50c353f1c3c5f1e
4
- data.tar.gz: ffb550405925174a9c6a1dc0cfb5e9530035f908
3
+ metadata.gz: 7b6e59ff949dc9a5eeaa20178dadde90230e5d9d
4
+ data.tar.gz: 7d4f41c91f080e8200fdefbb846e15bd40520c39
5
5
  SHA512:
6
- metadata.gz: 45dd2f70ec71a9e3f00269da9c78785594948512561c3b2aaa9bfdc0586d263b0230a20ad92b0a620eab5af37c394f55e1f4dc63865b5706e248853cd4fbe56f
7
- data.tar.gz: dbc22b3782ec9d0e21c709ca9032085d4c8d358e7908368a3d2fcb94f47af4c538bd313635b39c3fccaa91d5387c20f615e3cd1e100b2dfa86b3af60d972cf32
6
+ metadata.gz: b4fdcc6ed77484081155defb69c1e8bbe443e2f47f77e5990c58ab46d3c5d9b02117fbbd8e60a8579037ae125f5c690e8f44cb4e45fb0911a1c28fe2ccd42e34
7
+ data.tar.gz: 637a4e31b5d14826981a4b34af799c56c53866abffb570d63443535538da1957cd9afb7f3892aa745d379a187baa1d564d2dd49cc463e58c560d4ae7e2c765c8
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  module Fluent
3
4
  class HTTPOutput
4
5
  # Unsuccessful response error
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  require 'fluent/output'
3
4
  require 'uri'
4
5
  require 'net/http'
@@ -7,7 +8,7 @@ require 'json'
7
8
  # Fluentd
8
9
  module Fluent
9
10
  # The out_http buffered output plugin sends event records via HTTP.
10
- class HTTPOutput < BufferedOutput
11
+ class HTTPOutput < ObjectBufferedOutput
11
12
  Fluent::Plugin.register_output('http', self)
12
13
 
13
14
  desc 'URL to send event records to'
@@ -73,7 +74,10 @@ module Fluent
73
74
  # @return void
74
75
  def write(chunk)
75
76
  records = []
76
- chunk.msgpack_each { |_tag, _time, record| records << record }
77
+
78
+ chunk.msgpack_each do |tag_time_record|
79
+ records << (_record = tag_time_record.last)
80
+ end
77
81
 
78
82
  post_records = post_records_request(records)
79
83
  response = http.request(post_records)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-08 00:00:00.000000000 Z
11
+ date: 2017-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd