chef-handler-datadog 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -2
  3. data/.rubocop.yml +3 -1
  4. data/.travis.yml +3 -2
  5. data/Appraisals +4 -4
  6. data/CHANGELOG.md +12 -1
  7. data/chef-handler-datadog.gemspec +6 -6
  8. data/gemfiles/chef_10.26.0.gemfile +1 -1
  9. data/gemfiles/chef_10.26.0.gemfile.lock +140 -0
  10. data/gemfiles/chef_10.32.2.gemfile +13 -0
  11. data/gemfiles/chef_10.32.2.gemfile.lock +140 -0
  12. data/gemfiles/{chef_10.14.0.gemfile → chef_11.10.4.gemfile} +2 -2
  13. data/gemfiles/chef_11.10.4.gemfile.lock +143 -0
  14. data/gemfiles/{chef_10.30.2.gemfile → chef_11.12.2.gemfile} +2 -2
  15. data/gemfiles/chef_11.12.2.gemfile.lock +139 -0
  16. data/gemfiles/chef_11.8.2.gemfile +1 -2
  17. data/gemfiles/chef_11.8.2.gemfile.lock +143 -0
  18. data/lib/chef/handler/datadog.rb +102 -79
  19. data/lib/{chef-handler-datadog.rb → chef_handler_datadog.rb} +1 -1
  20. data/spec/datadog_spec.rb +55 -7
  21. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_alert_handles_when_specified.yml +363 -0
  22. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_event_title_correctly.yml +25 -60
  23. data/spec/support/cassettes/Chef_Handler_Datadog/failed_Chef_run/sets_priority_correctly.yml +25 -60
  24. data/spec/support/cassettes/Chef_Handler_Datadog/handles_no_application_key/fails_when_no_application_key_is_provided.yml +20 -20
  25. data/spec/support/cassettes/Chef_Handler_Datadog/handles_tags_correctly/sets_the_role_and_env_and_tags.yml +25 -60
  26. data/spec/support/cassettes/Chef_Handler_Datadog/{reports_metrics_event_and_sets_tags/get_and_set_tags/gets_the_tags_for_the_current_node.yml → hostname/uses_the_node_name_when_no_config_specified.yml} +30 -65
  27. data/spec/support/cassettes/Chef_Handler_Datadog/hostname/uses_the_specified_hostname_when_provided.yml +179 -0
  28. 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 +23 -58
  29. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_config_is_specified.yml +23 -58
  30. data/spec/support/cassettes/Chef_Handler_Datadog/reports_correct_hostname_on_an_ec2_node/uses_the_instance_id_when_no_config_specified.yml +23 -58
  31. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/posts_an_event.yml +23 -58
  32. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_events/sets_priority_correctly.yml +23 -58
  33. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/emits_metrics/reports_metrics.yml +23 -58
  34. data/spec/support/cassettes/Chef_Handler_Datadog/reports_metrics_event_and_sets_tags/{get_and_set_tags → sets_tags}/puts_the_tags_for_the_current_node.yml +23 -58
  35. data/spec/support/cassettes/Chef_Handler_Datadog/updated_resources/posts_an_event.yml +23 -58
  36. metadata +28 -18
@@ -5,7 +5,7 @@ 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":[[1390096494,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
8
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398157261,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*'
@@ -21,9 +21,9 @@ http_interactions:
21
21
  Content-Type:
22
22
  - text/json; charset=UTF-8
23
23
  Date:
24
- - Sun, 19 Jan 2014 01:54:44 GMT
24
+ - Tue, 22 Apr 2014 09:01:00 GMT
25
25
  Server:
26
- - dogdispatcher/4.10.0
26
+ - dogdispatcher/4.12.1
27
27
  Content-Length:
28
28
  - '15'
29
29
  Connection:
@@ -32,13 +32,13 @@ http_interactions:
32
32
  encoding: US-ASCII
33
33
  string: ! '{"status":"ok"}'
34
34
  http_version:
35
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
35
+ recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
39
  body:
40
40
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1390096494,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
41
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398157261,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
42
42
  headers:
43
43
  Accept:
44
44
  - ! '*/*'
@@ -54,9 +54,9 @@ http_interactions:
54
54
  Content-Type:
55
55
  - text/json; charset=UTF-8
56
56
  Date:
57
- - Sun, 19 Jan 2014 01:54:48 GMT
57
+ - Tue, 22 Apr 2014 09:01:01 GMT
58
58
  Server:
59
- - dogdispatcher/4.10.0
59
+ - dogdispatcher/4.12.1
60
60
  Content-Length:
61
61
  - '15'
62
62
  Connection:
@@ -65,13 +65,13 @@ http_interactions:
65
65
  encoding: US-ASCII
66
66
  string: ! '{"status":"ok"}'
67
67
  http_version:
68
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
68
+ recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
69
69
  - request:
70
70
  method: post
71
71
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
72
  body:
73
73
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1390096494,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
74
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398157261,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
75
75
  headers:
76
76
  Accept:
77
77
  - ! '*/*'
@@ -87,9 +87,9 @@ http_interactions:
87
87
  Content-Type:
88
88
  - text/json; charset=UTF-8
89
89
  Date:
90
- - Sun, 19 Jan 2014 01:54:48 GMT
90
+ - Tue, 22 Apr 2014 09:01:02 GMT
91
91
  Server:
92
- - dogdispatcher/4.10.0
92
+ - dogdispatcher/4.12.1
93
93
  Content-Length:
94
94
  - '15'
95
95
  Connection:
@@ -98,14 +98,14 @@ http_interactions:
98
98
  encoding: US-ASCII
99
99
  string: ! '{"status":"ok"}'
100
100
  http_version:
101
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
101
+ recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
102
102
  - request:
103
103
  method: post
104
104
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
105
  body:
106
106
  encoding: UTF-8
107
107
  string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
108
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1390096494,"msg_title":"Chef
108
+ Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1398157261,"msg_title":"Chef
109
109
  failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
110
110
  failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
111
111
  0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
@@ -125,9 +125,9 @@ http_interactions:
125
125
  Content-Type:
126
126
  - text/json; charset=UTF-8
127
127
  Date:
128
- - Sun, 19 Jan 2014 01:54:48 GMT
128
+ - Tue, 22 Apr 2014 09:01:04 GMT
129
129
  Server:
130
- - dogdispatcher/4.10.0
130
+ - dogdispatcher/4.12.1
131
131
  Content-Length:
132
132
  - '474'
133
133
  Connection:
@@ -135,51 +135,16 @@ http_interactions:
135
135
  body:
136
136
  encoding: US-ASCII
137
137
  string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
138
- 1390096494, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2111137870265175278",
138
+ 1398157261, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375237107537507",
140
140
  "text": "Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
141
141
  Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n", "tags": [], "related_event_id":
142
- null, "id": 2111137870265175278}}'
142
+ null, "id": 2246375237107537507}}'
143
143
  http_version:
144
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
145
- - request:
146
- method: get
147
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
148
- body:
149
- encoding: US-ASCII
150
- string: ''
151
- headers:
152
- Accept:
153
- - ! '*/*'
154
- User-Agent:
155
- - Ruby
156
- response:
157
- status:
158
- code: 200
159
- message: OK
160
- headers:
161
- Cache-Control:
162
- - no-cache
163
- Content-Type:
164
- - application/json
165
- Date:
166
- - Sun, 19 Jan 2014 01:54:49 GMT
167
- Pragma:
168
- - no-cache
169
- Server:
170
- - gunicorn/0.17.4
171
- Content-Length:
172
- - '44'
173
- Connection:
174
- - keep-alive
175
- body:
176
- encoding: US-ASCII
177
- string: ! '{"tags": ["env:hostile", "role:highlander"]}'
178
- http_version:
179
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
144
+ recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
180
145
  - request:
181
146
  method: put
182
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
147
+ uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
183
148
  body:
184
149
  encoding: UTF-8
185
150
  string: ! '{"tags":["env:hostile","role:highlander","tag:the_one_and_only"]}'
@@ -200,19 +165,19 @@ http_interactions:
200
165
  Content-Type:
201
166
  - application/json
202
167
  Date:
203
- - Sun, 19 Jan 2014 01:54:49 GMT
168
+ - Tue, 22 Apr 2014 09:01:05 GMT
204
169
  Pragma:
205
170
  - no-cache
206
171
  Server:
207
172
  - gunicorn/0.17.4
208
173
  Content-Length:
209
- - '88'
174
+ - '112'
210
175
  Connection:
211
176
  - keep-alive
212
177
  body:
213
178
  encoding: US-ASCII
214
179
  string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["env:hostile",
215
- "role:highlander"]}'
180
+ "role:highlander", "tag:the_one_and_only"]}'
216
181
  http_version:
217
- recorded_at: Sun, 19 Jan 2014 01:54:54 GMT
218
- recorded_with: VCR 2.8.0
182
+ recorded_at: Tue, 22 Apr 2014 09:01:01 GMT
183
+ recorded_with: VCR 2.9.0
@@ -5,7 +5,7 @@ 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":[[1390096500,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
8
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398157267,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*'
@@ -21,9 +21,9 @@ http_interactions:
21
21
  Content-Type:
22
22
  - text/json; charset=UTF-8
23
23
  Date:
24
- - Sun, 19 Jan 2014 01:54:50 GMT
24
+ - Tue, 22 Apr 2014 09:01:06 GMT
25
25
  Server:
26
- - dogdispatcher/4.10.0
26
+ - dogdispatcher/4.12.1
27
27
  Content-Length:
28
28
  - '15'
29
29
  Connection:
@@ -32,13 +32,13 @@ http_interactions:
32
32
  encoding: US-ASCII
33
33
  string: ! '{"status":"ok"}'
34
34
  http_version:
35
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
35
+ recorded_at: Tue, 22 Apr 2014 09:01:07 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
39
  body:
40
40
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1390096500,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
41
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398157267,0.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
42
42
  headers:
43
43
  Accept:
44
44
  - ! '*/*'
@@ -54,9 +54,9 @@ http_interactions:
54
54
  Content-Type:
55
55
  - text/json; charset=UTF-8
56
56
  Date:
57
- - Sun, 19 Jan 2014 01:54:50 GMT
57
+ - Tue, 22 Apr 2014 09:01:08 GMT
58
58
  Server:
59
- - dogdispatcher/4.10.0
59
+ - dogdispatcher/4.12.1
60
60
  Content-Length:
61
61
  - '15'
62
62
  Connection:
@@ -65,13 +65,13 @@ http_interactions:
65
65
  encoding: US-ASCII
66
66
  string: ! '{"status":"ok"}'
67
67
  http_version:
68
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
68
+ recorded_at: Tue, 22 Apr 2014 09:01:07 GMT
69
69
  - request:
70
70
  method: post
71
71
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
72
  body:
73
73
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1390096500,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
74
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398157267,2.0]],"type":"gauge","host":"chef.handler.datadog.test-failed","device":null}]}'
75
75
  headers:
76
76
  Accept:
77
77
  - ! '*/*'
@@ -87,9 +87,9 @@ http_interactions:
87
87
  Content-Type:
88
88
  - text/json; charset=UTF-8
89
89
  Date:
90
- - Sun, 19 Jan 2014 01:54:50 GMT
90
+ - Tue, 22 Apr 2014 09:01:09 GMT
91
91
  Server:
92
- - dogdispatcher/4.10.0
92
+ - dogdispatcher/4.12.1
93
93
  Content-Length:
94
94
  - '15'
95
95
  Connection:
@@ -98,14 +98,14 @@ http_interactions:
98
98
  encoding: US-ASCII
99
99
  string: ! '{"status":"ok"}'
100
100
  http_version:
101
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
101
+ recorded_at: Tue, 22 Apr 2014 09:01:07 GMT
102
102
  - request:
103
103
  method: post
104
104
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
105
  body:
106
106
  encoding: UTF-8
107
107
  string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
108
- Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1390096500,"msg_title":"Chef
108
+ Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n","date_happened":1398157267,"msg_title":"Chef
109
109
  failed in 2 seconds on chef.handler.datadog.test-failed ","priority":"normal","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-failed","alert_type":"error","event_type":"config_management.run","source_type_name":"chef","title":"Chef
110
110
  failed in 2 seconds on chef.handler.datadog.test-failed ","text":"Chef updated
111
111
  0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
@@ -125,9 +125,9 @@ http_interactions:
125
125
  Content-Type:
126
126
  - text/json; charset=UTF-8
127
127
  Date:
128
- - Sun, 19 Jan 2014 01:54:51 GMT
128
+ - Tue, 22 Apr 2014 09:01:10 GMT
129
129
  Server:
130
- - dogdispatcher/4.10.0
130
+ - dogdispatcher/4.12.1
131
131
  Content-Length:
132
132
  - '474'
133
133
  Connection:
@@ -135,51 +135,16 @@ http_interactions:
135
135
  body:
136
136
  encoding: US-ASCII
137
137
  string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
138
- 1390096500, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2111137909406420235",
138
+ 1398157267, "handle": null, "title": "Chef failed in 2 seconds on chef.handler.datadog.test-failed
139
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375345723389043",
140
140
  "text": "Chef updated 0 resources out of 0 resources total.\n@@@\nChef::Exceptions::UnsupportedAction:
141
141
  Something awry.\n@@@\n\n@@@\nfile.rb:2\nfile.rb:1\n@@@\n", "tags": [], "related_event_id":
142
- null, "id": 2111137909406420235}}'
142
+ null, "id": 2246375345723389043}}'
143
143
  http_version:
144
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
145
- - request:
146
- method: get
147
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
148
- body:
149
- encoding: US-ASCII
150
- string: ''
151
- headers:
152
- Accept:
153
- - ! '*/*'
154
- User-Agent:
155
- - Ruby
156
- response:
157
- status:
158
- code: 200
159
- message: OK
160
- headers:
161
- Cache-Control:
162
- - no-cache
163
- Content-Type:
164
- - application/json
165
- Date:
166
- - Sun, 19 Jan 2014 01:54:51 GMT
167
- Pragma:
168
- - no-cache
169
- Server:
170
- - gunicorn/0.17.4
171
- Content-Length:
172
- - '44'
173
- Connection:
174
- - keep-alive
175
- body:
176
- encoding: US-ASCII
177
- string: ! '{"tags": ["env:hostile", "role:highlander"]}'
178
- http_version:
179
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
144
+ recorded_at: Tue, 22 Apr 2014 09:01:07 GMT
180
145
  - request:
181
146
  method: put
182
- uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>
147
+ uri: https://app.datadoghq.com/api/v1/tags/hosts/chef.handler.datadog.test-failed?api_key=<API_KEY>&application_key=<APPLICATION_KEY>&source=chef
183
148
  body:
184
149
  encoding: UTF-8
185
150
  string: ! '{"tags":["env:hostile","role:highlander","tag:the_one_and_only"]}'
@@ -200,19 +165,19 @@ http_interactions:
200
165
  Content-Type:
201
166
  - application/json
202
167
  Date:
203
- - Sun, 19 Jan 2014 01:54:51 GMT
168
+ - Tue, 22 Apr 2014 09:01:11 GMT
204
169
  Pragma:
205
170
  - no-cache
206
171
  Server:
207
172
  - gunicorn/0.17.4
208
173
  Content-Length:
209
- - '88'
174
+ - '112'
210
175
  Connection:
211
176
  - keep-alive
212
177
  body:
213
178
  encoding: US-ASCII
214
179
  string: ! '{"host": "chef.handler.datadog.test-failed", "tags": ["env:hostile",
215
- "role:highlander"]}'
180
+ "role:highlander", "tag:the_one_and_only"]}'
216
181
  http_version:
217
- recorded_at: Sun, 19 Jan 2014 01:55:00 GMT
218
- recorded_with: VCR 2.8.0
182
+ recorded_at: Tue, 22 Apr 2014 09:01:07 GMT
183
+ recorded_with: VCR 2.9.0
@@ -5,7 +5,7 @@ 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":[[1390109607,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
8
+ string: ! '{"series":[{"metric":"chef.resources.total","points":[[1398157259,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
9
9
  headers:
10
10
  Accept:
11
11
  - ! '*/*'
@@ -21,9 +21,9 @@ http_interactions:
21
21
  Content-Type:
22
22
  - text/json; charset=UTF-8
23
23
  Date:
24
- - Sun, 19 Jan 2014 05:33:13 GMT
24
+ - Tue, 22 Apr 2014 09:00:55 GMT
25
25
  Server:
26
- - dogdispatcher/4.10.0
26
+ - dogdispatcher/4.12.1
27
27
  Content-Length:
28
28
  - '15'
29
29
  Connection:
@@ -32,13 +32,13 @@ http_interactions:
32
32
  encoding: US-ASCII
33
33
  string: ! '{"status":"ok"}'
34
34
  http_version:
35
- recorded_at: Sun, 19 Jan 2014 05:33:27 GMT
35
+ recorded_at: Tue, 22 Apr 2014 09:00:59 GMT
36
36
  - request:
37
37
  method: post
38
38
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
39
39
  body:
40
40
  encoding: UTF-8
41
- string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1390109607,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
41
+ string: ! '{"series":[{"metric":"chef.resources.updated","points":[[1398157259,0.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
42
42
  headers:
43
43
  Accept:
44
44
  - ! '*/*'
@@ -54,9 +54,9 @@ http_interactions:
54
54
  Content-Type:
55
55
  - text/json; charset=UTF-8
56
56
  Date:
57
- - Sun, 19 Jan 2014 05:33:14 GMT
57
+ - Tue, 22 Apr 2014 09:00:56 GMT
58
58
  Server:
59
- - dogdispatcher/4.10.0
59
+ - dogdispatcher/4.12.1
60
60
  Content-Length:
61
61
  - '15'
62
62
  Connection:
@@ -65,13 +65,13 @@ http_interactions:
65
65
  encoding: US-ASCII
66
66
  string: ! '{"status":"ok"}'
67
67
  http_version:
68
- recorded_at: Sun, 19 Jan 2014 05:33:27 GMT
68
+ recorded_at: Tue, 22 Apr 2014 09:00:59 GMT
69
69
  - request:
70
70
  method: post
71
71
  uri: https://app.datadoghq.com/api/v1/series?api_key=<API_KEY>
72
72
  body:
73
73
  encoding: UTF-8
74
- string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1390109607,5.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
74
+ string: ! '{"series":[{"metric":"chef.resources.elapsed_time","points":[[1398157259,5.0]],"type":"gauge","host":"chef.handler.datadog.test-noapp","device":null}]}'
75
75
  headers:
76
76
  Accept:
77
77
  - ! '*/*'
@@ -87,9 +87,9 @@ http_interactions:
87
87
  Content-Type:
88
88
  - text/json; charset=UTF-8
89
89
  Date:
90
- - Sun, 19 Jan 2014 05:33:14 GMT
90
+ - Tue, 22 Apr 2014 09:00:58 GMT
91
91
  Server:
92
- - dogdispatcher/4.10.0
92
+ - dogdispatcher/4.12.1
93
93
  Content-Length:
94
94
  - '15'
95
95
  Connection:
@@ -98,13 +98,13 @@ http_interactions:
98
98
  encoding: US-ASCII
99
99
  string: ! '{"status":"ok"}'
100
100
  http_version:
101
- recorded_at: Sun, 19 Jan 2014 05:33:27 GMT
101
+ recorded_at: Tue, 22 Apr 2014 09:00:59 GMT
102
102
  - request:
103
103
  method: post
104
104
  uri: https://app.datadoghq.com/api/v1/events?api_key=<API_KEY>
105
105
  body:
106
106
  encoding: UTF-8
107
- string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1390109607,"msg_title":"Chef
107
+ string: ! '{"msg_text":"Chef updated 0 resources out of 0 resources total.","date_happened":1398157259,"msg_title":"Chef
108
108
  completed in 5 seconds on chef.handler.datadog.test-noapp ","priority":"low","parent":null,"tags":[],"aggregation_key":"chef.handler.datadog.test-noapp","alert_type":"success","event_type":"config_management.run","source_type_name":"chef","title":"Chef
109
109
  completed in 5 seconds on chef.handler.datadog.test-noapp ","text":"Chef updated
110
110
  0 resources out of 0 resources total.","host":"chef.handler.datadog.test-noapp","device":null}'
@@ -123,20 +123,20 @@ http_interactions:
123
123
  Content-Type:
124
124
  - text/json; charset=UTF-8
125
125
  Date:
126
- - Sun, 19 Jan 2014 05:33:15 GMT
126
+ - Tue, 22 Apr 2014 09:00:59 GMT
127
127
  Server:
128
- - dogdispatcher/4.10.0
128
+ - dogdispatcher/4.12.1
129
129
  Content-Length:
130
130
  - '373'
131
131
  Connection:
132
132
  - keep-alive
133
133
  body:
134
134
  encoding: US-ASCII
135
- string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1390109607,
135
+ string: ! '{"status": "ok", "event": {"priority": "low", "date_happened": 1398157259,
136
136
  "handle": null, "title": "Chef completed in 5 seconds on chef.handler.datadog.test-noapp
137
- ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2111357760360136849",
137
+ ", "url": "https://app.datadoghq.com/event/jump_to?event_id=2246375157717751205",
138
138
  "text": "Chef updated 0 resources out of 0 resources total.", "tags": [],
139
- "related_event_id": null, "id": 2111357760360136849}}'
139
+ "related_event_id": null, "id": 2246375157717751205}}'
140
140
  http_version:
141
- recorded_at: Sun, 19 Jan 2014 05:33:27 GMT
142
- recorded_with: VCR 2.8.0
141
+ recorded_at: Tue, 22 Apr 2014 09:00:59 GMT
142
+ recorded_with: VCR 2.9.0