upstreamstatus 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/upstreamstatus/version.rb +1 -1
- data/lib/upstreamstatus.rb +2 -0
- 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: 79a33e1f1f33ab1afa51f286e047655360b18e19
|
4
|
+
data.tar.gz: acc60a82ad8ae2bbeeb75d1280363c4f1b7b8315
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f9a34cdc7896dcea5e314999ba5f8d6b24f121decf9867ad78a1aa6143185327821f7125088b348d1e71b02f667cb746e102d7a7cb607fd1a9d39a51a6e2286
|
7
|
+
data.tar.gz: c76513567f352014a3408f1eeb66b34bfa92b764d06580bcd7411266c4636c705a93230414339a136ac1b115886205e7922637be844d9f090178448178f16ad4
|
data/lib/upstreamstatus.rb
CHANGED
@@ -137,6 +137,8 @@ class Upstreamstatus
|
|
137
137
|
"#{pagerduty_api_url}/incidents?service_ids[]=#{pagerduty_service_id}&statuses[]=triggered&statuses[]=acknowledged&offset=#{offset}"
|
138
138
|
)
|
139
139
|
fail "Result: #{r.inspect}" unless (200..299).include?(r.code)
|
140
|
+
return [] if r.body['total'].nil?
|
141
|
+
|
140
142
|
pointer = r.body['limit'] + offset
|
141
143
|
r.body['incidents'] + (pointer < r.body['total'] ? active_alerts_paged(pointer) : [])
|
142
144
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: upstreamstatus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Herot
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unirest
|