riemann-elasticsearch 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/riemann-elasticsearch +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7e1225c22e80a1d45434c03d349b067670190f4f
4
- data.tar.gz: bc8a6881c0f6109f7fff364d5cbdb834e713173d
3
+ metadata.gz: 8e09b563a9b759fe2ba680691ae0ad6e4bad3c82
4
+ data.tar.gz: 42e321f853dd683ba9147de0370bd5789353bb64
5
5
  SHA512:
6
- metadata.gz: e9d07022decd084de14f1dc69d956fc98a6f3c007b3069de18d33b84560d6cda900c06aa5f0b6571988f96cfcfe6dbe675b884a487c19efe0ad1ca6facebba8c
7
- data.tar.gz: 276954e703705a80b392a8393f3b5a6e2ecf6546fcf74dea53c8e512eeaac5cd0af5a95110051cc5544b7603acd02795ed43f66f7e01a3f9081842789259e835
6
+ metadata.gz: be5aea8ac6ba286b9e4b36ed39accf22f1a0d28b0491cb5aa0c4bc514c0c116411d285a8a264ad18b589f45edbc77d137e8bb2daf33c77999f8964e83dc3c60c
7
+ data.tar.gz: d6fb756f0b5098a205c8cdc33fc1921b1b3b73bcb8f58897a803a7884a5f01698bc1ab178b5febe2852efd56715c552579db1241b4306293a3b02802716877d5
@@ -72,7 +72,7 @@ class Riemann::Tools::Elasticsearch
72
72
  uri = URI(indices_url)
73
73
  response = safe_get(uri)
74
74
 
75
- return if response.is_bad?(uri)
75
+ return if is_bad?(response, uri)
76
76
 
77
77
  # Assuming that a 200 will give json
78
78
  json = JSON.parse(response.body)
@@ -93,7 +93,7 @@ class Riemann::Tools::Elasticsearch
93
93
  uri = URI(search_url)
94
94
  response = safe_get(uri)
95
95
 
96
- return if response.is_bad?(uri)
96
+ return if is_bad?(response, uri)
97
97
 
98
98
  es_search_index = options[:es_search_index]
99
99
  # Assuming that a 200 will give json
@@ -120,7 +120,7 @@ class Riemann::Tools::Elasticsearch
120
120
  uri = URI(health_url)
121
121
  response = safe_get(uri)
122
122
 
123
- return if response.is_bad?(uri)
123
+ return if is_bad?(response, uri)
124
124
 
125
125
  # Assuming that a 200 will give json
126
126
  json = JSON.parse(response.body)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-elasticsearch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Sandie