runscope_statuspage 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -0
- data/lib/runscope_statuspage.rb +20 -9
- data/lib/runscope_statuspage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 385a56abb3df60bf7edb5b8a6f8524c09f4ea2c0
|
4
|
+
data.tar.gz: 4ffd7053461283181afdbd6ebc7b98418219a588
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f955268e622c2119e9b0ff89dfe8a2a8f4db2bd03c6f270af83cf9de57176e5981bff7e2d54334b1e2fed9f9b8138debf3b8718c592ff9c31abfe16da80602f5
|
7
|
+
data.tar.gz: 18759424dae4ab3792ce0b8c8b465b188f6fdbbae4be5662d7f78722687853a56dbd24c6c0b88c84b5ccc5d13761791c6a18dbc8ff656425f79552aef608c613
|
data/README.md
CHANGED
data/lib/runscope_statuspage.rb
CHANGED
@@ -70,7 +70,9 @@ module RunscopeStatuspage
|
|
70
70
|
@rs.buckets.each do |bucket|
|
71
71
|
@rs.radars(bucket['key']).each do |radar|
|
72
72
|
begin
|
73
|
-
|
73
|
+
latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
|
74
|
+
|
75
|
+
if latest['result'] != 'pass' and latest['result'] != 'working'
|
74
76
|
failed_radars.push radar
|
75
77
|
end
|
76
78
|
rescue RunscopeAPIException => r
|
@@ -116,7 +118,9 @@ module RunscopeStatuspage
|
|
116
118
|
if bucket['name'] == bucket_name
|
117
119
|
@rs.radars(bucket['key']).each do |radar|
|
118
120
|
begin
|
119
|
-
|
121
|
+
latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
|
122
|
+
|
123
|
+
if latest['result'] != 'pass' and radar['name'] == radar_name and latest['result'] != 'working'
|
120
124
|
failed_radars.push radar
|
121
125
|
end
|
122
126
|
rescue RunscopeAPIException => r
|
@@ -163,7 +167,9 @@ module RunscopeStatuspage
|
|
163
167
|
if bucket['name'] == opts[:bucket_name]
|
164
168
|
@rs.radars(bucket['key']).each do |radar|
|
165
169
|
begin
|
166
|
-
|
170
|
+
latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
|
171
|
+
|
172
|
+
if latest['result'] != 'pass' and opts[:radar_names].include?(radar['name']) and latest['result'] != 'working'
|
167
173
|
failed_radars.push radar
|
168
174
|
end
|
169
175
|
rescue RunscopeAPIException => r
|
@@ -210,9 +216,11 @@ module RunscopeStatuspage
|
|
210
216
|
if bucket['name'] == opts[:bucket_name]
|
211
217
|
@rs.radars(bucket['key']).each do |radar|
|
212
218
|
begin
|
213
|
-
|
214
|
-
|
215
|
-
|
219
|
+
latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
|
220
|
+
|
221
|
+
if latest['result'] != 'pass' and latest['result'] != 'working'
|
222
|
+
failed_radars.push radar
|
223
|
+
end
|
216
224
|
rescue RunscopeAPIException => r
|
217
225
|
p r
|
218
226
|
next
|
@@ -250,6 +258,7 @@ module RunscopeStatuspage
|
|
250
258
|
opts[:no_sp] = opts.key?(:no_sp) ? opts[:no_sp] : false
|
251
259
|
|
252
260
|
failed_radars = []
|
261
|
+
|
253
262
|
event_info = []
|
254
263
|
|
255
264
|
reinit_rest
|
@@ -258,9 +267,11 @@ module RunscopeStatuspage
|
|
258
267
|
if opts[:bucket_names].include?(bucket['name'])
|
259
268
|
@rs.radars(bucket['key']).each do |radar|
|
260
269
|
begin
|
261
|
-
|
262
|
-
|
263
|
-
|
270
|
+
latest = @rs.latest_radar_result(bucket['key'], radar['uuid'])
|
271
|
+
|
272
|
+
if latest['result'] != 'pass' and latest['result'] != 'working'
|
273
|
+
failed_radars.push radar
|
274
|
+
end
|
264
275
|
rescue RunscopeAPIException => r
|
265
276
|
p r
|
266
277
|
next
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runscope_statuspage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Stancu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|