pager_duty 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -3
- data/fixtures/vcr_cassettes/incidents/create_incident_notes/PDP31UM.yml +62 -0
- data/fixtures/vcr_cassettes/log_entries/index/no_query.yml +490 -0
- data/fixtures/vcr_cassettes/log_entries/index/time_zone.yml +490 -0
- data/fixtures/vcr_cassettes/log_entries/log_entry.yml +63 -0
- data/fixtures/vcr_cassettes/log_entries/log_entry_EST.yml +63 -0
- data/fixtures/vcr_cassettes/maintenance_windows/create.yml +65 -0
- data/fixtures/vcr_cassettes/maintenance_windows/delete.yml +164 -0
- data/fixtures/vcr_cassettes/maintenance_windows/delete_in_past.yml +117 -0
- data/fixtures/vcr_cassettes/maintenance_windows/get_PIVGPA6.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/all.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/future.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/no_query.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/ongoing.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/past.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/index/query.yml +62 -0
- data/fixtures/vcr_cassettes/maintenance_windows/update.yml +181 -0
- data/fixtures/vcr_cassettes/notifications/index/no_query.yml +57 -0
- data/fixtures/vcr_cassettes/notifications/index/query_since.yml +83 -0
- data/fixtures/vcr_cassettes/notifications/index/query_since_email_notification.yml +83 -0
- data/fixtures/vcr_cassettes/notifications/index/query_since_est.yml +83 -0
- data/fixtures/vcr_cassettes/notifications/index/query_since_sms_notification.yml +58 -0
- data/fixtures/vcr_cassettes/on_calls/index/query.yml +78 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_.yml +48 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_earliest.yml +78 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_include_users.yml +102 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_include_users_and_schedules.yml +154 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_since_est.yml +78 -0
- data/fixtures/vcr_cassettes/on_calls/index/query_since_until.yml +78 -0
- data/fixtures/vcr_cassettes/vendors/index/no_query.yml +181 -0
- data/fixtures/vcr_cassettes/vendors/vendor.yml +63 -0
- data/lib/pager_duty/client.rb +10 -0
- data/lib/pager_duty/client/abilities.rb +4 -8
- data/lib/pager_duty/client/addons.rb +16 -18
- data/lib/pager_duty/client/escalation_policies.rb +3 -3
- data/lib/pager_duty/client/incidents.rb +19 -8
- data/lib/pager_duty/client/log_entries.rb +64 -0
- data/lib/pager_duty/client/maintenance_windows.rb +138 -0
- data/lib/pager_duty/client/notifications.rb +37 -0
- data/lib/pager_duty/client/on_calls.rb +59 -0
- data/lib/pager_duty/client/vendors.rb +38 -0
- data/lib/pager_duty/version.rb +1 -1
- data/pager_duty.gemspec +1 -0
- metadata +51 -2
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows/PIVGPA6
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:23:03 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"75db3aa431029b2262dedfdbc63ca623"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- fc5165aeda4b0dbf7ffdb9d5a4efb4f0
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_window":{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:23:02 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows?filter=all
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:18:16 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"ad58185f26ddfea5309c894bd27cbe18"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 245f29378fa93f75d4905408e12ac7e9
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:18:16 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows?filter=future
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:16:52 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"ad58185f26ddfea5309c894bd27cbe18"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 3d42b597466ec151747a28d96618c849
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:16:52 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:13:50 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"7a1e2edcec411d03e6f0dbfdbad44804"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 19cb79542aa816381dd6a9871f6b34f3
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:22:00-04:00","end_time":"2017-05-27T11:32:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:13:50 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows?filter=ongoing
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:17:29 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"ad58185f26ddfea5309c894bd27cbe18"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 13224cf5d01026a08d884c93e6852b40
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:17:28 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows?filter=past
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:19:09 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"ad58185f26ddfea5309c894bd27cbe18"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 7ef8f3bfc1a126dd41a3acdab82d12f6
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:19:09 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,62 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows?query=scheduled
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:16:17 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"1b8597bcbc0fcbdbdf271171fa0fb06a"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- b12b2302dc54c15cb5881e36a00c0bbb
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_windows":[{"id":"PIVGPA6","type":"maintenance_window","summary":"This
|
56
|
+
is scheduled","self":"https://api.pagerduty.com/maintenance_windows/PIVGPA6","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PIVGPA6","sequence_number":1,"start_time":"2017-05-27T11:17:00-04:00","end_time":"2017-05-27T11:18:00-04:00","description":"This
|
57
|
+
is scheduled","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}],"query":"scheduled","limit":25,"offset":0,"total":null,"more":false}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:16:17 GMT
|
62
|
+
recorded_with: VCR 3.0.3
|
@@ -0,0 +1,181 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.pagerduty.com/maintenance_windows/P3BSCJV
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/vnd.pagerduty+json;version=2
|
12
|
+
User-Agent:
|
13
|
+
- PagerDuty Ruby Gem 0.1.1
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
Authorization:
|
17
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
18
|
+
Accept-Encoding:
|
19
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
20
|
+
response:
|
21
|
+
status:
|
22
|
+
code: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Server:
|
26
|
+
- nginx
|
27
|
+
Date:
|
28
|
+
- Sat, 27 May 2017 15:47:06 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json; charset=utf-8
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- keep-alive
|
35
|
+
Status:
|
36
|
+
- 200 OK
|
37
|
+
Access-Control-Allow-Methods:
|
38
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
39
|
+
Access-Control-Max-Age:
|
40
|
+
- '1728000'
|
41
|
+
Access-Control-Allow-Origin:
|
42
|
+
- "*"
|
43
|
+
Access-Control-Allow-Headers:
|
44
|
+
- Authorization, Content-Type, From
|
45
|
+
X-Ua-Compatible:
|
46
|
+
- IE=Edge,chrome=1
|
47
|
+
Etag:
|
48
|
+
- W/"be31cb80634aac0ea4f50dc3def4d028"
|
49
|
+
Cache-Control:
|
50
|
+
- max-age=0, private, must-revalidate
|
51
|
+
X-Request-Id:
|
52
|
+
- 74feebdf664ab5ad9b4360c43b7e1d29
|
53
|
+
body:
|
54
|
+
encoding: ASCII-8BIT
|
55
|
+
string: '{"maintenance_window":{"id":"P3BSCJV","type":"maintenance_window","summary":"Test
|
56
|
+
Description.","self":"https://api.pagerduty.com/maintenance_windows/P3BSCJV","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/P3BSCJV","sequence_number":3,"start_time":"2017-05-28T11:43:00-04:00","end_time":"2017-05-28T12:43:00-04:00","description":"Test
|
57
|
+
Description.","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
58
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
59
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}}'
|
60
|
+
http_version:
|
61
|
+
recorded_at: Sat, 27 May 2017 15:47:06 GMT
|
62
|
+
- request:
|
63
|
+
method: put
|
64
|
+
uri: https://api.pagerduty.com/maintenance_windows/P3BSCJV
|
65
|
+
body:
|
66
|
+
encoding: UTF-8
|
67
|
+
string: '{"maintenance_window":{"type":"maintenance_window","start_time":"2017-05-28T11:43:00-04:00","end_time":"2017-05-28T12:43:00-04:00","description":"Updated
|
68
|
+
Description","services":[{"id":"P407C9R","type":"service_reference"}]}}'
|
69
|
+
headers:
|
70
|
+
Accept:
|
71
|
+
- application/vnd.pagerduty+json;version=2
|
72
|
+
User-Agent:
|
73
|
+
- PagerDuty Ruby Gem 0.1.1
|
74
|
+
Content-Type:
|
75
|
+
- application/json
|
76
|
+
Authorization:
|
77
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
78
|
+
Accept-Encoding:
|
79
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
80
|
+
response:
|
81
|
+
status:
|
82
|
+
code: 200
|
83
|
+
message: OK
|
84
|
+
headers:
|
85
|
+
Server:
|
86
|
+
- nginx
|
87
|
+
Date:
|
88
|
+
- Sat, 27 May 2017 15:47:07 GMT
|
89
|
+
Content-Type:
|
90
|
+
- application/json; charset=utf-8
|
91
|
+
Transfer-Encoding:
|
92
|
+
- chunked
|
93
|
+
Connection:
|
94
|
+
- keep-alive
|
95
|
+
Status:
|
96
|
+
- 200 OK
|
97
|
+
Access-Control-Allow-Methods:
|
98
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
99
|
+
Access-Control-Max-Age:
|
100
|
+
- '1728000'
|
101
|
+
Access-Control-Allow-Origin:
|
102
|
+
- "*"
|
103
|
+
Access-Control-Allow-Headers:
|
104
|
+
- Authorization, Content-Type, From
|
105
|
+
X-Ua-Compatible:
|
106
|
+
- IE=Edge,chrome=1
|
107
|
+
Etag:
|
108
|
+
- W/"e90be3d703b4d674164cd15a1fd2f84e"
|
109
|
+
Cache-Control:
|
110
|
+
- max-age=0, private, must-revalidate
|
111
|
+
X-Request-Id:
|
112
|
+
- 5fbe6d0abff497ed317a0f8afb102c66
|
113
|
+
body:
|
114
|
+
encoding: ASCII-8BIT
|
115
|
+
string: '{"maintenance_window":{"id":"P3BSCJV","type":"maintenance_window","summary":"Updated
|
116
|
+
Description","self":"https://api.pagerduty.com/maintenance_windows/P3BSCJV","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/P3BSCJV","sequence_number":3,"start_time":"2017-05-28T11:43:00-04:00","end_time":"2017-05-28T12:43:00-04:00","description":"Updated
|
117
|
+
Description","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
118
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
119
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}}'
|
120
|
+
http_version:
|
121
|
+
recorded_at: Sat, 27 May 2017 15:47:07 GMT
|
122
|
+
- request:
|
123
|
+
method: get
|
124
|
+
uri: https://api.pagerduty.com/maintenance_windows/P3BSCJV
|
125
|
+
body:
|
126
|
+
encoding: US-ASCII
|
127
|
+
string: ''
|
128
|
+
headers:
|
129
|
+
Accept:
|
130
|
+
- application/vnd.pagerduty+json;version=2
|
131
|
+
User-Agent:
|
132
|
+
- PagerDuty Ruby Gem 0.1.1
|
133
|
+
Content-Type:
|
134
|
+
- application/json
|
135
|
+
Authorization:
|
136
|
+
- Token token="iFBafMkV8noXmHd6jmsi"
|
137
|
+
Accept-Encoding:
|
138
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
Server:
|
145
|
+
- nginx
|
146
|
+
Date:
|
147
|
+
- Sat, 27 May 2017 15:47:07 GMT
|
148
|
+
Content-Type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
Transfer-Encoding:
|
151
|
+
- chunked
|
152
|
+
Connection:
|
153
|
+
- keep-alive
|
154
|
+
Status:
|
155
|
+
- 200 OK
|
156
|
+
Access-Control-Allow-Methods:
|
157
|
+
- GET, POST, PUT, DELETE, OPTIONS
|
158
|
+
Access-Control-Max-Age:
|
159
|
+
- '1728000'
|
160
|
+
Access-Control-Allow-Origin:
|
161
|
+
- "*"
|
162
|
+
Access-Control-Allow-Headers:
|
163
|
+
- Authorization, Content-Type, From
|
164
|
+
X-Ua-Compatible:
|
165
|
+
- IE=Edge,chrome=1
|
166
|
+
Etag:
|
167
|
+
- W/"e90be3d703b4d674164cd15a1fd2f84e"
|
168
|
+
Cache-Control:
|
169
|
+
- max-age=0, private, must-revalidate
|
170
|
+
X-Request-Id:
|
171
|
+
- e9f6f4990009f0205e157a63157ab7db
|
172
|
+
body:
|
173
|
+
encoding: ASCII-8BIT
|
174
|
+
string: '{"maintenance_window":{"id":"P3BSCJV","type":"maintenance_window","summary":"Updated
|
175
|
+
Description","self":"https://api.pagerduty.com/maintenance_windows/P3BSCJV","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/P3BSCJV","sequence_number":3,"start_time":"2017-05-28T11:43:00-04:00","end_time":"2017-05-28T12:43:00-04:00","description":"Updated
|
176
|
+
Description","services":[{"id":"P407C9R","type":"service_reference","summary":"test
|
177
|
+
service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PRTFS0C","type":"user_reference","summary":"Patrick
|
178
|
+
Veverka","self":"https://api.pagerduty.com/users/PRTFS0C","html_url":"https://push-comedy-theater.pagerduty.com/users/PRTFS0C"},"teams":[{"id":"P1HE60B","type":"team_reference","summary":"Ops","self":"https://api.pagerduty.com/teams/P1HE60B","html_url":"https://push-comedy-theater.pagerduty.com/teams/P1HE60B"}]}}'
|
179
|
+
http_version:
|
180
|
+
recorded_at: Sat, 27 May 2017 15:47:07 GMT
|
181
|
+
recorded_with: VCR 3.0.3
|