fluent-plugin-http-client 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/example/cmd.sh +1 -0
- data/example/fluentd.conf +1 -0
- data/lib/fluent/plugin/http_client/version.rb +1 -1
- data/lib/fluent/plugin/in_http_client.rb +6 -6
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68f891862d8ed0d65bee31528b8ea940360140f5f364c00b5ffb0e8d5028a00e
|
|
4
|
+
data.tar.gz: c46abc77c9c14ef2c8d882d87ad5e9ed6fa44526a8285149d39d61bf9c6f5f63
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7fffd4e41722471f9008c51295a0cb37ec00983288c2f30703ba66addbdfb177064da9bf224902a3aa1792f8b8ec124aea6fe4cd63cf71b0069c9afd7b18dabd
|
|
7
|
+
data.tar.gz: b5e58dadf0a8de160a46558840bad56f606d29caa63b27e8dd08d8739376962f950fe56de7481b18e9996289349e7aaf287d9eb72225be320cce9ab2f025c42f
|
data/example/cmd.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bundle exec fluentd -c fluentd.conf
|
data/example/fluentd.conf
CHANGED
|
@@ -107,17 +107,17 @@ module Fluent
|
|
|
107
107
|
response = @client.send(@http_method)
|
|
108
108
|
|
|
109
109
|
{
|
|
110
|
-
status
|
|
111
|
-
success
|
|
112
|
-
response
|
|
110
|
+
'status' => response.status,
|
|
111
|
+
'success' => response.success?,
|
|
112
|
+
'response' => response.body
|
|
113
113
|
}
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
def parse_exception(exception)
|
|
117
117
|
{
|
|
118
|
-
status
|
|
119
|
-
success
|
|
120
|
-
error
|
|
118
|
+
'status' => -1,
|
|
119
|
+
'success' => false,
|
|
120
|
+
'error' => exception.to_s
|
|
121
121
|
}
|
|
122
122
|
end
|
|
123
123
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fluent-plugin-http-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Thomas Tych
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bump
|
|
@@ -257,6 +257,7 @@ files:
|
|
|
257
257
|
- LICENSE.txt
|
|
258
258
|
- README.md
|
|
259
259
|
- Rakefile
|
|
260
|
+
- example/cmd.sh
|
|
260
261
|
- example/fluentd.conf
|
|
261
262
|
- fluent-plugin-http-client.gemspec
|
|
262
263
|
- lib/fluent/plugin/http_client/version.rb
|