fluent-plugin-flowcounter 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 416a10332d7ab178acadf8d6894305482d798040
4
- data.tar.gz: c6a281878e6a7a9a8ae2cf8449945e8acdd7bbb0
3
+ metadata.gz: 371f1e2ee7a6a62d3b4a3e2909c60538b24232ed
4
+ data.tar.gz: d54a1744d139dd4d0b5d5ee763911b03f7ba1170
5
5
  SHA512:
6
- metadata.gz: 8908f3cab634a1c7b728fd9f469993ba9e4e34194f6d6c6751a40c0d2bcdc1eb0e38317bc1b2f6f72aa489d9693d323690049b93b3c0d894cb552be86c710aac
7
- data.tar.gz: e40bc4a1c056d4372df6172e303d65966f1c4d2d0286e444f6d02c2e561a103807962d53f3eb393d6777393cc0a28fdc49e2ca3be9f150516b7f78edd887b54a
6
+ metadata.gz: c6ae23f89eced80c2a730296e573fea17a9014495821c33e826c85f676cf7b19d4aae4d59d5a77e0ee8bef8d9ad65fbd85cdde08da2e364dd260e2ecbc7cff1d
7
+ data.tar.gz: 0db64efbdd2df02c80792ee20ed756f8a017db604bee08403fe0dd558d1f4ee3ee3b990982b3436ede57d48e58cb2decdf9a23d31ccfaa13379a2d862a945409
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |gem|
3
3
  gem.name = "fluent-plugin-flowcounter"
4
- gem.version = "0.4.0"
4
+ gem.version = "0.4.1"
5
5
  gem.authors = ["TAGOMORI Satoshi"]
6
6
  gem.email = ["tagomoris@gmail.com"]
7
7
  gem.summary = %q{Fluent plugin to count message flow}
@@ -67,7 +67,7 @@ class Fluent::FlowCounterOutput < Fluent::Output
67
67
  @removed_length = @removed_prefix_string.length
68
68
  end
69
69
  if @count_keys
70
- @count_keys = @count_keys.split(',')
70
+ @count_keys = @count_keys.split(',').map(&:strip)
71
71
  @count_all = (@count_keys == ['*'])
72
72
  @count_bytes = true
73
73
  else
@@ -85,6 +85,18 @@ count_keys message
85
85
  assert_nil d.instance.input_tag_remove_prefix
86
86
  assert_equal ['message'], d.instance.count_keys
87
87
 
88
+ d = create_driver %[
89
+ output_style tagged
90
+ count_keys f1, f2, f3
91
+ ]
92
+ assert_equal :minute, d.instance.unit
93
+ assert_equal 60, d.instance.tick
94
+ assert_equal :tag, d.instance.aggregate
95
+ assert_equal :tagged, d.instance.output_style
96
+ assert_equal 'flowcount', d.instance.tag
97
+ assert_nil d.instance.input_tag_remove_prefix
98
+ assert_equal ['f1', 'f2', 'f3'], d.instance.count_keys
99
+
88
100
  d = create_driver %[
89
101
  unit day
90
102
  aggregate all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-flowcounter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - TAGOMORI Satoshi