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.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -3
  3. data/fixtures/vcr_cassettes/incidents/create_incident_notes/PDP31UM.yml +62 -0
  4. data/fixtures/vcr_cassettes/log_entries/index/no_query.yml +490 -0
  5. data/fixtures/vcr_cassettes/log_entries/index/time_zone.yml +490 -0
  6. data/fixtures/vcr_cassettes/log_entries/log_entry.yml +63 -0
  7. data/fixtures/vcr_cassettes/log_entries/log_entry_EST.yml +63 -0
  8. data/fixtures/vcr_cassettes/maintenance_windows/create.yml +65 -0
  9. data/fixtures/vcr_cassettes/maintenance_windows/delete.yml +164 -0
  10. data/fixtures/vcr_cassettes/maintenance_windows/delete_in_past.yml +117 -0
  11. data/fixtures/vcr_cassettes/maintenance_windows/get_PIVGPA6.yml +62 -0
  12. data/fixtures/vcr_cassettes/maintenance_windows/index/all.yml +62 -0
  13. data/fixtures/vcr_cassettes/maintenance_windows/index/future.yml +62 -0
  14. data/fixtures/vcr_cassettes/maintenance_windows/index/no_query.yml +62 -0
  15. data/fixtures/vcr_cassettes/maintenance_windows/index/ongoing.yml +62 -0
  16. data/fixtures/vcr_cassettes/maintenance_windows/index/past.yml +62 -0
  17. data/fixtures/vcr_cassettes/maintenance_windows/index/query.yml +62 -0
  18. data/fixtures/vcr_cassettes/maintenance_windows/update.yml +181 -0
  19. data/fixtures/vcr_cassettes/notifications/index/no_query.yml +57 -0
  20. data/fixtures/vcr_cassettes/notifications/index/query_since.yml +83 -0
  21. data/fixtures/vcr_cassettes/notifications/index/query_since_email_notification.yml +83 -0
  22. data/fixtures/vcr_cassettes/notifications/index/query_since_est.yml +83 -0
  23. data/fixtures/vcr_cassettes/notifications/index/query_since_sms_notification.yml +58 -0
  24. data/fixtures/vcr_cassettes/on_calls/index/query.yml +78 -0
  25. data/fixtures/vcr_cassettes/on_calls/index/query_.yml +48 -0
  26. data/fixtures/vcr_cassettes/on_calls/index/query_earliest.yml +78 -0
  27. data/fixtures/vcr_cassettes/on_calls/index/query_include_users.yml +102 -0
  28. data/fixtures/vcr_cassettes/on_calls/index/query_include_users_and_schedules.yml +154 -0
  29. data/fixtures/vcr_cassettes/on_calls/index/query_since_est.yml +78 -0
  30. data/fixtures/vcr_cassettes/on_calls/index/query_since_until.yml +78 -0
  31. data/fixtures/vcr_cassettes/vendors/index/no_query.yml +181 -0
  32. data/fixtures/vcr_cassettes/vendors/vendor.yml +63 -0
  33. data/lib/pager_duty/client.rb +10 -0
  34. data/lib/pager_duty/client/abilities.rb +4 -8
  35. data/lib/pager_duty/client/addons.rb +16 -18
  36. data/lib/pager_duty/client/escalation_policies.rb +3 -3
  37. data/lib/pager_duty/client/incidents.rb +19 -8
  38. data/lib/pager_duty/client/log_entries.rb +64 -0
  39. data/lib/pager_duty/client/maintenance_windows.rb +138 -0
  40. data/lib/pager_duty/client/notifications.rb +37 -0
  41. data/lib/pager_duty/client/on_calls.rb +59 -0
  42. data/lib/pager_duty/client/vendors.rb +38 -0
  43. data/lib/pager_duty/version.rb +1 -1
  44. data/pager_duty.gemspec +1 -0
  45. metadata +51 -2
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pagerduty.com/log_entries/R3S5ZGDVULY5D2QJ50QBJXAHS4
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 01:05:39 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
45
+ X-Ua-Compatible:
46
+ - IE=Edge,chrome=1
47
+ Etag:
48
+ - W/"822d46ae75dcb0c3f570abf54f37460e"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - 9a6a0ca2792582ab948ed369c334dc5c
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"log_entry":{"id":"R3S5ZGDVULY5D2QJ50QBJXAHS4","type":"annotate_log_entry","summary":"Note
56
+ added by John Jones","self":"https://api.pagerduty.com/log_entries/R3S5ZGDVULY5D2QJ50QBJXAHS4","html_url":null,"created_at":"2017-05-26T23:40:59Z","agent":{"id":"PGJLPE9","type":"user_reference","summary":"John
57
+ Jones","self":"https://api.pagerduty.com/users/PGJLPE9","html_url":"https://push-comedy-theater.pagerduty.com/users/PGJLPE9"},"channel":{"type":"note","summary":"THIS
58
+ IS CONTENT"},"service":{"id":"P407C9R","type":"service_reference","summary":"test
59
+ service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"},"incident":{"id":"PDP31UM","type":"incident_reference","summary":"[#21]
60
+ Merge It","self":"https://api.pagerduty.com/incidents/PDP31UM","html_url":"https://push-comedy-theater.pagerduty.com/incidents/PDP31UM"},"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"}],"contexts":[]}}'
61
+ http_version:
62
+ recorded_at: Sat, 27 May 2017 01:05:39 GMT
63
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pagerduty.com/log_entries/R3S5ZGDVULY5D2QJ50QBJXAHS4?time_zone=EST
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 01:06:47 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
45
+ X-Ua-Compatible:
46
+ - IE=Edge,chrome=1
47
+ Etag:
48
+ - W/"b3ff020b6fcd18b2d1db56a79065e0d1"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - eb90ff0f9f9029a561e6fffbb7754287
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"log_entry":{"id":"R3S5ZGDVULY5D2QJ50QBJXAHS4","type":"annotate_log_entry","summary":"Note
56
+ added by John Jones","self":"https://api.pagerduty.com/log_entries/R3S5ZGDVULY5D2QJ50QBJXAHS4","html_url":null,"created_at":"2017-05-26T18:40:59-05:00","agent":{"id":"PGJLPE9","type":"user_reference","summary":"John
57
+ Jones","self":"https://api.pagerduty.com/users/PGJLPE9","html_url":"https://push-comedy-theater.pagerduty.com/users/PGJLPE9"},"channel":{"type":"note","summary":"THIS
58
+ IS CONTENT"},"service":{"id":"P407C9R","type":"service_reference","summary":"test
59
+ service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"},"incident":{"id":"PDP31UM","type":"incident_reference","summary":"[#21]
60
+ Merge It","self":"https://api.pagerduty.com/incidents/PDP31UM","html_url":"https://push-comedy-theater.pagerduty.com/incidents/PDP31UM"},"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"}],"contexts":[]}}'
61
+ http_version:
62
+ recorded_at: Sat, 27 May 2017 01:06:47 GMT
63
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,65 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/maintenance_windows
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"maintenance_window":{"type":"maintenance_window","start_time":"2017-05-27T12:17:00-04:00","end_time":"2017-05-27T12:19:00-04:00","description":"Generic
9
+ MaintenanceWindow","services":[{"id":"P407C9R","type":"service_reference"}]}}'
10
+ headers:
11
+ Accept:
12
+ - application/vnd.pagerduty+json;version=2
13
+ User-Agent:
14
+ - PagerDuty Ruby Gem 0.1.1
15
+ Content-Type:
16
+ - application/json
17
+ Authorization:
18
+ - Token token="iFBafMkV8noXmHd6jmsi"
19
+ From:
20
+ - pagerduty@veverka.net
21
+ Accept-Encoding:
22
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
23
+ response:
24
+ status:
25
+ code: 201
26
+ message: Created
27
+ headers:
28
+ Server:
29
+ - nginx
30
+ Date:
31
+ - Sat, 27 May 2017 15:29:35 GMT
32
+ Content-Type:
33
+ - application/json; charset=utf-8
34
+ Transfer-Encoding:
35
+ - chunked
36
+ Connection:
37
+ - keep-alive
38
+ Status:
39
+ - 201 Created
40
+ Access-Control-Allow-Methods:
41
+ - GET, POST, PUT, DELETE, OPTIONS
42
+ Access-Control-Max-Age:
43
+ - '1728000'
44
+ Access-Control-Allow-Origin:
45
+ - "*"
46
+ Access-Control-Allow-Headers:
47
+ - Authorization, Content-Type, From
48
+ X-Ua-Compatible:
49
+ - IE=Edge,chrome=1
50
+ Etag:
51
+ - '"4c74a58d50867bb1b604cae5db7fe33b"'
52
+ Cache-Control:
53
+ - max-age=0, private, must-revalidate
54
+ X-Request-Id:
55
+ - 204d06ab8a8da881d220d153bf29167b
56
+ body:
57
+ encoding: UTF-8
58
+ string: '{"maintenance_window":{"id":"PQA2SWT","type":"maintenance_window","summary":"Generic
59
+ MaintenanceWindow","self":"https://api.pagerduty.com/maintenance_windows/PQA2SWT","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PQA2SWT","sequence_number":2,"start_time":"2017-05-27T12:17:00-04:00","end_time":"2017-05-27T12:19:00-04:00","description":"Generic
60
+ MaintenanceWindow","services":[{"id":"P407C9R","type":"service_reference","summary":"test
61
+ service","self":"https://api.pagerduty.com/services/P407C9R","html_url":"https://push-comedy-theater.pagerduty.com/services/P407C9R"}],"created_by":{"id":"PGJLPE9","type":"user_reference","summary":"John
62
+ Jones","self":"https://api.pagerduty.com/users/PGJLPE9","html_url":"https://push-comedy-theater.pagerduty.com/users/PGJLPE9"},"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"}]}}'
63
+ http_version:
64
+ recorded_at: Sat, 27 May 2017 15:29:35 GMT
65
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,164 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pagerduty.com/maintenance_windows/PQA2SWT
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:36: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/"4c74a58d50867bb1b604cae5db7fe33b"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - dbf626f995603922465baaa80509faf5
53
+ body:
54
+ encoding: ASCII-8BIT
55
+ string: '{"maintenance_window":{"id":"PQA2SWT","type":"maintenance_window","summary":"Generic
56
+ MaintenanceWindow","self":"https://api.pagerduty.com/maintenance_windows/PQA2SWT","html_url":"https://push-comedy-theater.pagerduty.com/maintenance_windows#/show/PQA2SWT","sequence_number":2,"start_time":"2017-05-27T12:17:00-04:00","end_time":"2017-05-27T12:19:00-04:00","description":"Generic
57
+ MaintenanceWindow","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":"PGJLPE9","type":"user_reference","summary":"John
59
+ Jones","self":"https://api.pagerduty.com/users/PGJLPE9","html_url":"https://push-comedy-theater.pagerduty.com/users/PGJLPE9"},"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:36:06 GMT
62
+ - request:
63
+ method: delete
64
+ uri: https://api.pagerduty.com/maintenance_windows/PQA2SWT
65
+ body:
66
+ encoding: UTF-8
67
+ string: "{}"
68
+ headers:
69
+ Accept:
70
+ - application/vnd.pagerduty+json;version=2
71
+ User-Agent:
72
+ - PagerDuty Ruby Gem 0.1.1
73
+ Content-Type:
74
+ - application/json
75
+ Authorization:
76
+ - Token token="iFBafMkV8noXmHd6jmsi"
77
+ Accept-Encoding:
78
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
+ response:
80
+ status:
81
+ code: 204
82
+ message: No Content
83
+ headers:
84
+ Server:
85
+ - nginx
86
+ Date:
87
+ - Sat, 27 May 2017 15:36:07 GMT
88
+ Connection:
89
+ - keep-alive
90
+ Status:
91
+ - 204 No Content
92
+ Access-Control-Allow-Methods:
93
+ - GET, POST, PUT, DELETE, OPTIONS
94
+ Access-Control-Max-Age:
95
+ - '1728000'
96
+ Access-Control-Allow-Origin:
97
+ - "*"
98
+ Access-Control-Allow-Headers:
99
+ - Authorization, Content-Type, From
100
+ X-Ua-Compatible:
101
+ - IE=Edge,chrome=1
102
+ Cache-Control:
103
+ - no-cache
104
+ X-Request-Id:
105
+ - 1d4851852493bfe4916597f587cbc980
106
+ body:
107
+ encoding: UTF-8
108
+ string: ''
109
+ http_version:
110
+ recorded_at: Sat, 27 May 2017 15:36:07 GMT
111
+ - request:
112
+ method: get
113
+ uri: https://api.pagerduty.com/maintenance_windows/PQA2SWT
114
+ body:
115
+ encoding: US-ASCII
116
+ string: ''
117
+ headers:
118
+ Accept:
119
+ - application/vnd.pagerduty+json;version=2
120
+ User-Agent:
121
+ - PagerDuty Ruby Gem 0.1.1
122
+ Content-Type:
123
+ - application/json
124
+ Authorization:
125
+ - Token token="iFBafMkV8noXmHd6jmsi"
126
+ Accept-Encoding:
127
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
128
+ response:
129
+ status:
130
+ code: 404
131
+ message: Not Found
132
+ headers:
133
+ Server:
134
+ - nginx
135
+ Date:
136
+ - Sat, 27 May 2017 15:36:07 GMT
137
+ Content-Type:
138
+ - application/json; charset=utf-8
139
+ Transfer-Encoding:
140
+ - chunked
141
+ Connection:
142
+ - keep-alive
143
+ Status:
144
+ - 404 Not Found
145
+ Access-Control-Allow-Methods:
146
+ - GET, POST, PUT, DELETE, OPTIONS
147
+ Access-Control-Max-Age:
148
+ - '1728000'
149
+ Access-Control-Allow-Origin:
150
+ - "*"
151
+ Access-Control-Allow-Headers:
152
+ - Authorization, Content-Type, From
153
+ X-Ua-Compatible:
154
+ - IE=Edge,chrome=1
155
+ Cache-Control:
156
+ - no-cache
157
+ X-Request-Id:
158
+ - f44dec295576252f73562400223c611b
159
+ body:
160
+ encoding: ASCII-8BIT
161
+ string: '{"error":{"message":"Maintenance Window Not Found","code":5001}}'
162
+ http_version:
163
+ recorded_at: Sat, 27 May 2017 15:36:07 GMT
164
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,117 @@
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:37: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/"75db3aa431029b2262dedfdbc63ca623"
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - 17e0497d2c96c1348f0ddf7df10679c0
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:37:16 GMT
62
+ - request:
63
+ method: delete
64
+ uri: https://api.pagerduty.com/maintenance_windows/PIVGPA6
65
+ body:
66
+ encoding: UTF-8
67
+ string: "{}"
68
+ headers:
69
+ Accept:
70
+ - application/vnd.pagerduty+json;version=2
71
+ User-Agent:
72
+ - PagerDuty Ruby Gem 0.1.1
73
+ Content-Type:
74
+ - application/json
75
+ Authorization:
76
+ - Token token="iFBafMkV8noXmHd6jmsi"
77
+ Accept-Encoding:
78
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
79
+ response:
80
+ status:
81
+ code: 405
82
+ message: Method Not Allowed
83
+ headers:
84
+ Server:
85
+ - nginx
86
+ Date:
87
+ - Sat, 27 May 2017 15:37:16 GMT
88
+ Content-Type:
89
+ - application/json; charset=utf-8
90
+ Transfer-Encoding:
91
+ - chunked
92
+ Connection:
93
+ - keep-alive
94
+ Status:
95
+ - 405 Method Not Allowed
96
+ Access-Control-Allow-Methods:
97
+ - GET, POST, PUT, DELETE, OPTIONS
98
+ Access-Control-Max-Age:
99
+ - '1728000'
100
+ Access-Control-Allow-Origin:
101
+ - "*"
102
+ Access-Control-Allow-Headers:
103
+ - Authorization, Content-Type, From
104
+ Allow:
105
+ - GET, PUT
106
+ X-Ua-Compatible:
107
+ - IE=Edge,chrome=1
108
+ Cache-Control:
109
+ - no-cache
110
+ X-Request-Id:
111
+ - de08d76980642acb8e4a6fad389516cd
112
+ body:
113
+ encoding: UTF-8
114
+ string: '{"error":{"message":"Cannot cancel a maintenance window from the past","code":5003}}'
115
+ http_version:
116
+ recorded_at: Sat, 27 May 2017 15:37:16 GMT
117
+ recorded_with: VCR 3.0.3