chef-handler-datadog 0.7.0 → 0.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/.env.example +2 -0
  3. data/CHANGELOG.md +15 -0
  4. data/Rakefile +7 -0
  5. data/lib/chef/handler/datadog.rb +1 -0
  6. data/lib/chef/handler/datadog_chef_metrics.rb +10 -1
  7. data/lib/chef/handler/datadog_chef_tags.rb +30 -9
  8. data/lib/chef_handler_datadog.rb +1 -1
  9. data/spec/datadog_spec.rb +74 -4
  10. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +258 -122
  11. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +129 -61
  12. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +129 -61
  13. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_node_name_when_no_config_specified.yml +124 -53
  14. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +124 -53
  15. 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 +124 -53
  16. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +124 -53
  17. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +124 -53
  18. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +124 -53
  19. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +124 -53
  20. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +124 -53
  21. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/sets_tags/puts_the_tags_for_the_current_node.yml +124 -53
  22. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/only_emits_a_failure_metric.yml +134 -0
  23. data/spec/support/cassettes/Chef_Handler_Datadog/resources/failure_during_compile_phase/posts_an_event.yml +77 -25
  24. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_specified/sets_the_role_and_env_and_tags.yml +89 -43
  25. data/spec/support/cassettes/Chef_Handler_Datadog/tags/when_unspecified/sets_role_env_and_nothing_else.yml +89 -42
  26. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_not_specified/does_not_retry_after_a_failed_submission.yml +241 -0
  27. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/retries_no_more_than_twice.yml +331 -0
  28. data/spec/support/cassettes/Chef_Handler_Datadog/tags_submission_retries/when_specified_as_2_retries/stops_retrying_once_submission_is_successful.yml +287 -0
  29. data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +126 -58
  30. metadata +11 -2
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1410264893,0.0]],"type":"gauge","host":"i-123456","device":null}]}'
8
+ string: '{"series":[{"metric":"chef.run.success","points":[[1453838670,1.0]],"type":"counter","host":"i-123456","device":null}]}'
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
15
  - Ruby
14
16
  Content-Type:
@@ -19,29 +21,35 @@ http_interactions:
19
21
  message: Accepted
20
22
  headers:
21
23
  Content-Type:
22
- - text/json; charset=UTF-8
24
+ - text/json
23
25
  Date:
24
- - Tue, 09 Sep 2014 12:14:49 GMT
25
- Server:
26
- - dogdispatcher/5.1.1
26
+ - Tue, 26 Jan 2016 20:04:25 GMT
27
+ Dd-Pool:
28
+ - propjoe
29
+ Strict-Transport-Security:
30
+ - max-age=15724800;
31
+ X-Content-Type-Options:
32
+ - nosniff
27
33
  Content-Length:
28
- - '15'
34
+ - '16'
29
35
  Connection:
30
36
  - keep-alive
31
37
  body:
32
- encoding: US-ASCII
33
- string: ! '{"status":"ok"}'
38
+ encoding: UTF-8
39
+ string: '{"status": "ok"}'
34
40
  http_version:
35
- recorded_at: Tue, 09 Sep 2014 12:14:53 GMT
41
+ recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
36
42
  - request:
37
43
  method: post
38
44
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
45
  body:
40
46
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1410264893,0.0]],"type":"gauge","host":"i-123456","device":null}]}'
47
+ string: '{"series":[{"metric":"chef.resources.total","points":[[1453838670,0.0]],"type":"gauge","host":"i-123456","device":null}]}'
42
48
  headers:
49
+ Accept-Encoding:
50
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
43
51
  Accept:
44
- - ! '*/*'
52
+ - "*/*"
45
53
  User-Agent:
46
54
  - Ruby
47
55
  Content-Type:
@@ -52,29 +60,35 @@ http_interactions:
52
60
  message: Accepted
53
61
  headers:
54
62
  Content-Type:
55
- - text/json; charset=UTF-8
63
+ - text/json
56
64
  Date:
57
- - Tue, 09 Sep 2014 12:14:49 GMT
58
- Server:
59
- - dogdispatcher/5.1.1
65
+ - Tue, 26 Jan 2016 20:04:26 GMT
66
+ Dd-Pool:
67
+ - propjoe
68
+ Strict-Transport-Security:
69
+ - max-age=15724800;
70
+ X-Content-Type-Options:
71
+ - nosniff
60
72
  Content-Length:
61
- - '15'
73
+ - '16'
62
74
  Connection:
63
75
  - keep-alive
64
76
  body:
65
- encoding: US-ASCII
66
- string: ! '{"status":"ok"}'
77
+ encoding: UTF-8
78
+ string: '{"status": "ok"}'
67
79
  http_version:
68
- recorded_at: Tue, 09 Sep 2014 12:14:53 GMT
80
+ recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
69
81
  - request:
70
82
  method: post
71
83
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
84
  body:
73
85
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1410264893,5.0]],"type":"gauge","host":"i-123456","device":null}]}'
86
+ string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838670,0.0]],"type":"gauge","host":"i-123456","device":null}]}'
75
87
  headers:
88
+ Accept-Encoding:
89
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
90
  Accept:
77
- - ! '*/*'
91
+ - "*/*"
78
92
  User-Agent:
79
93
  - Ruby
80
94
  Content-Type:
@@ -85,32 +99,77 @@ http_interactions:
85
99
  message: Accepted
86
100
  headers:
87
101
  Content-Type:
88
- - text/json; charset=UTF-8
102
+ - text/json
89
103
  Date:
90
- - Tue, 09 Sep 2014 12:14:50 GMT
91
- Server:
92
- - dogdispatcher/5.1.1
104
+ - Tue, 26 Jan 2016 20:04:26 GMT
105
+ Dd-Pool:
106
+ - propjoe
107
+ Strict-Transport-Security:
108
+ - max-age=15724800;
109
+ X-Content-Type-Options:
110
+ - nosniff
93
111
  Content-Length:
94
- - '15'
112
+ - '16'
95
113
  Connection:
96
114
  - keep-alive
97
115
  body:
98
- encoding: US-ASCII
99
- string: ! '{"status":"ok"}'
116
+ encoding: UTF-8
117
+ string: '{"status": "ok"}'
100
118
  http_version:
101
- recorded_at: Tue, 09 Sep 2014 12:14:53 GMT
119
+ recorded_at: Tue, 26 Jan 2016 20:04:30 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.elapsed_time","points":[[1453838670,5.0]],"type":"gauge","host":"i-123456","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:26 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:30 GMT
102
159
  - request:
103
160
  method: post
104
161
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
162
  body:
106
163
  encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1410264893,"msg_title":"Chef
164
+ string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838670,"msg_title":"Chef
108
165
  completed in 5 seconds on i-123456 ","priority":"low","parent":null,"tags":["env:testing"],"aggregation_key":"i-123456","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
109
166
  completed in 5 seconds on i-123456 ","text":"Chef updated 0 resources out
110
167
  of 0 resources total.","host":"i-123456","device":null}'
111
168
  headers:
169
+ Accept-Encoding:
170
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
171
  Accept:
113
- - ! '*/*'
172
+ - "*/*"
114
173
  User-Agent:
115
174
  - Ruby
116
175
  Content-Type:
@@ -121,33 +180,37 @@ http_interactions:
121
180
  message: Accepted
122
181
  headers:
123
182
  Content-Type:
124
- - text/json; charset=UTF-8
183
+ - text/plain; charset=utf-8
125
184
  Date:
126
- - Tue, 09 Sep 2014 12:14:50 GMT
127
- Server:
128
- - dogdispatcher/5.1.1
185
+ - Tue, 26 Jan 2016 20:04:26 GMT
186
+ Dd-Pool:
187
+ - propjoe
188
+ Strict-Transport-Security:
189
+ - max-age=15724800;
190
+ X-Content-Type-Options:
191
+ - nosniff
129
192
  Content-Length:
130
- - '363'
193
+ - '333'
131
194
  Connection:
132
195
  - keep-alive
133
196
  body:
134
- encoding: US-ASCII
135
- string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1410264893,
136
- "handle": null, "title": "Chef completed in 5 seconds on i-123456 ", "url":
137
- "https://app.datadoghq.com/event/jump_to?event_id=2449507503705612444", "text":
138
- "Chef updated 0 resources out of 0 resources total.", "tags": ["env:testing"],
139
- "related_event_id": null, "id": 2449507503705612444}}'
197
+ encoding: UTF-8
198
+ string: '{"status":"ok","event":{"id":381236685916283962,"title":"Chef completed
199
+ in 5 seconds on i-123456 ","text":"Chef updated 0 resources out of 0 resources
200
+ total.","date_happened":1453838670,"handle":null,"priority":"low","related_event_id":null,"tags":["env:testing"],"url":"https://app.datadoghq.com/event/event?id=381236685916283962"}}'
140
201
  http_version:
141
- recorded_at: Tue, 09 Sep 2014 12:14:53 GMT
202
+ recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
142
203
  - request:
143
204
  method: put
144
205
  uri: https://app.datadoghq.com/api/v1/tags/hosts/i-123456?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
145
206
  body:
146
207
  encoding: UTF-8
147
- string: ! '{"tags":["env:testing"]}'
208
+ string: '{"tags":["env:testing"]}'
148
209
  headers:
210
+ Accept-Encoding:
211
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
149
212
  Accept:
150
- - ! '*/*'
213
+ - "*/*"
151
214
  User-Agent:
152
215
  - Ruby
153
216
  Content-Type:
@@ -162,18 +225,26 @@ http_interactions:
162
225
  Content-Type:
163
226
  - application/json
164
227
  Date:
165
- - Tue, 09 Sep 2014 12:14:51 GMT
228
+ - Tue, 26 Jan 2016 20:04:26 GMT
229
+ Dd-Pool:
230
+ - dogweb_sameorig
166
231
  Pragma:
167
232
  - no-cache
168
- Server:
169
- - gunicorn/19.1.0
233
+ Strict-Transport-Security:
234
+ - max-age=15724800;
235
+ X-Content-Type-Options:
236
+ - nosniff
237
+ X-Dd-Debug:
238
+ - Lqo3/ximEWPWj/q8nw5y77qbM+7c3xo1aoVdmrbBiyU=
239
+ X-Frame-Options:
240
+ - SAMEORIGIN
170
241
  Content-Length:
171
242
  - '45'
172
243
  Connection:
173
244
  - keep-alive
174
245
  body:
175
- encoding: US-ASCII
176
- string: ! '{"host": "i-123456", "tags": ["env:testing"]}'
246
+ encoding: UTF-8
247
+ string: '{"host": "i-123456", "tags": ["env:testing"]}'
177
248
  http_version:
178
- recorded_at: Tue, 09 Sep 2014 12:14:53 GMT
179
- recorded_with: VCR 2.9.2
249
+ recorded_at: Tue, 26 Jan 2016 20:04:30 GMT
250
+ recorded_with: VCR 3.0.1
@@ -5,10 +5,12 @@ http_interactions:
5
5
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '{"series":[{"metric":"chef.resources.total","points":[[1410264925,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
8
+ string: '{"series":[{"metric":"chef.run.success","points":[[1453838674,1.0]],"type":"counter","host":"chef.handler.datadog.test","device":null}]}'
9
9
  headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
10
12
  Accept:
11
- - ! '*/*'
13
+ - "*/*"
12
14
  User-Agent:
13
15
  - Ruby
14
16
  Content-Type:
@@ -19,29 +21,35 @@ http_interactions:
19
21
  message: Accepted
20
22
  headers:
21
23
  Content-Type:
22
- - text/json; charset=UTF-8
24
+ - text/json
23
25
  Date:
24
- - Tue, 09 Sep 2014 12:15:20 GMT
25
- Server:
26
- - dogdispatcher/5.1.1
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
27
33
  Content-Length:
28
- - '15'
34
+ - '16'
29
35
  Connection:
30
36
  - keep-alive
31
37
  body:
32
- encoding: US-ASCII
33
- string: ! '{"status":"ok"}'
38
+ encoding: UTF-8
39
+ string: '{"status": "ok"}'
34
40
  http_version:
35
- recorded_at: Tue, 09 Sep 2014 12:15:25 GMT
41
+ recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
36
42
  - request:
37
43
  method: post
38
44
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
45
  body:
40
46
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1410264925,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
47
+ string: '{"series":[{"metric":"chef.resources.total","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
42
48
  headers:
49
+ Accept-Encoding:
50
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
43
51
  Accept:
44
- - ! '*/*'
52
+ - "*/*"
45
53
  User-Agent:
46
54
  - Ruby
47
55
  Content-Type:
@@ -52,29 +60,35 @@ http_interactions:
52
60
  message: Accepted
53
61
  headers:
54
62
  Content-Type:
55
- - text/json; charset=UTF-8
63
+ - text/json
56
64
  Date:
57
- - Tue, 09 Sep 2014 12:15:21 GMT
58
- Server:
59
- - dogdispatcher/5.1.1
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
60
72
  Content-Length:
61
- - '15'
73
+ - '16'
62
74
  Connection:
63
75
  - keep-alive
64
76
  body:
65
- encoding: US-ASCII
66
- string: ! '{"status":"ok"}'
77
+ encoding: UTF-8
78
+ string: '{"status": "ok"}'
67
79
  http_version:
68
- recorded_at: Tue, 09 Sep 2014 12:15:25 GMT
80
+ recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
69
81
  - request:
70
82
  method: post
71
83
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
84
  body:
73
85
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1410264925,5.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
86
+ string: '{"series":[{"metric":"chef.resources.updated","points":[[1453838674,0.0]],"type":"gauge","host":"chef.handler.datadog.test","device":null}]}'
75
87
  headers:
88
+ Accept-Encoding:
89
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
76
90
  Accept:
77
- - ! '*/*'
91
+ - "*/*"
78
92
  User-Agent:
79
93
  - Ruby
80
94
  Content-Type:
@@ -85,32 +99,77 @@ http_interactions:
85
99
  message: Accepted
86
100
  headers:
87
101
  Content-Type:
88
- - text/json; charset=UTF-8
102
+ - text/json
89
103
  Date:
90
- - Tue, 09 Sep 2014 12:15:21 GMT
91
- Server:
92
- - dogdispatcher/5.1.1
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
93
111
  Content-Length:
94
- - '15'
112
+ - '16'
95
113
  Connection:
96
114
  - keep-alive
97
115
  body:
98
- encoding: US-ASCII
99
- string: ! '{"status":"ok"}'
116
+ encoding: UTF-8
117
+ string: '{"status": "ok"}'
100
118
  http_version:
101
- recorded_at: Tue, 09 Sep 2014 12:15:25 GMT
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.elapsed_time","points":[[1453838674,5.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:29 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
102
159
  - request:
103
160
  method: post
104
161
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
162
  body:
106
163
  encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1410264925,"msg_title":"Chef
164
+ string: '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1453838674,"msg_title":"Chef
108
165
  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
109
166
  completed in 5 seconds on chef.handler.datadog.test ","text":"Chef updated
110
167
  0 resources out of 0 resources total.","host":"chef.handler.datadog.test","device":null}'
111
168
  headers:
169
+ Accept-Encoding:
170
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
112
171
  Accept:
113
- - ! '*/*'
172
+ - "*/*"
114
173
  User-Agent:
115
174
  - Ruby
116
175
  Content-Type:
@@ -121,33 +180,37 @@ http_interactions:
121
180
  message: Accepted
122
181
  headers:
123
182
  Content-Type:
124
- - text/json; charset=UTF-8
183
+ - text/plain; charset=utf-8
125
184
  Date:
126
- - Tue, 09 Sep 2014 12:15:22 GMT
127
- Server:
128
- - dogdispatcher/5.1.1
185
+ - Tue, 26 Jan 2016 20:04:29 GMT
186
+ Dd-Pool:
187
+ - propjoe
188
+ Strict-Transport-Security:
189
+ - max-age=15724800;
190
+ X-Content-Type-Options:
191
+ - nosniff
129
192
  Content-Length:
130
- - '380'
193
+ - '350'
131
194
  Connection:
132
195
  - keep-alive
133
196
  body:
134
- encoding: US-ASCII
135
- string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1410264925,
136
- "handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test
137
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2449508030241755204",
138
- "text": "Chef updated 0 resources out of 0 resources total.", "tags": ["env:testing"],
139
- "related_event_id": null, "id": 2449508030241755204}}'
197
+ encoding: UTF-8
198
+ string: '{"status":"ok","event":{"id":381236744299842747,"title":"Chef completed
199
+ in 5 seconds on chef.handler.datadog.test ","text":"Chef updated 0 resources
200
+ 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=381236744299842747"}}'
140
201
  http_version:
141
- recorded_at: Tue, 09 Sep 2014 12:15:25 GMT
202
+ recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
142
203
  - request:
143
204
  method: put
144
205
  uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
145
206
  body:
146
207
  encoding: UTF-8
147
- string: ! '{"tags":["env:testing"]}'
208
+ string: '{"tags":["env:testing"]}'
148
209
  headers:
210
+ Accept-Encoding:
211
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
149
212
  Accept:
150
- - ! '*/*'
213
+ - "*/*"
151
214
  User-Agent:
152
215
  - Ruby
153
216
  Content-Type:
@@ -162,18 +225,26 @@ http_interactions:
162
225
  Content-Type:
163
226
  - application/json
164
227
  Date:
165
- - Tue, 09 Sep 2014 12:15:22 GMT
228
+ - Tue, 26 Jan 2016 20:04:29 GMT
229
+ Dd-Pool:
230
+ - dogweb_sameorig
166
231
  Pragma:
167
232
  - no-cache
168
- Server:
169
- - gunicorn/19.1.0
233
+ Strict-Transport-Security:
234
+ - max-age=15724800;
235
+ X-Content-Type-Options:
236
+ - nosniff
237
+ X-Dd-Debug:
238
+ - 1TZ9yjqyTQEuQgFvlhDrXBTp0x7coU279EZsIv2sDHg=
239
+ X-Frame-Options:
240
+ - SAMEORIGIN
170
241
  Content-Length:
171
242
  - '62'
172
243
  Connection:
173
244
  - keep-alive
174
245
  body:
175
- encoding: US-ASCII
176
- string: ! '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
246
+ encoding: UTF-8
247
+ string: '{"host": "chef.handler.datadog.test", "tags": ["env:testing"]}'
177
248
  http_version:
178
- recorded_at: Tue, 09 Sep 2014 12:15:25 GMT
179
- recorded_with: VCR 2.9.2
249
+ recorded_at: Tue, 26 Jan 2016 20:04:34 GMT
250
+ recorded_with: VCR 3.0.1