chef-handler-datadog 0.12.3 → 0.13.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.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +158 -0
  3. data/.gitignore +0 -1
  4. data/CHANGELOG.md +9 -0
  5. data/Gemfile +1 -0
  6. data/Gemfile.lock +296 -0
  7. data/README.md +1 -1
  8. data/chef-handler-datadog.gemspec +1 -1
  9. data/lib/chef/handler/datadog_chef_events.rb +3 -0
  10. data/lib/chef/handler/datadog_chef_tags.rb +2 -1
  11. data/lib/chef_handler_datadog.rb +1 -1
  12. data/spec/datadog_spec.rb +173 -166
  13. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +239 -181
  14. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +119 -90
  15. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +119 -90
  16. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +119 -89
  17. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +119 -89
  18. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/does_not_use_the_instance_id_when_config_specified_to_false.yml +119 -89
  19. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +119 -89
  20. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +119 -89
  21. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +119 -89
  22. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +119 -89
  23. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +119 -89
  24. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +119 -89
  25. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/only_emits_the_run_status_metrics.yml +74 -56
  26. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +74 -56
  27. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase_with_an_elapsed_time_and_incomplete_resource_collection/only_emits_the_run_status_metrics.yml +73 -55
  28. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase_with_an_elapsed_time_and_incomplete_resource_collection/posts_an_event.yml +73 -55
  29. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_policy_tags_are_enabled/sets_the_policy_name_and_policy_group_tags.yml +120 -90
  30. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_policy_tags_are_not_enabled/does_not_set_the_policy_name_and_policy_group_tags.yml +111 -81
  31. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_scope_prefix.yml +119 -90
  32. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_empty_tag_prefix.yml +117 -127
  33. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_scope_prefix.yml +119 -90
  34. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/allows_for_user-specified_tag_prefix.yml +121 -92
  35. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/sets_the_role_and_env_and_tags.yml +119 -90
  36. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_specified/does_not_include_the_tag_s_specified.yml +118 -88
  37. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_tag_blacklist_is_unspecified/should_include_all_of_the_tag_s_.yml +118 -88
  38. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_unspecified/sets_role_env_and_nothing_else.yml +119 -90
  39. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_not_specified/does_not_retry_after_a_failed_submission.yml +112 -124
  40. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml +108 -210
  41. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml +110 -168
  42. data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +119 -89
  43. metadata +9 -21
  44. data/.travis.yml +0 -34
  45. data/gemfiles/chef_12.7.gemfile +0 -16
  46. data/gemfiles/chef_12.gemfile +0 -16
  47. data/gemfiles/chef_13.gemfile +0 -16
  48. data/gemfiles/chef_14.gemfile +0 -16
  49. data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +0 -143
  50. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_events/posts_an_event.yml +0 -575
  51. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/emits_metrics/reports_metrics.yml +0 -575
  52. data/spec/support/cassettes/Chef_Handler_Datadog/when_reporting_to_multiple_endpoints/sets_tags/puts_the_tags_for_the_current_node.yml +0 -575
@@ -1,575 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
- body:
7
- encoding: UTF-8
8
- string: '{"series":[{"metric":"chef.run.success","points":[[1453838674,1.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
9
- headers:
10
- Accept-Encoding:
11
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
- Accept:
13
- - "*/*"
14
- User-Agent:
15
- - Ruby
16
- Content-Type:
17
- - application/json
18
- response:
19
- status:
20
- code: 202
21
- message: Accepted
22
- headers:
23
- Content-Type:
24
- - text/json
25
- Date:
26
- - Tue, 26 Jan 2016 20:04:29 GMT
27
- Dd-Pool:
28
- - propjoe
29
- Strict-Transport-Security:
30
- - max-age=15724800;
31
- X-Content-Type-Options:
32
- - nosniff
33
- Content-Length:
34
- - '16'
35
- Connection:
36
- - keep-alive
37
- body:
38
- encoding: UTF-8
39
- string: '{"status": "ok"}'
40
- http_version:
41
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
42
- - request:
43
- method: post
44
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
45
- body:
46
- encoding: UTF-8
47
- string: '{"series":[{"metric":"chef.run.failure","points":[[1453838674,0.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
48
- headers:
49
- Accept-Encoding:
50
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
51
- Accept:
52
- - "*/*"
53
- User-Agent:
54
- - Ruby
55
- Content-Type:
56
- - application/json
57
- response:
58
- status:
59
- code: 202
60
- message: Accepted
61
- headers:
62
- Content-Type:
63
- - text/json
64
- Date:
65
- - Tue, 26 Jan 2016 20:04:29 GMT
66
- Dd-Pool:
67
- - propjoe
68
- Strict-Transport-Security:
69
- - max-age=15724800;
70
- X-Content-Type-Options:
71
- - nosniff
72
- Content-Length:
73
- - '16'
74
- Connection:
75
- - keep-alive
76
- body:
77
- encoding: UTF-8
78
- string: '{"status": "ok"}'
79
- http_version:
80
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
81
- - request:
82
- method: post
83
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
84
- body:
85
- encoding: UTF-8
86
- string: '{"series":[{"metric":"chef.resources.total","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
87
- headers:
88
- Accept-Encoding:
89
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
90
- Accept:
91
- - "*/*"
92
- User-Agent:
93
- - Ruby
94
- Content-Type:
95
- - application/json
96
- response:
97
- status:
98
- code: 202
99
- message: Accepted
100
- headers:
101
- Content-Type:
102
- - text/json
103
- Date:
104
- - Tue, 26 Jan 2016 20:04:29 GMT
105
- Dd-Pool:
106
- - propjoe
107
- Strict-Transport-Security:
108
- - max-age=15724800;
109
- X-Content-Type-Options:
110
- - nosniff
111
- Content-Length:
112
- - '16'
113
- Connection:
114
- - keep-alive
115
- body:
116
- encoding: UTF-8
117
- string: '{"status": "ok"}'
118
- http_version:
119
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
120
- - request:
121
- method: post
122
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
123
- body:
124
- encoding: UTF-8
125
- string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
126
- headers:
127
- Accept-Encoding:
128
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
129
- Accept:
130
- - "*/*"
131
- User-Agent:
132
- - Ruby
133
- Content-Type:
134
- - application/json
135
- response:
136
- status:
137
- code: 202
138
- message: Accepted
139
- headers:
140
- Content-Type:
141
- - text/json
142
- Date:
143
- - Tue, 26 Jan 2016 20:04:30 GMT
144
- Dd-Pool:
145
- - propjoe
146
- Strict-Transport-Security:
147
- - max-age=15724800;
148
- X-Content-Type-Options:
149
- - nosniff
150
- Content-Length:
151
- - '16'
152
- Connection:
153
- - keep-alive
154
- body:
155
- encoding: UTF-8
156
- string: '{"status": "ok"}'
157
- http_version:
158
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
159
- - request:
160
- method: post
161
- uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
162
- body:
163
- encoding: UTF-8
164
- string: '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1453838674,5.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
165
- headers:
166
- Accept-Encoding:
167
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
168
- Accept:
169
- - "*/*"
170
- User-Agent:
171
- - Ruby
172
- Content-Type:
173
- - application/json
174
- response:
175
- status:
176
- code: 202
177
- message: Accepted
178
- headers:
179
- Content-Type:
180
- - text/json
181
- Date:
182
- - Tue, 26 Jan 2016 20:04:30 GMT
183
- Dd-Pool:
184
- - propjoe
185
- Strict-Transport-Security:
186
- - max-age=15724800;
187
- X-Content-Type-Options:
188
- - nosniff
189
- Content-Length:
190
- - '16'
191
- Connection:
192
- - keep-alive
193
- body:
194
- encoding: UTF-8
195
- string: '{"status": "ok"}'
196
- http_version:
197
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
198
- - request:
199
- method: post
200
- uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
201
- body:
202
- encoding: UTF-8
203
- string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838674,"msg_title":"Chef
204
- completed in 5 seconds on chef.handler.datadog.test ","priority":"low","parent":null,"tags":["env:testing"],"aggregation_key":"chef.handler.datadog.test","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
205
- completed in 5 seconds on chef.handler.datadog.test ","text":"Chef updated
206
- 0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
207
- headers:
208
- Accept-Encoding:
209
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
210
- Accept:
211
- - "*/*"
212
- User-Agent:
213
- - Ruby
214
- Content-Type:
215
- - application/json
216
- response:
217
- status:
218
- code: 202
219
- message: Accepted
220
- headers:
221
- Content-Type:
222
- - text/plain; charset=utf-8
223
- Date:
224
- - Tue, 26 Jan 2016 20:04:30 GMT
225
- Dd-Pool:
226
- - propjoe
227
- Strict-Transport-Security:
228
- - max-age=15724800;
229
- X-Content-Type-Options:
230
- - nosniff
231
- Content-Length:
232
- - '350'
233
- Connection:
234
- - keep-alive
235
- body:
236
- encoding: UTF-8
237
- string: '{"status":"ok","event":{"id":381236751983296521,"title":"Chef completed
238
- in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
239
- out of 0 resources total.","date_happened":1453838674,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236751983296521"}}'
240
- http_version:
241
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
242
- - request:
243
- method: put
244
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
245
- body:
246
- encoding: UTF-8
247
- string: '{"tags":["env:testing"]}'
248
- headers:
249
- Accept-Encoding:
250
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
251
- Accept:
252
- - "*/*"
253
- User-Agent:
254
- - Ruby
255
- Content-Type:
256
- - application/json
257
- response:
258
- status:
259
- code: 201
260
- message: Created
261
- headers:
262
- Cache-Control:
263
- - no-cache
264
- Content-Type:
265
- - application/json
266
- Date:
267
- - Tue, 26 Jan 2016 20:04:30 GMT
268
- Dd-Pool:
269
- - dogweb_sameorig
270
- Pragma:
271
- - no-cache
272
- Strict-Transport-Security:
273
- - max-age=15724800;
274
- X-Content-Type-Options:
275
- - nosniff
276
- X-Dd-Debug:
277
- - 1TZ9yjqyTQEuQgFvlhDrXBTp0x7coU279EZsIv2sDHg=
278
- X-Frame-Options:
279
- - SAMEORIGIN
280
- Content-Length:
281
- - '62'
282
- Connection:
283
- - keep-alive
284
- body:
285
- encoding: UTF-8
286
- string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
287
- http_version:
288
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
289
- - request:
290
- method: post
291
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
292
- body:
293
- encoding: UTF-8
294
- string: '{"series":[{"metric":"chef.run.success","points":[[1453838674,1.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
295
- headers:
296
- Accept-Encoding:
297
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
298
- Accept:
299
- - "*/*"
300
- User-Agent:
301
- - Ruby
302
- Content-Type:
303
- - application/json
304
- response:
305
- status:
306
- code: 202
307
- message: Accepted
308
- headers:
309
- Content-Type:
310
- - text/json
311
- Date:
312
- - Tue, 26 Jan 2016 20:04:29 GMT
313
- Dd-Pool:
314
- - propjoe
315
- Strict-Transport-Security:
316
- - max-age=15724800;
317
- X-Content-Type-Options:
318
- - nosniff
319
- Content-Length:
320
- - '16'
321
- Connection:
322
- - keep-alive
323
- body:
324
- encoding: UTF-8
325
- string: '{"status": "ok"}'
326
- http_version:
327
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
328
- - request:
329
- method: post
330
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
331
- body:
332
- encoding: UTF-8
333
- string: '{"series":[{"metric":"chef.run.failure","points":[[1453838674,0.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
334
- headers:
335
- Accept-Encoding:
336
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
337
- Accept:
338
- - "*/*"
339
- User-Agent:
340
- - Ruby
341
- Content-Type:
342
- - application/json
343
- response:
344
- status:
345
- code: 202
346
- message: Accepted
347
- headers:
348
- Content-Type:
349
- - text/json
350
- Date:
351
- - Tue, 26 Jan 2016 20:04:29 GMT
352
- Dd-Pool:
353
- - propjoe
354
- Strict-Transport-Security:
355
- - max-age=15724800;
356
- X-Content-Type-Options:
357
- - nosniff
358
- Content-Length:
359
- - '16'
360
- Connection:
361
- - keep-alive
362
- body:
363
- encoding: UTF-8
364
- string: '{"status": "ok"}'
365
- http_version:
366
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
367
- - request:
368
- method: post
369
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
370
- body:
371
- encoding: UTF-8
372
- string: '{"series":[{"metric":"chef.resources.total","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
373
- headers:
374
- Accept-Encoding:
375
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
376
- Accept:
377
- - "*/*"
378
- User-Agent:
379
- - Ruby
380
- Content-Type:
381
- - application/json
382
- response:
383
- status:
384
- code: 202
385
- message: Accepted
386
- headers:
387
- Content-Type:
388
- - text/json
389
- Date:
390
- - Tue, 26 Jan 2016 20:04:29 GMT
391
- Dd-Pool:
392
- - propjoe
393
- Strict-Transport-Security:
394
- - max-age=15724800;
395
- X-Content-Type-Options:
396
- - nosniff
397
- Content-Length:
398
- - '16'
399
- Connection:
400
- - keep-alive
401
- body:
402
- encoding: UTF-8
403
- string: '{"status": "ok"}'
404
- http_version:
405
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
406
- - request:
407
- method: post
408
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
409
- body:
410
- encoding: UTF-8
411
- string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
412
- headers:
413
- Accept-Encoding:
414
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
415
- Accept:
416
- - "*/*"
417
- User-Agent:
418
- - Ruby
419
- Content-Type:
420
- - application/json
421
- response:
422
- status:
423
- code: 202
424
- message: Accepted
425
- headers:
426
- Content-Type:
427
- - text/json
428
- Date:
429
- - Tue, 26 Jan 2016 20:04:30 GMT
430
- Dd-Pool:
431
- - propjoe
432
- Strict-Transport-Security:
433
- - max-age=15724800;
434
- X-Content-Type-Options:
435
- - nosniff
436
- Content-Length:
437
- - '16'
438
- Connection:
439
- - keep-alive
440
- body:
441
- encoding: UTF-8
442
- string: '{"status": "ok"}'
443
- http_version:
444
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
445
- - request:
446
- method: post
447
- uri: https://app.example.com/api/v1/series?api_key=api_key_example
448
- body:
449
- encoding: UTF-8
450
- string: '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1453838674,5.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
451
- headers:
452
- Accept-Encoding:
453
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
454
- Accept:
455
- - "*/*"
456
- User-Agent:
457
- - Ruby
458
- Content-Type:
459
- - application/json
460
- response:
461
- status:
462
- code: 202
463
- message: Accepted
464
- headers:
465
- Content-Type:
466
- - text/json
467
- Date:
468
- - Tue, 26 Jan 2016 20:04:30 GMT
469
- Dd-Pool:
470
- - propjoe
471
- Strict-Transport-Security:
472
- - max-age=15724800;
473
- X-Content-Type-Options:
474
- - nosniff
475
- Content-Length:
476
- - '16'
477
- Connection:
478
- - keep-alive
479
- body:
480
- encoding: UTF-8
481
- string: '{"status": "ok"}'
482
- http_version:
483
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
484
- - request:
485
- method: post
486
- uri: https://app.example.com/api/v1/events?api_key=api_key_example
487
- body:
488
- encoding: UTF-8
489
- string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838674,"msg_title":"Chef
490
- completed in 5 seconds on chef.handler.datadog.test ","priority":"low","parent":null,"tags":["env:testing"],"aggregation_key":"chef.handler.datadog.test","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
491
- completed in 5 seconds on chef.handler.datadog.test ","text":"Chef updated
492
- 0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
493
- headers:
494
- Accept-Encoding:
495
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
496
- Accept:
497
- - "*/*"
498
- User-Agent:
499
- - Ruby
500
- Content-Type:
501
- - application/json
502
- response:
503
- status:
504
- code: 202
505
- message: Accepted
506
- headers:
507
- Content-Type:
508
- - text/plain; charset=utf-8
509
- Date:
510
- - Tue, 26 Jan 2016 20:04:30 GMT
511
- Dd-Pool:
512
- - propjoe
513
- Strict-Transport-Security:
514
- - max-age=15724800;
515
- X-Content-Type-Options:
516
- - nosniff
517
- Content-Length:
518
- - '350'
519
- Connection:
520
- - keep-alive
521
- body:
522
- encoding: UTF-8
523
- string: '{"status":"ok","event":{"id":381236751983296521,"title":"Chef completed
524
- in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
525
- out of 0 resources total.","date_happened":1453838674,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.example.com/event/event?id=381236751983296521"}}'
526
- http_version:
527
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
528
- - request:
529
- method: put
530
- uri: https://app.example.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=api_key_example&application_key=application_key_example&source=chef
531
- body:
532
- encoding: UTF-8
533
- string: '{"tags":["env:testing"]}'
534
- headers:
535
- Accept-Encoding:
536
- - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
537
- Accept:
538
- - "*/*"
539
- User-Agent:
540
- - Ruby
541
- Content-Type:
542
- - application/json
543
- response:
544
- status:
545
- code: 201
546
- message: Created
547
- headers:
548
- Cache-Control:
549
- - no-cache
550
- Content-Type:
551
- - application/json
552
- Date:
553
- - Tue, 26 Jan 2016 20:04:30 GMT
554
- Dd-Pool:
555
- - dogweb_sameorig
556
- Pragma:
557
- - no-cache
558
- Strict-Transport-Security:
559
- - max-age=15724800;
560
- X-Content-Type-Options:
561
- - nosniff
562
- X-Dd-Debug:
563
- - 1TZ9yjqyTQEuQgFvlhDrXBTp0x7coU279EZsIv2sDHg=
564
- X-Frame-Options:
565
- - SAMEORIGIN
566
- Content-Length:
567
- - '62'
568
- Connection:
569
- - keep-alive
570
- body:
571
- encoding: UTF-8
572
- string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
573
- http_version:
574
- recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
575
- recorded_with: VCR 3.0.1