fluent-plugin-flowcounter 0.4.0 → 0.4.1
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.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371f1e2ee7a6a62d3b4a3e2909c60538b24232ed
|
4
|
+
data.tar.gz: d54a1744d139dd4d0b5d5ee763911b03f7ba1170
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|