fluent-plugin-datacalculator 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/example.conf CHANGED
@@ -2,18 +2,12 @@
2
2
  type forward
3
3
  </source>
4
4
  <match payment.**>
5
- type copy
6
- <store>
7
- type stdout
8
- </store>
9
- <store>
10
- type datacalculate
11
- tag result
12
- count_interval 5s
13
- aggregate all
14
- formulas sum = amount * price, cnt = 1, total = amount
15
- finalizer ave = cnt > 0 ? 1.00 * sum / cnt : 0
16
- </store>
5
+ type datacalculator
6
+ tag result
7
+ count_interval 5s
8
+ aggregate all
9
+ formulas sum = amount * price, cnt = 1, total = amount
10
+ finalizer ave = cnt > 0 ? 1.00 * sum / cnt : 0
17
11
  </match>
18
12
 
19
13
  <match result>
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "fluent-plugin-datacalculator"
6
- s.version = "0.0.0"
6
+ s.version = "0.0.1"
7
7
  s.authors = ["Muddy Dixon"]
8
8
  s.email = ["muddydixon@gmail.com"]
9
9
  s.homepage = "https://github.com/muddydixon/fluent-plugin-datacalculator"
@@ -1,5 +1,5 @@
1
1
  class Fluent::DataCalculatorOutput < Fluent::Output
2
- Fluent::Plugin.register_output('datacalculate', self)
2
+ Fluent::Plugin.register_output('datacalculator', self)
3
3
 
4
4
  config_param :count_interval, :time, :default => nil
5
5
  config_param :unit, :string, :default => 'minute'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-datacalculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: