pager_duty_rest_client 0.1 → 0.2
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.
- data/lib/pager_duty_rest_client/version.rb +1 -1
- data/lib/pager_duty_rest_client.rb +10 -0
- metadata +3 -3
|
@@ -19,6 +19,16 @@ class PagerDutyRestClient
|
|
|
19
19
|
authenticated_get(path, form_data)
|
|
20
20
|
end
|
|
21
21
|
|
|
22
|
+
def get_incidents_data(extra_args = {})
|
|
23
|
+
path = "/api/v1/incidents"
|
|
24
|
+
authenticated_get(path, extra_args)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def get_incidents_count(extra_args = {})
|
|
28
|
+
path = "/api/v1/incidents/count"
|
|
29
|
+
authenticated_get(path, extra_args)
|
|
30
|
+
end
|
|
31
|
+
|
|
22
32
|
private
|
|
23
33
|
|
|
24
34
|
def authenticated_get(path, form_data)
|
metadata
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pager_duty_rest_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 15
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
|
-
-
|
|
9
|
-
version: "0.
|
|
8
|
+
- 2
|
|
9
|
+
version: "0.2"
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Lucas Parry
|