pager_duty 0.1.0 → 0.1.1

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.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +17 -3
  4. data/Guardfile +30 -0
  5. data/README.md +258 -17
  6. data/fixtures/vcr_cassettes/abilities/index.yml +58 -0
  7. data/fixtures/vcr_cassettes/abilities/index_invalid.yml +48 -0
  8. data/fixtures/vcr_cassettes/abilities/show.yml +52 -0
  9. data/fixtures/vcr_cassettes/abilities/show_false.yml +56 -0
  10. data/fixtures/vcr_cassettes/addons/create_all_set.yml +58 -0
  11. data/fixtures/vcr_cassettes/addons/create_no_https_src.yml +57 -0
  12. data/fixtures/vcr_cassettes/addons/create_no_name.yml +57 -0
  13. data/fixtures/vcr_cassettes/addons/create_no_src.yml +57 -0
  14. data/fixtures/vcr_cassettes/addons/create_no_type.yml +57 -0
  15. data/fixtures/vcr_cassettes/addons/delete_P58BJWA.yml +56 -0
  16. data/fixtures/vcr_cassettes/addons/delete_P5R5GQ4.yml +52 -0
  17. data/fixtures/vcr_cassettes/addons/delete_no_id.yml +51 -0
  18. data/fixtures/vcr_cassettes/addons/get_by_id.yml +61 -0
  19. data/fixtures/vcr_cassettes/addons/get_deleted.yml +109 -0
  20. data/fixtures/vcr_cassettes/addons/index.yml +63 -0
  21. data/fixtures/vcr_cassettes/addons/index_with_services.yml +65 -0
  22. data/fixtures/vcr_cassettes/addons/index_with_services_by_service_id.yml +65 -0
  23. data/fixtures/vcr_cassettes/addons/index_with_services_filtered_to_full_page_addon.yml +60 -0
  24. data/fixtures/vcr_cassettes/addons/update_by_id.yml +119 -0
  25. data/fixtures/vcr_cassettes/addons/update_by_id_name_only.yml +119 -0
  26. data/fixtures/vcr_cassettes/escalation_policies/create_does_not_work.yml +61 -0
  27. data/fixtures/vcr_cassettes/escalation_policies/create_no_escalation_rule_targets.yml +57 -0
  28. data/fixtures/vcr_cassettes/escalation_policies/create_works.yml +67 -0
  29. data/fixtures/vcr_cassettes/escalation_policies/delete_P09984M_allowed.yml +163 -0
  30. data/fixtures/vcr_cassettes/escalation_policies/delete_P7N334Z.yml +56 -0
  31. data/fixtures/vcr_cassettes/escalation_policies/get_by_id.yml +61 -0
  32. data/fixtures/vcr_cassettes/escalation_policies/get_deleted.yml +56 -0
  33. data/fixtures/vcr_cassettes/escalation_policies/index_include_services.yml +76 -0
  34. data/fixtures/vcr_cassettes/escalation_policies/index_include_services_teams.yml +76 -0
  35. data/fixtures/vcr_cassettes/escalation_policies/index_include_services_teams_targets.yml +76 -0
  36. data/fixtures/vcr_cassettes/escalation_policies/index_multiple_user_ids.yml +72 -0
  37. data/fixtures/vcr_cassettes/escalation_policies/index_name_asc.yml +76 -0
  38. data/fixtures/vcr_cassettes/escalation_policies/index_name_desc.yml +76 -0
  39. data/fixtures/vcr_cassettes/escalation_policies/index_no_query.yml +76 -0
  40. data/fixtures/vcr_cassettes/escalation_policies/index_query.yml +65 -0
  41. data/fixtures/vcr_cassettes/escalation_policies/index_team_ids.yml +65 -0
  42. data/fixtures/vcr_cassettes/escalation_policies/index_user_id_has_five.yml +76 -0
  43. data/fixtures/vcr_cassettes/escalation_policies/index_user_id_has_four.yml +72 -0
  44. data/fixtures/vcr_cassettes/escalation_policies/index_user_id_has_one.yml +62 -0
  45. data/fixtures/vcr_cassettes/escalation_policies/index_user_id_nothing.yml +58 -0
  46. data/fixtures/vcr_cassettes/escalation_policies/update_description_only.yml +126 -0
  47. data/fixtures/vcr_cassettes/escalation_policies/update_escalation_rules_only.yml +125 -0
  48. data/fixtures/vcr_cassettes/escalation_policies/update_escalation_rules_user.yml +125 -0
  49. data/fixtures/vcr_cassettes/escalation_policies/update_name_only.yml +122 -0
  50. data/fixtures/vcr_cassettes/escalation_policies/update_no_name.yml +119 -0
  51. data/fixtures/vcr_cassettes/escalation_policies/update_num_loops_only.yml +125 -0
  52. data/fixtures/vcr_cassettes/escalation_policies/update_repeat_enabled_only.yml +125 -0
  53. data/fixtures/vcr_cassettes/escalation_policies/update_teams.yml +125 -0
  54. data/fixtures/vcr_cassettes/incidents/incident.yml +125 -0
  55. data/fixtures/vcr_cassettes/incidents/incident_alerts/P6M04C7.yml +61 -0
  56. data/fixtures/vcr_cassettes/incidents/incident_alerts/alert_key.yml +61 -0
  57. data/fixtures/vcr_cassettes/incidents/incident_alerts/status_resolved.yml +61 -0
  58. data/fixtures/vcr_cassettes/incidents/incident_log_entries/P6M04C7.yml +90 -0
  59. data/fixtures/vcr_cassettes/incidents/incident_log_entries/P6M04C7_include.yml +114 -0
  60. data/fixtures/vcr_cassettes/incidents/incident_log_entries/P6M04C7_is_overview.yml +69 -0
  61. data/fixtures/vcr_cassettes/incidents/incident_notes/P6M04C7.yml +58 -0
  62. data/fixtures/vcr_cassettes/incidents/incident_notes/P9XCW88.yml +60 -0
  63. data/fixtures/vcr_cassettes/incidents/index/acknowledged.yml +67 -0
  64. data/fixtures/vcr_cassettes/incidents/index/all_statuses.yml +182 -0
  65. data/fixtures/vcr_cassettes/incidents/index/created_at_asc.yml +181 -0
  66. data/fixtures/vcr_cassettes/incidents/index/created_at_desc.yml +181 -0
  67. data/fixtures/vcr_cassettes/incidents/index/date_range_all.yml +181 -0
  68. data/fixtures/vcr_cassettes/incidents/index/incident_key.yml +65 -0
  69. data/fixtures/vcr_cassettes/incidents/index/include_users.yml +181 -0
  70. data/fixtures/vcr_cassettes/incidents/index/include_users_services.yml +235 -0
  71. data/fixtures/vcr_cassettes/incidents/index/limited.yml +77 -0
  72. data/fixtures/vcr_cassettes/incidents/index/no_query.yml +181 -0
  73. data/fixtures/vcr_cassettes/incidents/index/resolved.yml +166 -0
  74. data/fixtures/vcr_cassettes/incidents/index/service_id_P407C9R.yml +168 -0
  75. data/fixtures/vcr_cassettes/incidents/index/service_id_P7WQ2DJ_P407C9R.yml +71 -0
  76. data/fixtures/vcr_cassettes/incidents/index/team_ids_P1HE60B.yml +79 -0
  77. data/fixtures/vcr_cassettes/incidents/index/team_ids_P1HE60B_P7XILUG.yml +79 -0
  78. data/fixtures/vcr_cassettes/incidents/index/team_ids_P7XILUG.yml +65 -0
  79. data/fixtures/vcr_cassettes/incidents/index/time_zone.yml +181 -0
  80. data/fixtures/vcr_cassettes/incidents/index/triggered.yml +73 -0
  81. data/fixtures/vcr_cassettes/incidents/index/urgencies_high.yml +181 -0
  82. data/fixtures/vcr_cassettes/incidents/index/urgencies_high_low.yml +181 -0
  83. data/fixtures/vcr_cassettes/incidents/index/urgencies_low.yml +58 -0
  84. data/fixtures/vcr_cassettes/incidents/index/user_ids_PDU9IB6.yml +65 -0
  85. data/fixtures/vcr_cassettes/incidents/index/user_ids_PDU9IB6_PGJLPE9.yml +65 -0
  86. data/fixtures/vcr_cassettes/incidents/index/user_ids_PGJLPE9.yml +66 -0
  87. data/fixtures/vcr_cassettes/incidents/merge_incidents/PD9WJA8_PZMITGO.yml +69 -0
  88. data/fixtures/vcr_cassettes/incidents/snooze_incident/PD9WJA8.yml +58 -0
  89. data/fixtures/vcr_cassettes/incidents/snooze_incident/PD9WJA8_acknowledged.yml +69 -0
  90. data/fixtures/vcr_cassettes/incidents/update_incidents/PD9WJA8.yml +67 -0
  91. data/fixtures/vcr_cassettes/unauthorized_nil_token.yml +48 -0
  92. data/lib/pager_duty.rb +14 -1
  93. data/lib/pager_duty/client.rb +29 -0
  94. data/lib/pager_duty/client/abilities.rb +33 -0
  95. data/lib/pager_duty/client/addons.rb +97 -0
  96. data/lib/pager_duty/client/escalation_policies.rb +148 -0
  97. data/lib/pager_duty/client/incidents.rb +228 -0
  98. data/lib/pager_duty/configurable.rb +32 -0
  99. data/lib/pager_duty/connection.rb +110 -0
  100. data/lib/pager_duty/default.rb +79 -0
  101. data/lib/pager_duty/error.rb +171 -0
  102. data/lib/pager_duty/response/raise_error.rb +21 -0
  103. data/lib/pager_duty/version.rb +1 -1
  104. data/output.yaml +7842 -0
  105. data/pager_duty.gemspec +11 -3
  106. data/script/bootstrap +5 -0
  107. data/script/console +11 -0
  108. data/script/test +13 -0
  109. metadata +239 -6
@@ -0,0 +1,52 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pagerduty.com/abilities/sso
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.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 204
23
+ message: No Content
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 19 May 2017 14:14:02 GMT
29
+ Connection:
30
+ - keep-alive
31
+ Status:
32
+ - 204 No Content
33
+ Access-Control-Allow-Methods:
34
+ - GET, POST, PUT, DELETE, OPTIONS
35
+ Access-Control-Max-Age:
36
+ - '1728000'
37
+ Access-Control-Allow-Origin:
38
+ - "*"
39
+ Access-Control-Allow-Headers:
40
+ - Authorization, Content-Type
41
+ X-Ua-Compatible:
42
+ - IE=Edge,chrome=1
43
+ Cache-Control:
44
+ - no-cache
45
+ X-Request-Id:
46
+ - 362c2b24989a8d3cfa2c5dad47d92801
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ http_version:
51
+ recorded_at: Fri, 19 May 2017 14:14:05 GMT
52
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.pagerduty.com/abilities/sso2
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.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 404
23
+ message: Not Found
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 19 May 2017 14:14:29 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 404 Not Found
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - 3b909a41df57e8a3ae2cda483464202c
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: ''
54
+ http_version:
55
+ recorded_at: Fri, 19 May 2017 14:14:32 GMT
56
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,58 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/addons
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"addon":{"type":"full_page_addon","name":"Test","src":"https://www.example.com"}}'
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 201
23
+ message: Created
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 22 May 2017 15:11:17 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 201 Created
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
+ - '"767f80123ddc009298d9953c54b59494"'
49
+ Cache-Control:
50
+ - max-age=0, private, must-revalidate
51
+ X-Request-Id:
52
+ - 0f74d0a0597cbdfd95166157c69d14d3
53
+ body:
54
+ encoding: UTF-8
55
+ string: '{"addon":{"id":"P76DVOR","type":"full_page_addon","summary":"Test","self":"https://api.pagerduty.com/addons/P76DVOR","html_url":null,"name":"Test","src":"https://www.example.com","services":[]}}'
56
+ http_version:
57
+ recorded_at: Mon, 22 May 2017 15:11:17 GMT
58
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/addons
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"addon":{"type":"full_page_addon","name":"Test","src":"http://www.example.com"}}'
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 22 May 2017 15:10:54 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 400 Bad Request
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - 89354d90fcb87f1964bd23542ec9a1b1
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"error":{"message":"Invalid Input Provided","code":2001,"errors":["Src
54
+ must be a valid HTTPS URL"]}}'
55
+ http_version:
56
+ recorded_at: Mon, 22 May 2017 15:10:54 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/addons
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"addon":{"type":"full_page_addon","name":null,"src":null}}'
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 22 May 2017 15:10:26 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 400 Bad Request
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - a412bf071b01b3208451c4e3822edc2c
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"error":{"message":"Invalid Input Provided","code":2001,"errors":["Name
54
+ cannot be empty."]}}'
55
+ http_version:
56
+ recorded_at: Mon, 22 May 2017 15:10:26 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/addons
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"addon":{"type":"full_page_addon","name":"Test","src":null}}'
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 22 May 2017 15:10:41 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 400 Bad Request
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - bd1b9375c59c17331bbf134c7531529f
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"error":{"message":"Invalid Input Provided","code":2001,"errors":["Src
54
+ cannot be empty."]}}'
55
+ http_version:
56
+ recorded_at: Mon, 22 May 2017 15:10:41 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,57 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.pagerduty.com/addons
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"addon":{"type":null,"name":null,"src":null}}'
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="y_NbAkKc66ryYTWUXYEu"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 400
23
+ message: Bad Request
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Mon, 22 May 2017 15:08:43 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 400 Bad Request
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - 29ef552401e39c7df5e5f8fea1ba8855
51
+ body:
52
+ encoding: UTF-8
53
+ string: '{"error":{"message":"Invalid Input Provided","code":2001,"errors":["Name
54
+ cannot be empty."]}}'
55
+ http_version:
56
+ recorded_at: Mon, 22 May 2017 15:08:43 GMT
57
+ recorded_with: VCR 3.0.3
@@ -0,0 +1,56 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.pagerduty.com/addons/P58BJWA
6
+ body:
7
+ encoding: UTF-8
8
+ string: "{}"
9
+ headers:
10
+ Accept:
11
+ - application/vnd.pagerduty+json;version=2
12
+ User-Agent:
13
+ - PagerDuty Ruby Gem 0.1.0
14
+ Content-Type:
15
+ - application/json
16
+ Authorization:
17
+ - Token token="READONLY"
18
+ Accept-Encoding:
19
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
20
+ response:
21
+ status:
22
+ code: 403
23
+ message: Forbidden
24
+ headers:
25
+ Server:
26
+ - nginx
27
+ Date:
28
+ - Fri, 19 May 2017 16:13:02 GMT
29
+ Content-Type:
30
+ - application/json; charset=utf-8
31
+ Transfer-Encoding:
32
+ - chunked
33
+ Connection:
34
+ - keep-alive
35
+ Status:
36
+ - 403 Forbidden
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
+ Cache-Control:
48
+ - no-cache
49
+ X-Request-Id:
50
+ - e6469995f8dae8e4444e7f61a765d9d3
51
+ body:
52
+ encoding: ASCII-8BIT
53
+ string: '{"error":{"message":"Access Denied","code":2010}}'
54
+ http_version:
55
+ recorded_at: Fri, 19 May 2017 16:13:05 GMT
56
+ recorded_with: VCR 3.0.3