fluent-plugin-amplifier-filter 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/fluent-plugin-amplifier-filter.gemspec +1 -1
- data/lib/fluent/plugin/out_amplifier_filter.rb +2 -4
- data/test/helper.rb +3 -1
- 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: 4c418acc02e375c36620d6731b7d65e95435ee36
|
4
|
+
data.tar.gz: d5958fe64969a439d70019f67af14918a8fe073e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2373ab79ff181e64694f0b2118234a451db8be96bcb4b2e755d2e3a86228e978798072978523d2b70cd05d3d007a49b32d5f23dd0e065d044f626044e56a4774
|
7
|
+
data.tar.gz: 044566f36afe08bfa9e3ada239c863ed7153d638ee1b8d87a1d76395f91d0d9b33b642167f2de96dc8119ce0bafba2a29e96372215c199fa140dbc49547958c0
|
@@ -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.6"
|
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}
|
@@ -83,8 +83,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
83
83
|
next unless val
|
84
84
|
updated[key] = amp(val)
|
85
85
|
}
|
86
|
-
|
87
|
-
$log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
86
|
+
log.debug "amplifier tag:#{tag} floor:#{@floor} ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
88
87
|
if updated.size > 0
|
89
88
|
pairs.push [time, record.merge(updated)]
|
90
89
|
else
|
@@ -100,8 +99,7 @@ class Fluent::AmplifierFilterOutput < Fluent::Output
|
|
100
99
|
next unless @key_pattern.match(key)
|
101
100
|
updated[key] = amp(val)
|
102
101
|
}
|
103
|
-
|
104
|
-
$log.debug "amplifier tag:#{tag} debug ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
102
|
+
log.debug "amplifier tag:#{tag} floor:#{@floor} ratio:#{@ratio} updated:#{updated.to_json} record:#{record.to_json}"
|
105
103
|
if updated.size > 0
|
106
104
|
pairs.push [time, record.merge(updated)]
|
107
105
|
else
|
data/test/helper.rb
CHANGED
@@ -12,7 +12,9 @@ require 'test/unit'
|
|
12
12
|
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
13
13
|
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
14
14
|
require 'fluent/test'
|
15
|
-
|
15
|
+
if ENV.has_key?('VERBOSE')
|
16
|
+
$log = Fluent::Log.new(Fluent::Test::DummyLogDevice.new, Fluent::Log::LEVEL_TRACE)
|
17
|
+
else
|
16
18
|
nulllogger = Object.new
|
17
19
|
nulllogger.instance_eval {|obj|
|
18
20
|
def method_missing(method, *args)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fluentd
|