fluent-plugin-metricsense 0.3.0 → 0.3.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: a14ac0f9b4f2783eb8147828e96595f1d95f90be
4
- data.tar.gz: 5953b51ea70ccb737fbde71b56f7bc99d45d88aa
3
+ metadata.gz: ebe8e81e18307cb99946d1440e937b23426a7fa3
4
+ data.tar.gz: f8ea8e769f2b91ee8d8f738f19698c88d4f5803c
5
5
  SHA512:
6
- metadata.gz: 4d2cbc44ecb6f2a92d6ff225d33a8c5d500a4ebed48e1d0b2e211900d06060e9fd72785b95d07d6ede888bf3e7edc56fa4101f3a424dbe47631808baa984c2e3
7
- data.tar.gz: 913fe134f124081c7c392ad2ce84da0a20e36757a13ed3f5e407532b9adf4961081f06287f7e6be01ac3190875ef6028a129c87362b2b4ab1d9139d6733850f2
6
+ metadata.gz: ef1fdac5be54fce8d388345123e65639801901898f47561b0026d2f6f1a514280bac5073601b5819c918e04dee0ccd01db4a0536c2ee87ca58334125774640b4
7
+ data.tar.gz: d73a48b3091533eae618bde06f3cb9166e781854c9e06853953daeddcca64d5fb58966bba09f74c7919de84790ba83adbfb4377bdf83940c9f8f47e18f924d08
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -254,15 +254,6 @@ module Fluent
254
254
  end
255
255
  end
256
256
 
257
- class SegmentedTotalUpdater < AddUpdater
258
- def initialize(original_mode)
259
- super()
260
- @mode = original_mode
261
- end
262
-
263
- attr_reader :mode
264
- end
265
-
266
257
  AggregationKey = Struct.new(:tag, :time, :seg_val, :seg_key)
267
258
 
268
259
  def write(chunk)
@@ -286,29 +277,18 @@ module Fluent
286
277
  updater = AddUpdater
287
278
  end
288
279
 
289
- if segments.empty?
290
- # simple values
291
- ak = AggregationKey.new(tag, time, nil, nil)
292
- (simple_counters[ak] ||= updater.new).add(value)
293
- else
294
- # segmented values
295
- segments.each_pair {|seg_key,seg_val|
296
- ak = AggregationKey.new(tag, time, seg_val, seg_key)
297
- (segmented_counters[ak] ||= updater.new).add(value)
298
- }
299
- end
300
- }
280
+ # simple values
281
+ ak = AggregationKey.new(tag, time, nil, nil)
282
+ (simple_counters[ak] ||= updater.new).add(value)
301
283
 
302
- # calculate total value of segmented values
303
- segmented_totals = {}
304
- segmented_counters.each_pair {|ak,up|
305
- ak = AggregationKey.new(ak.tag, ak.time, nil, nil)
306
- (segmented_totals[ak] ||= SegmentedTotalUpdater.new(up.mode)).add(up.value)
284
+ # segmented values
285
+ segments.each_pair {|seg_key,seg_val|
286
+ ak = AggregationKey.new(tag, time, seg_val, seg_key)
287
+ (segmented_counters[ak] ||= updater.new).add(value)
288
+ }
307
289
  }
308
290
 
309
- # simple_counters have higher priority than segmented_totals
310
- counters = segmented_totals
311
- counters.merge!(segmented_counters)
291
+ counters = segmented_counters
312
292
  counters.merge!(simple_counters)
313
293
 
314
294
  data = []
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fluent-plugin-metricsense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sadayuki Furuhashi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-27 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fluentd
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.5
121
+ rubygems_version: 2.5.1
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: MetricSense - application metrics aggregation plugin for Fluentd