fluent-plugin-buffered-metrics 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/lib/fluent/metrics_backends.rb +2 -2
- metadata +3 -3
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
@@ -171,7 +171,7 @@ module Fluent
|
|
171
171
|
end
|
172
172
|
|
173
173
|
def serialize_entry(entry,time)
|
174
|
-
|
174
|
+
if entry.is_a?(Hash) and entry.key?('name') and entry['name'].is_a?(String) and entry.key?('value') and entry['value'].is_a?(Numeric) and time.is_a?(Numeric)
|
175
175
|
return sprintf(
|
176
176
|
'%s%s %s %i',
|
177
177
|
entry.key?('prefix') ? entry['prefix'] + '.' : '',
|
@@ -190,7 +190,7 @@ module Fluent
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def serialize_entry(entry,time)
|
193
|
-
|
193
|
+
if entry.is_a?(Hash) and entry.key?('name') and entry['name'].is_a?(String) and entry.key?('value') and entry['value'].is_a?(Numeric) and time.is_a?(Numeric)
|
194
194
|
return sprintf(
|
195
195
|
'%s%s:%s|c',
|
196
196
|
entry.key?('prefix') ? entry['prefix'] + '.' : '',
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-buffered-metrics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 23
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Alex Yamauchi
|
metadata.gz.sig
CHANGED
Binary file
|