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 +4 -4
- data/lib/fluent/plugin/http/error.rb +1 -0
- data/lib/fluent/plugin/out_http.rb +6 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b6e59ff949dc9a5eeaa20178dadde90230e5d9d
|
4
|
+
data.tar.gz: 7d4f41c91f080e8200fdefbb846e15bd40520c39
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4fdcc6ed77484081155defb69c1e8bbe443e2f47f77e5990c58ab46d3c5d9b02117fbbd8e60a8579037ae125f5c690e8f44cb4e45fb0911a1c28fe2ccd42e34
|
7
|
+
data.tar.gz: 637a4e31b5d14826981a4b34af799c56c53866abffb570d63443535538da1957cd9afb7f3892aa745d379a187baa1d564d2dd49cc463e58c560d4ae7e2c765c8
|
@@ -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 <
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2017-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|