riemann-babbler 0.2.6 → 0.2.7

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.
@@ -33,7 +33,10 @@ module Riemann
33
33
  alias :opts :options
34
34
 
35
35
  def report(event)
36
- report_with_diff(event) and return if event[:is_diff]
36
+ case event[:metric]
37
+ when Hash
38
+ report_with_diff(event) and return
39
+ end
37
40
  event[:tags] = options.riemann.tags unless options.riemann.tags.nil?
38
41
  event[:host] = host
39
42
  log.debug "Report status: #{event.inspect}"
@@ -45,7 +48,7 @@ module Riemann
45
48
  event[:metric][:value] = current_metric - @storage[ event[:service] ] if @storage.has_key? event[:service]
46
49
  @storage[ event[:service] ] = current_metric
47
50
  event[:state] = state(current_metric) unless plugin.states.critical.nil?
48
- event.delete(:is_diff)
51
+ event[:metric] = event[:metric][:value]
49
52
  report(event)
50
53
  end
51
54
 
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: