fluent-plugin-amplifier-filter 0.1.1 → 0.1.2
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.
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
2
|
Gem::Specification.new do |gem|
|
3
3
|
gem.name = "fluent-plugin-amplifier-filter"
|
4
|
-
gem.version = "0.1.
|
4
|
+
gem.version = "0.1.2"
|
5
5
|
gem.authors = ["TAGOMORI Satoshi"]
|
6
6
|
gem.email = ["tagomoris@gmail.com"]
|
7
7
|
gem.summary = %q{plugin to re-emit messages with amplified values}
|
@@ -13,6 +13,5 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
14
14
|
gem.require_paths = ["lib"]
|
15
15
|
|
16
|
-
gem.add_development_dependency "fluentd"
|
17
16
|
gem.add_runtime_dependency "fluentd"
|
18
17
|
end
|
@@ -78,8 +78,12 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
78
78
|
next unless val
|
79
79
|
updated[key] = amp(val)
|
80
80
|
}
|
81
|
+
$log.info "amplifier tag:#{tag} amp:#{self.method(:amp)}"
|
82
|
+
$log.info "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
81
83
|
if updated.size > 0
|
82
84
|
pairs.push [time, record.merge(updated)]
|
85
|
+
else
|
86
|
+
pairs.push [time, record.dup]
|
83
87
|
end
|
84
88
|
}
|
85
89
|
else @key_pattern
|
@@ -91,8 +95,12 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
91
95
|
next unless @key_pattern.match(key)
|
92
96
|
updated[key] = amp(val)
|
93
97
|
}
|
98
|
+
$log.info "amplifier tag:#{tag} amp:#{self.method(:amp)}"
|
99
|
+
$log.info "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
94
100
|
if updated.size > 0
|
95
101
|
pairs.push [time, record.merge(updated)]
|
102
|
+
else
|
103
|
+
pairs.push [time, record.dup]
|
96
104
|
end
|
97
105
|
}
|
98
106
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent-plugin-amplifier-filter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,24 +9,8 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
|
-
- !ruby/object:Gem::Dependency
|
15
|
-
name: fluentd
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :development
|
23
|
-
prerelease: false
|
24
|
-
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
|
-
requirements:
|
27
|
-
- - ! '>='
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '0'
|
30
14
|
- !ruby/object:Gem::Dependency
|
31
15
|
name: fluentd
|
32
16
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
63
|
version: '0'
|
80
64
|
requirements: []
|
81
65
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.8.
|
66
|
+
rubygems_version: 1.8.23
|
83
67
|
signing_key:
|
84
68
|
specification_version: 3
|
85
69
|
summary: plugin to re-emit messages with amplified values
|