riemann-babbler 0.2.3 → 0.2.4

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.
@@ -61,6 +61,19 @@ module Riemann
61
61
  true
62
62
  end
63
63
 
64
+ # http rest
65
+ def rest_get(url)
66
+ begin
67
+ RestClient.get url
68
+ rescue
69
+ report({
70
+ :service => plugin.service,
71
+ :state => 'critical',
72
+ :description => "Response from #{url}"
73
+ })
74
+ end
75
+ end
76
+
64
77
  def riemann
65
78
  @riemann ||= Riemann::Client.new(
66
79
  :host => options.riemann.host,
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.2.3'
3
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: