dogapi 1.11.0 → 1.12.0
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.
- checksums.yaml +5 -13
- data/CHANGELOG.md +4 -0
- data/lib/dogapi/event.rb +4 -2
- data/lib/dogapi/facade.rb +70 -1
- data/lib/dogapi/v1/event.rb +4 -2
- data/lib/dogapi/v1/monitor.rb +220 -0
- data/lib/dogapi/v1/service_check.rb +32 -0
- data/lib/dogapi/v1.rb +2 -0
- data/lib/dogapi/version.rb +1 -1
- data/spec/alerts_spec.rb +2 -2
- data/spec/facade_spec.rb +3 -3
- data/spec/support/cassettes/Alerts/create/returns_HTTP_code_200.yml +98 -0
- data/spec/support/cassettes/Alerts/create/returns_a_valid_event_ID.yml +84 -36
- data/spec/support/cassettes/Alerts/create/returns_the_same_query_as_sent.yml +84 -36
- data/spec/support/cassettes/Facade/Events/emits_aggregate_events.yml +161 -59
- data/spec/support/cassettes/Facade/Events/emits_events_and_retrieves_them.yml +85 -35
- data/spec/support/cassettes/Facade/Events/emits_events_with_specified_priority.yml +81 -30
- data/spec/support/cassettes/Facade/Tags/adds_updates_and_detaches_tags.yml +106 -90
- data/tests/test_alerts.rb +2 -2
- data/tests/test_monitors.rb +138 -0
- metadata +14 -9
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- '*/*'
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -34,7 +34,7 @@ http_interactions:
|
|
34
34
|
- 31.160-300-bedcb85
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string:
|
37
|
+
string: '{"event": {"date_happened": 1377812901, "alert_type": "info", "resource":
|
38
38
|
"/api/v1/events/1905053479102714219", "title": "Testing Aggregation (first)",
|
39
39
|
"url": "/event/jump_to?event_id=1905053479102714219", "text": "Testing Aggregation
|
40
40
|
(first)", "tags": [], "id": 1905053479102714219, "priority": "normal", "host":
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
string: ''
|
50
50
|
headers:
|
51
51
|
Accept:
|
52
|
-
-
|
52
|
+
- '*/*'
|
53
53
|
response:
|
54
54
|
status:
|
55
55
|
code: 200
|
@@ -75,7 +75,7 @@ http_interactions:
|
|
75
75
|
- 31.160-300-bedcb85
|
76
76
|
body:
|
77
77
|
encoding: UTF-8
|
78
|
-
string:
|
78
|
+
string: '{"event": {"date_happened": 1377812901, "alert_type": "info", "resource":
|
79
79
|
"/api/v1/events/1905053488548344157", "title": "Testing Aggregation (second)",
|
80
80
|
"url": "/event/jump_to?event_id=1905053488548344157", "text": "Testing Aggregation
|
81
81
|
(second)", "tags": [], "id": 1905053488548344157, "priority": "normal", "host":
|
@@ -90,7 +90,7 @@ http_interactions:
|
|
90
90
|
string: ''
|
91
91
|
headers:
|
92
92
|
Accept:
|
93
|
-
-
|
93
|
+
- '*/*'
|
94
94
|
User-Agent:
|
95
95
|
- Ruby
|
96
96
|
response:
|
@@ -119,19 +119,109 @@ http_interactions:
|
|
119
119
|
- keep-alive
|
120
120
|
body:
|
121
121
|
encoding: US-ASCII
|
122
|
-
string:
|
122
|
+
string: '{"errors": ["No event matches that comment_id."]}'
|
123
123
|
http_version:
|
124
124
|
recorded_at: Thu, 08 May 2014 18:08:43 GMT
|
125
|
+
- request:
|
126
|
+
method: get
|
127
|
+
uri: https://app.datadoghq.com/api/v1/events/2277466729825682387?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ''
|
131
|
+
headers:
|
132
|
+
Accept:
|
133
|
+
- '*/*'
|
134
|
+
User-Agent:
|
135
|
+
- Ruby
|
136
|
+
response:
|
137
|
+
status:
|
138
|
+
code: 200
|
139
|
+
message: OK
|
140
|
+
headers:
|
141
|
+
Cache-Control:
|
142
|
+
- no-cache
|
143
|
+
Content-Type:
|
144
|
+
- application/json
|
145
|
+
Date:
|
146
|
+
- Tue, 13 May 2014 19:47:47 GMT
|
147
|
+
Pragma:
|
148
|
+
- no-cache
|
149
|
+
Server:
|
150
|
+
- gunicorn/0.17.4
|
151
|
+
Set-Cookie:
|
152
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
153
|
+
Path=/
|
154
|
+
X-Dd-Version:
|
155
|
+
- 31.1129.1362-0
|
156
|
+
Content-Length:
|
157
|
+
- '368'
|
158
|
+
Connection:
|
159
|
+
- keep-alive
|
160
|
+
body:
|
161
|
+
encoding: US-ASCII
|
162
|
+
string: '{"event": {"date_happened": 1400010460, "alert_type": "info", "resource":
|
163
|
+
"/api/v1/events/2277466729825682387", "title": "Testing Aggregation (first)",
|
164
|
+
"url": "/event/jump_to?event_id=2277466729825682387", "text": "Testing Aggregation
|
165
|
+
(first)", "tags": [], "id": 2277466729825682387, "priority": "normal", "host":
|
166
|
+
"dogbox-carlo", "device_name": null, "payload": "{}"}}'
|
167
|
+
http_version:
|
168
|
+
recorded_at: Tue, 13 May 2014 19:47:47 GMT
|
169
|
+
- request:
|
170
|
+
method: get
|
171
|
+
uri: https://app.datadoghq.com/api/v1/events/2277466738585989786?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
172
|
+
body:
|
173
|
+
encoding: US-ASCII
|
174
|
+
string: ''
|
175
|
+
headers:
|
176
|
+
Accept:
|
177
|
+
- '*/*'
|
178
|
+
User-Agent:
|
179
|
+
- Ruby
|
180
|
+
response:
|
181
|
+
status:
|
182
|
+
code: 200
|
183
|
+
message: OK
|
184
|
+
headers:
|
185
|
+
Cache-Control:
|
186
|
+
- no-cache
|
187
|
+
Content-Type:
|
188
|
+
- application/json
|
189
|
+
Date:
|
190
|
+
- Tue, 13 May 2014 19:47:47 GMT
|
191
|
+
Pragma:
|
192
|
+
- no-cache
|
193
|
+
Server:
|
194
|
+
- gunicorn/0.17.4
|
195
|
+
Set-Cookie:
|
196
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
197
|
+
Path=/
|
198
|
+
X-Dd-Version:
|
199
|
+
- 31.1129.1362-0
|
200
|
+
Content-Length:
|
201
|
+
- '370'
|
202
|
+
Connection:
|
203
|
+
- keep-alive
|
204
|
+
body:
|
205
|
+
encoding: US-ASCII
|
206
|
+
string: '{"event": {"date_happened": 1400010461, "alert_type": "info", "resource":
|
207
|
+
"/api/v1/events/2277466738585989786", "title": "Testing Aggregation (second)",
|
208
|
+
"url": "/event/jump_to?event_id=2277466738585989786", "text": "Testing Aggregation
|
209
|
+
(second)", "tags": [], "id": 2277466738585989786, "priority": "normal", "host":
|
210
|
+
"dogbox-carlo", "device_name": null, "payload": "{}"}}'
|
211
|
+
http_version:
|
212
|
+
recorded_at: Tue, 13 May 2014 19:47:47 GMT
|
125
213
|
- request:
|
126
214
|
method: post
|
127
215
|
uri: https://app.datadoghq.com/api/v1/events?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
|
128
216
|
body:
|
129
217
|
encoding: UTF-8
|
130
|
-
string:
|
131
|
-
Aggregation (first)","host":"
|
218
|
+
string: '{"msg_text":"Testing Aggregation (first)","date_happened":1416248801,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1416248801","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
219
|
+
Aggregation (first)","host":"Conors-MacBook-Pro-Retina.local","device":null}'
|
132
220
|
headers:
|
221
|
+
Accept-Encoding:
|
222
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
133
223
|
Accept:
|
134
|
-
-
|
224
|
+
- '*/*'
|
135
225
|
User-Agent:
|
136
226
|
- Ruby
|
137
227
|
Content-Type:
|
@@ -144,31 +234,35 @@ http_interactions:
|
|
144
234
|
Content-Type:
|
145
235
|
- text/json; charset=UTF-8
|
146
236
|
Date:
|
147
|
-
-
|
237
|
+
- Mon, 17 Nov 2014 18:26:41 GMT
|
148
238
|
Server:
|
149
|
-
- dogdispatcher/
|
239
|
+
- dogdispatcher/6.0.12
|
240
|
+
Strict-Transport-Security:
|
241
|
+
- max-age=15724800;
|
150
242
|
Content-Length:
|
151
243
|
- '290'
|
152
244
|
Connection:
|
153
245
|
- keep-alive
|
154
246
|
body:
|
155
|
-
encoding:
|
156
|
-
string:
|
157
|
-
|
247
|
+
encoding: UTF-8
|
248
|
+
string: '{"status": "ok", "event": {"priority": "normal", "date_happened": 1416248801,
|
249
|
+
"handle": null, "title": "", "url": "https://app.datadoghq.com/event/jump_to?event_id=2549900876180481330",
|
158
250
|
"text": "Testing Aggregation (first)", "tags": [], "related_event_id": null,
|
159
|
-
"id":
|
251
|
+
"id": 2549900876180481330}}'
|
160
252
|
http_version:
|
161
|
-
recorded_at:
|
253
|
+
recorded_at: Mon, 17 Nov 2014 18:26:41 GMT
|
162
254
|
- request:
|
163
255
|
method: post
|
164
256
|
uri: https://app.datadoghq.com/api/v1/events?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
|
165
257
|
body:
|
166
258
|
encoding: UTF-8
|
167
|
-
string:
|
168
|
-
Aggregation (second)","host":"
|
259
|
+
string: '{"msg_text":"Testing Aggregation (second)","date_happened":1416248801,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1416248801","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
260
|
+
Aggregation (second)","host":"Conors-MacBook-Pro-Retina.local","device":null}'
|
169
261
|
headers:
|
262
|
+
Accept-Encoding:
|
263
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
170
264
|
Accept:
|
171
|
-
-
|
265
|
+
- '*/*'
|
172
266
|
User-Agent:
|
173
267
|
- Ruby
|
174
268
|
Content-Type:
|
@@ -181,30 +275,34 @@ http_interactions:
|
|
181
275
|
Content-Type:
|
182
276
|
- text/json; charset=UTF-8
|
183
277
|
Date:
|
184
|
-
-
|
278
|
+
- Mon, 17 Nov 2014 18:26:42 GMT
|
185
279
|
Server:
|
186
|
-
- dogdispatcher/
|
280
|
+
- dogdispatcher/6.0.12
|
281
|
+
Strict-Transport-Security:
|
282
|
+
- max-age=15724800;
|
187
283
|
Content-Length:
|
188
284
|
- '291'
|
189
285
|
Connection:
|
190
286
|
- keep-alive
|
191
287
|
body:
|
192
|
-
encoding:
|
193
|
-
string:
|
194
|
-
|
288
|
+
encoding: UTF-8
|
289
|
+
string: '{"status": "ok", "event": {"priority": "normal", "date_happened": 1416248801,
|
290
|
+
"handle": null, "title": "", "url": "https://app.datadoghq.com/event/jump_to?event_id=2549900881932518535",
|
195
291
|
"text": "Testing Aggregation (second)", "tags": [], "related_event_id": null,
|
196
|
-
"id":
|
292
|
+
"id": 2549900881932518535}}'
|
197
293
|
http_version:
|
198
|
-
recorded_at:
|
294
|
+
recorded_at: Mon, 17 Nov 2014 18:26:42 GMT
|
199
295
|
- request:
|
200
296
|
method: get
|
201
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
297
|
+
uri: https://app.datadoghq.com/api/v1/events/2549900876180481330?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
202
298
|
body:
|
203
299
|
encoding: US-ASCII
|
204
300
|
string: ''
|
205
301
|
headers:
|
302
|
+
Accept-Encoding:
|
303
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
206
304
|
Accept:
|
207
|
-
-
|
305
|
+
- '*/*'
|
208
306
|
User-Agent:
|
209
307
|
- Ruby
|
210
308
|
response:
|
@@ -217,38 +315,41 @@ http_interactions:
|
|
217
315
|
Content-Type:
|
218
316
|
- application/json
|
219
317
|
Date:
|
220
|
-
-
|
318
|
+
- Mon, 17 Nov 2014 18:26:50 GMT
|
221
319
|
Pragma:
|
222
320
|
- no-cache
|
223
321
|
Server:
|
224
|
-
- gunicorn/
|
225
|
-
|
226
|
-
-
|
227
|
-
|
322
|
+
- gunicorn/19.1.0
|
323
|
+
Strict-Transport-Security:
|
324
|
+
- max-age=15724800;
|
325
|
+
Vary:
|
326
|
+
- Accept-Encoding
|
228
327
|
X-Dd-Version:
|
229
|
-
- 31.
|
328
|
+
- 31.1883.245-0
|
230
329
|
Content-Length:
|
231
|
-
- '
|
330
|
+
- '257'
|
232
331
|
Connection:
|
233
332
|
- keep-alive
|
234
333
|
body:
|
235
|
-
encoding:
|
236
|
-
string:
|
237
|
-
"/api/v1/events/
|
238
|
-
"url": "/event/jump_to?event_id=
|
239
|
-
(first)", "tags": [], "id":
|
240
|
-
"
|
334
|
+
encoding: UTF-8
|
335
|
+
string: '{"event": {"date_happened": 1416248801, "alert_type": "info", "resource":
|
336
|
+
"/api/v1/events/2549900876180481330", "title": "Testing Aggregation (first)",
|
337
|
+
"url": "/event/jump_to?event_id=2549900876180481330", "text": "Testing Aggregation
|
338
|
+
(first)", "tags": [], "id": 2549900876180481330, "priority": "normal", "host":
|
339
|
+
"Conors-MacBook-Pro-Retina.local", "device_name": null, "payload": "{}"}}'
|
241
340
|
http_version:
|
242
|
-
recorded_at:
|
341
|
+
recorded_at: Mon, 17 Nov 2014 18:26:50 GMT
|
243
342
|
- request:
|
244
343
|
method: get
|
245
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
344
|
+
uri: https://app.datadoghq.com/api/v1/events/2549900881932518535?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
246
345
|
body:
|
247
346
|
encoding: US-ASCII
|
248
347
|
string: ''
|
249
348
|
headers:
|
349
|
+
Accept-Encoding:
|
350
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
250
351
|
Accept:
|
251
|
-
-
|
352
|
+
- '*/*'
|
252
353
|
User-Agent:
|
253
354
|
- Ruby
|
254
355
|
response:
|
@@ -261,27 +362,28 @@ http_interactions:
|
|
261
362
|
Content-Type:
|
262
363
|
- application/json
|
263
364
|
Date:
|
264
|
-
-
|
365
|
+
- Mon, 17 Nov 2014 18:26:50 GMT
|
265
366
|
Pragma:
|
266
367
|
- no-cache
|
267
368
|
Server:
|
268
|
-
- gunicorn/
|
269
|
-
|
270
|
-
-
|
271
|
-
|
369
|
+
- gunicorn/19.1.0
|
370
|
+
Strict-Transport-Security:
|
371
|
+
- max-age=15724800;
|
372
|
+
Vary:
|
373
|
+
- Accept-Encoding
|
272
374
|
X-Dd-Version:
|
273
|
-
- 31.
|
375
|
+
- 31.1883.245-0
|
274
376
|
Content-Length:
|
275
|
-
- '
|
377
|
+
- '256'
|
276
378
|
Connection:
|
277
379
|
- keep-alive
|
278
380
|
body:
|
279
|
-
encoding:
|
280
|
-
string:
|
281
|
-
"/api/v1/events/
|
282
|
-
"url": "/event/jump_to?event_id=
|
283
|
-
(second)", "tags": [], "id":
|
284
|
-
"
|
381
|
+
encoding: UTF-8
|
382
|
+
string: '{"event": {"date_happened": 1416248801, "alert_type": "info", "resource":
|
383
|
+
"/api/v1/events/2549900881932518535", "title": "Testing Aggregation (second)",
|
384
|
+
"url": "/event/jump_to?event_id=2549900881932518535", "text": "Testing Aggregation
|
385
|
+
(second)", "tags": [], "id": 2549900881932518535, "priority": "normal", "host":
|
386
|
+
"Conors-MacBook-Pro-Retina.local", "device_name": null, "payload": "{}"}}'
|
285
387
|
http_version:
|
286
|
-
recorded_at:
|
287
|
-
recorded_with: VCR 2.9.
|
388
|
+
recorded_at: Mon, 17 Nov 2014 18:26:50 GMT
|
389
|
+
recorded_with: VCR 2.9.3
|
@@ -8,7 +8,7 @@ http_interactions:
|
|
8
8
|
string: ''
|
9
9
|
headers:
|
10
10
|
Accept:
|
11
|
-
-
|
11
|
+
- '*/*'
|
12
12
|
response:
|
13
13
|
status:
|
14
14
|
code: 200
|
@@ -34,7 +34,7 @@ http_interactions:
|
|
34
34
|
- Thu, 29 Aug 2013 21:35:47 GMT
|
35
35
|
body:
|
36
36
|
encoding: UTF-8
|
37
|
-
string:
|
37
|
+
string: '{"event": {"date_happened": 1377812141, "alert_type": "info", "resource":
|
38
38
|
"/api/v1/events/1905040728720298327", "title": "dogapi-rb end test title 1377812141",
|
39
39
|
"url": "/event/jump_to?event_id=1905040728720298327", "text": "test message",
|
40
40
|
"tags": ["test-run:1"], "id": 1905040728720298327, "priority": "normal", "host":
|
@@ -49,7 +49,7 @@ http_interactions:
|
|
49
49
|
string: ''
|
50
50
|
headers:
|
51
51
|
Accept:
|
52
|
-
-
|
52
|
+
- '*/*'
|
53
53
|
User-Agent:
|
54
54
|
- Ruby
|
55
55
|
response:
|
@@ -78,20 +78,66 @@ http_interactions:
|
|
78
78
|
- keep-alive
|
79
79
|
body:
|
80
80
|
encoding: US-ASCII
|
81
|
-
string:
|
81
|
+
string: '{"errors": ["No event matches that comment_id."]}'
|
82
82
|
http_version:
|
83
83
|
recorded_at: Thu, 08 May 2014 18:08:42 GMT
|
84
|
+
- request:
|
85
|
+
method: get
|
86
|
+
uri: https://app.datadoghq.com/api/v1/events/2277466975478186943?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
87
|
+
body:
|
88
|
+
encoding: US-ASCII
|
89
|
+
string: ''
|
90
|
+
headers:
|
91
|
+
Accept:
|
92
|
+
- '*/*'
|
93
|
+
User-Agent:
|
94
|
+
- Ruby
|
95
|
+
response:
|
96
|
+
status:
|
97
|
+
code: 200
|
98
|
+
message: OK
|
99
|
+
headers:
|
100
|
+
Cache-Control:
|
101
|
+
- no-cache
|
102
|
+
Content-Type:
|
103
|
+
- application/json
|
104
|
+
Date:
|
105
|
+
- Tue, 13 May 2014 19:48:01 GMT
|
106
|
+
Pragma:
|
107
|
+
- no-cache
|
108
|
+
Server:
|
109
|
+
- gunicorn/0.17.4
|
110
|
+
Set-Cookie:
|
111
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
112
|
+
Path=/
|
113
|
+
X-Dd-Version:
|
114
|
+
- 31.1129.1362-0
|
115
|
+
Content-Length:
|
116
|
+
- '377'
|
117
|
+
Connection:
|
118
|
+
- keep-alive
|
119
|
+
body:
|
120
|
+
encoding: US-ASCII
|
121
|
+
string: '{"event": {"date_happened": 1400010475, "alert_type": "info", "resource":
|
122
|
+
"/api/v1/events/2277466975478186943", "title": "dogapi-rb end test title 1400010475",
|
123
|
+
"url": "/event/jump_to?event_id=2277466975478186943", "text": "test message",
|
124
|
+
"tags": ["test-run:carlo"], "id": 2277466975478186943, "priority": "normal",
|
125
|
+
"host": "dogbox-carlo", "device_name": null, "payload": "{}"}}'
|
126
|
+
http_version:
|
127
|
+
recorded_at: Tue, 13 May 2014 19:48:01 GMT
|
84
128
|
- request:
|
85
129
|
method: post
|
86
130
|
uri: https://app.datadoghq.com/api/v1/events?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
|
87
131
|
body:
|
88
132
|
encoding: UTF-8
|
89
|
-
string:
|
90
|
-
end test title
|
91
|
-
end test title
|
133
|
+
string: '{"msg_text":"test message","date_happened":1416248793,"msg_title":"dogapi-rb
|
134
|
+
end test title 1416248793","priority":"normal","parent":null,"tags":["test-run:1"],"aggregation_key":"","alert_type":null,"event_type":null,"source_type_name":null,"title":"dogapi-rb
|
135
|
+
end test title 1416248793","text":"test message","host":"Conors-MacBook-Pro-Retina.local","device":null}'
|
92
136
|
headers:
|
137
|
+
Accept-Encoding:
|
138
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
93
139
|
Accept:
|
94
|
-
-
|
140
|
+
- '*/*'
|
95
141
|
User-Agent:
|
96
142
|
- Ruby
|
97
143
|
Content-Type:
|
@@ -104,31 +150,34 @@ http_interactions:
|
|
104
150
|
Content-Type:
|
105
151
|
- text/json; charset=UTF-8
|
106
152
|
Date:
|
107
|
-
-
|
153
|
+
- Mon, 17 Nov 2014 18:26:33 GMT
|
108
154
|
Server:
|
109
|
-
- dogdispatcher/
|
155
|
+
- dogdispatcher/6.0.12
|
156
|
+
Strict-Transport-Security:
|
157
|
+
- max-age=15724800;
|
110
158
|
Content-Length:
|
111
|
-
- '
|
159
|
+
- '322'
|
112
160
|
Connection:
|
113
161
|
- keep-alive
|
114
162
|
body:
|
115
|
-
encoding:
|
116
|
-
string:
|
117
|
-
|
118
|
-
"
|
119
|
-
"
|
120
|
-
"id": 2277466975478186943}}'
|
163
|
+
encoding: UTF-8
|
164
|
+
string: '{"status": "ok", "event": {"priority": "normal", "date_happened": 1416248793,
|
165
|
+
"handle": null, "title": "dogapi-rb end test title 1416248793", "url": "https://app.datadoghq.com/event/jump_to?event_id=2549900732480976038",
|
166
|
+
"text": "test message", "tags": ["test-run:1"], "related_event_id": null,
|
167
|
+
"id": 2549900732480976038}}'
|
121
168
|
http_version:
|
122
|
-
recorded_at:
|
169
|
+
recorded_at: Mon, 17 Nov 2014 18:26:33 GMT
|
123
170
|
- request:
|
124
171
|
method: get
|
125
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
172
|
+
uri: https://app.datadoghq.com/api/v1/events/2549900732480976038?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
126
173
|
body:
|
127
174
|
encoding: US-ASCII
|
128
175
|
string: ''
|
129
176
|
headers:
|
177
|
+
Accept-Encoding:
|
178
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
130
179
|
Accept:
|
131
|
-
-
|
180
|
+
- '*/*'
|
132
181
|
User-Agent:
|
133
182
|
- Ruby
|
134
183
|
response:
|
@@ -141,27 +190,28 @@ http_interactions:
|
|
141
190
|
Content-Type:
|
142
191
|
- application/json
|
143
192
|
Date:
|
144
|
-
-
|
193
|
+
- Mon, 17 Nov 2014 18:26:41 GMT
|
145
194
|
Pragma:
|
146
195
|
- no-cache
|
147
196
|
Server:
|
148
|
-
- gunicorn/
|
149
|
-
|
150
|
-
-
|
151
|
-
|
197
|
+
- gunicorn/19.1.0
|
198
|
+
Strict-Transport-Security:
|
199
|
+
- max-age=15724800;
|
200
|
+
Vary:
|
201
|
+
- Accept-Encoding
|
152
202
|
X-Dd-Version:
|
153
|
-
- 31.
|
203
|
+
- 31.1883.245-0
|
154
204
|
Content-Length:
|
155
|
-
- '
|
205
|
+
- '263'
|
156
206
|
Connection:
|
157
207
|
- keep-alive
|
158
208
|
body:
|
159
|
-
encoding:
|
160
|
-
string:
|
161
|
-
"/api/v1/events/
|
162
|
-
"url": "/event/jump_to?event_id=
|
163
|
-
"tags": ["test-run:
|
164
|
-
"
|
209
|
+
encoding: UTF-8
|
210
|
+
string: '{"event": {"date_happened": 1416248793, "alert_type": "info", "resource":
|
211
|
+
"/api/v1/events/2549900732480976038", "title": "dogapi-rb end test title 1416248793",
|
212
|
+
"url": "/event/jump_to?event_id=2549900732480976038", "text": "test message",
|
213
|
+
"tags": ["test-run:1"], "id": 2549900732480976038, "priority": "normal", "host":
|
214
|
+
"Conors-MacBook-Pro-Retina.local", "device_name": null, "payload": "{}"}}'
|
165
215
|
http_version:
|
166
|
-
recorded_at:
|
167
|
-
recorded_with: VCR 2.9.
|
216
|
+
recorded_at: Mon, 17 Nov 2014 18:26:41 GMT
|
217
|
+
recorded_with: VCR 2.9.3
|