dogapi 1.21.0 → 1.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +5 -2
- data/CHANGELOG.md +8 -3
- data/Gemfile +1 -0
- data/README.rdoc +22 -0
- data/Rakefile +2 -7
- data/lib/dogapi/facade.rb +10 -0
- data/lib/dogapi/v1/metric.rb +28 -3
- data/lib/dogapi/version.rb +1 -1
- data/spec/spec_helper.rb +3 -1
- data/spec/support/cassettes/Alerts/create/returns_HTTP_code_200.yml +39 -23
- data/spec/support/cassettes/Alerts/create/returns_a_valid_event_ID.yml +39 -153
- data/spec/support/cassettes/Alerts/create/returns_the_same_query_as_sent.yml +39 -153
- data/spec/support/cassettes/Facade/Events/emits_aggregate_events.yml +68 -264
- data/spec/support/cassettes/Facade/Events/emits_events_and_retrieves_them.yml +36 -153
- data/spec/support/cassettes/Facade/Events/emits_events_with_specified_priority.yml +34 -149
- data/spec/support/cassettes/Facade/Tags/adds_updates_and_detaches_tags.yml +132 -66
- data/tests/test_alerts.rb +1 -1
- data/tests/test_base.rb +1 -1
- data/tests/test_client.rb +1 -1
- data/tests/test_comments.rb +1 -1
- data/tests/test_dashes.rb +1 -1
- data/tests/test_embed.rb +2 -2
- data/tests/test_monitors.rb +1 -1
- data/tests/test_screenboard.rb +2 -2
- data/tests/test_search.rb +1 -1
- data/tests/test_snapshot.rb +1 -1
- data/tests/test_users.rb +1 -1
- metadata +21 -32
- data/spec/support/cassettes/Alerts/create/returns_HTTP_code_201.yml +0 -191
- data/spec/support/cassettes/Facade/Client/emit_point_can_pass_nil_host.yml +0 -32
- data/spec/support/cassettes/Facade/Client/emit_point_passes_data.yml +0 -32
- data/spec/support/cassettes/Facade/Client/emit_point_uses_localhost_default.yml +0 -32
- data/spec/support/cassettes/Facade/Client/emits_point_with_localhost.yml +0 -32
@@ -1,138 +1,8 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: delete
|
5
|
-
uri: https://app.datadoghq.com/api/v1/alert/37496?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
6
|
-
body:
|
7
|
-
encoding: US-ASCII
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- '*/*'
|
12
|
-
User-Agent:
|
13
|
-
- Ruby
|
14
|
-
response:
|
15
|
-
status:
|
16
|
-
code: 200
|
17
|
-
message: OK
|
18
|
-
headers:
|
19
|
-
Cache-Control:
|
20
|
-
- no-cache
|
21
|
-
Content-Type:
|
22
|
-
- application/json
|
23
|
-
Date:
|
24
|
-
- Tue, 27 Aug 2013 16:13:41 GMT
|
25
|
-
Pragma:
|
26
|
-
- no-cache
|
27
|
-
Server:
|
28
|
-
- gunicorn/0.17.4
|
29
|
-
Set-Cookie:
|
30
|
-
- user={"org":{"id":1499},"_type":"User","id":3658}; Path=/
|
31
|
-
X-Dd-Version:
|
32
|
-
- 31.153-293-3859d5c
|
33
|
-
Content-Length:
|
34
|
-
- '315'
|
35
|
-
Connection:
|
36
|
-
- keep-alive
|
37
|
-
body:
|
38
|
-
encoding: US-ASCII
|
39
|
-
string: '{"notify_no_data": false, "event_object": "6bc5a22ffc9d267c3cd6eb3ad79623e0",
|
40
|
-
"state": "OK", "name": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
41
|
-
> 5", "silenced": false, "query": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
42
|
-
> 5", "message": null, "creator": 3658, "timeout_h": null}'
|
43
|
-
http_version:
|
44
|
-
recorded_at: Tue, 27 Aug 2013 16:13:41 GMT
|
45
|
-
- request:
|
46
|
-
method: delete
|
47
|
-
uri: https://app.datadoghq.com/api/v1/alert/54315?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
48
|
-
body:
|
49
|
-
encoding: US-ASCII
|
50
|
-
string: ''
|
51
|
-
headers:
|
52
|
-
Accept:
|
53
|
-
- '*/*'
|
54
|
-
User-Agent:
|
55
|
-
- Ruby
|
56
|
-
response:
|
57
|
-
status:
|
58
|
-
code: 200
|
59
|
-
message: OK
|
60
|
-
headers:
|
61
|
-
Cache-Control:
|
62
|
-
- no-cache
|
63
|
-
Content-Type:
|
64
|
-
- application/json
|
65
|
-
Date:
|
66
|
-
- Thu, 08 May 2014 18:13:03 GMT
|
67
|
-
Pragma:
|
68
|
-
- no-cache
|
69
|
-
Server:
|
70
|
-
- gunicorn/0.17.4
|
71
|
-
Set-Cookie:
|
72
|
-
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
73
|
-
Path=/
|
74
|
-
X-Dd-Version:
|
75
|
-
- 31.1102.1335-0
|
76
|
-
Content-Length:
|
77
|
-
- '344'
|
78
|
-
Connection:
|
79
|
-
- keep-alive
|
80
|
-
body:
|
81
|
-
encoding: US-ASCII
|
82
|
-
string: '{"event_object": "6bc5a22ffc9d267c3cd6eb3ad79623e0", "timeout_h": null,
|
83
|
-
"silenced": false, "query": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
84
|
-
> 5", "message": null, "name": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
85
|
-
> 5", "silenced_timeout_ts": null, "creator": 3658, "notify_no_data": false,
|
86
|
-
"state": "OK"}'
|
87
|
-
http_version:
|
88
|
-
recorded_at: Thu, 08 May 2014 18:08:40 GMT
|
89
|
-
- request:
|
90
|
-
method: delete
|
91
|
-
uri: https://app.datadoghq.com/api/v1/alert/57369?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
92
|
-
body:
|
93
|
-
encoding: US-ASCII
|
94
|
-
string: ''
|
95
|
-
headers:
|
96
|
-
Accept:
|
97
|
-
- '*/*'
|
98
|
-
User-Agent:
|
99
|
-
- Ruby
|
100
|
-
response:
|
101
|
-
status:
|
102
|
-
code: 200
|
103
|
-
message: OK
|
104
|
-
headers:
|
105
|
-
Cache-Control:
|
106
|
-
- no-cache
|
107
|
-
Content-Type:
|
108
|
-
- application/json
|
109
|
-
Date:
|
110
|
-
- Tue, 13 May 2014 19:48:02 GMT
|
111
|
-
Pragma:
|
112
|
-
- no-cache
|
113
|
-
Server:
|
114
|
-
- gunicorn/0.17.4
|
115
|
-
Set-Cookie:
|
116
|
-
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
117
|
-
Path=/
|
118
|
-
X-Dd-Version:
|
119
|
-
- 31.1129.1362-0
|
120
|
-
Content-Length:
|
121
|
-
- '366'
|
122
|
-
Connection:
|
123
|
-
- keep-alive
|
124
|
-
body:
|
125
|
-
encoding: US-ASCII
|
126
|
-
string: '{"event_object": "6bc5a22ffc9d267c3cd6eb3ad79623e0", "notify_audit":
|
127
|
-
true, "timeout_h": null, "silenced": false, "query": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
128
|
-
> 5", "message": null, "name": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
129
|
-
> 5", "silenced_timeout_ts": null, "creator": 3658, "notify_no_data": false,
|
130
|
-
"state": "OK"}'
|
131
|
-
http_version:
|
132
|
-
recorded_at: Tue, 13 May 2014 19:48:02 GMT
|
133
3
|
- request:
|
134
4
|
method: post
|
135
|
-
uri: https://app.datadoghq.com/api/v1/alert?api_key
|
5
|
+
uri: https://app.datadoghq.com/api/v1/alert?api_key=<DATADOG_API_KEY>&application_key=<DATADOG_APP_KEY>
|
136
6
|
body:
|
137
7
|
encoding: UTF-8
|
138
8
|
string: '{"query":"avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
@@ -141,7 +11,7 @@ http_interactions:
|
|
141
11
|
Accept-Encoding:
|
142
12
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
143
13
|
Accept:
|
144
|
-
-
|
14
|
+
- "*/*"
|
145
15
|
User-Agent:
|
146
16
|
- Ruby
|
147
17
|
Content-Type:
|
@@ -156,32 +26,40 @@ http_interactions:
|
|
156
26
|
Content-Type:
|
157
27
|
- application/json; charset=utf-8
|
158
28
|
Date:
|
159
|
-
- Mon,
|
29
|
+
- Mon, 11 Apr 2016 17:56:52 GMT
|
30
|
+
Dd-Pool:
|
31
|
+
- dogweb_sameorig
|
160
32
|
Pragma:
|
161
33
|
- no-cache
|
162
|
-
|
163
|
-
-
|
34
|
+
Set-Cookie:
|
35
|
+
- DD-PSHARD=0; expires="Mon, 18-Apr-2016 17:56:52 GMT"; Max-Age=604800; Path=/
|
164
36
|
Strict-Transport-Security:
|
165
37
|
- max-age=15724800;
|
166
38
|
Vary:
|
167
39
|
- Accept-Encoding
|
40
|
+
X-Content-Type-Options:
|
41
|
+
- nosniff
|
42
|
+
X-Dd-Debug:
|
43
|
+
- shLvnveJ2e0AhnkU64mVlENQB1xkt+HLpGk7+KtFz6g=
|
168
44
|
X-Dd-Version:
|
169
|
-
-
|
45
|
+
- '33.3404'
|
46
|
+
X-Frame-Options:
|
47
|
+
- SAMEORIGIN
|
170
48
|
Content-Length:
|
171
|
-
- '
|
49
|
+
- '297'
|
172
50
|
Connection:
|
173
51
|
- keep-alive
|
174
52
|
body:
|
175
53
|
encoding: UTF-8
|
176
|
-
string: '{"event_object":"
|
177
|
-
> 5","message":"","id":
|
178
|
-
was **> 5** on average during the **last 10m**.","no_data_timeframe":false,"creator":
|
179
|
-
Data","escalation_message":""}'
|
54
|
+
string: '{"event_object":"8ee60aa761d2c9f71a2c1ba4979a0363","notify_audit":true,"timeout_h":null,"silenced":false,"query":"avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
55
|
+
> 5","message":"","id":552993,"name":"**test.metric.metric** over **host:test.metric.host**
|
56
|
+
was **> 5.0** on average during the **last 10m**.","no_data_timeframe":false,"creator":2575,"notify_no_data":false,"renotify_interval":null,"state":"No
|
57
|
+
Data","escalation_message":"","silenced_timeout_ts":null}'
|
180
58
|
http_version:
|
181
|
-
recorded_at: Mon,
|
59
|
+
recorded_at: Mon, 11 Apr 2016 17:56:52 GMT
|
182
60
|
- request:
|
183
61
|
method: delete
|
184
|
-
uri: https://app.datadoghq.com/api/v1/alert/
|
62
|
+
uri: https://app.datadoghq.com/api/v1/alert/552993?api_key=<DATADOG_API_KEY>&application_key=<DATADOG_APP_KEY>
|
185
63
|
body:
|
186
64
|
encoding: US-ASCII
|
187
65
|
string: ''
|
@@ -189,7 +67,7 @@ http_interactions:
|
|
189
67
|
Accept-Encoding:
|
190
68
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
191
69
|
Accept:
|
192
|
-
-
|
70
|
+
- "*/*"
|
193
71
|
User-Agent:
|
194
72
|
- Ruby
|
195
73
|
response:
|
@@ -202,27 +80,35 @@ http_interactions:
|
|
202
80
|
Content-Type:
|
203
81
|
- application/json; charset=utf-8
|
204
82
|
Date:
|
205
|
-
- Mon,
|
83
|
+
- Mon, 11 Apr 2016 17:56:52 GMT
|
84
|
+
Dd-Pool:
|
85
|
+
- dogweb_sameorig
|
206
86
|
Pragma:
|
207
87
|
- no-cache
|
208
|
-
|
209
|
-
-
|
88
|
+
Set-Cookie:
|
89
|
+
- DD-PSHARD=0; expires="Mon, 18-Apr-2016 17:56:52 GMT"; Max-Age=604800; Path=/
|
210
90
|
Strict-Transport-Security:
|
211
91
|
- max-age=15724800;
|
212
92
|
Vary:
|
213
93
|
- Accept-Encoding
|
94
|
+
X-Content-Type-Options:
|
95
|
+
- nosniff
|
96
|
+
X-Dd-Debug:
|
97
|
+
- 9PJnOICwaMTA2SdUy+bwstzTca5UfvMAFI9em8DSBRc=
|
214
98
|
X-Dd-Version:
|
215
|
-
-
|
99
|
+
- '33.3404'
|
100
|
+
X-Frame-Options:
|
101
|
+
- SAMEORIGIN
|
216
102
|
Content-Length:
|
217
|
-
- '
|
103
|
+
- '288'
|
218
104
|
Connection:
|
219
105
|
- keep-alive
|
220
106
|
body:
|
221
107
|
encoding: UTF-8
|
222
|
-
string: '{"event_object":"
|
108
|
+
string: '{"event_object":"8ee60aa761d2c9f71a2c1ba4979a0363","notify_audit":true,"timeout_h":null,"silenced":false,"query":"avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
223
109
|
> 5","message":"","name":"**test.metric.metric** over **host:test.metric.host**
|
224
|
-
was **> 5** on average during the **last 10m**.","no_data_timeframe":false,"creator":
|
225
|
-
Data","escalation_message":""}'
|
110
|
+
was **> 5.0** on average during the **last 10m**.","no_data_timeframe":false,"creator":2575,"notify_no_data":false,"renotify_interval":null,"state":"No
|
111
|
+
Data","escalation_message":"","silenced_timeout_ts":null}'
|
226
112
|
http_version:
|
227
|
-
recorded_at: Mon,
|
113
|
+
recorded_at: Mon, 11 Apr 2016 17:56:52 GMT
|
228
114
|
recorded_with: VCR 2.9.3
|
@@ -1,227 +1,17 @@
|
|
1
1
|
---
|
2
2
|
http_interactions:
|
3
|
-
- request:
|
4
|
-
method: get
|
5
|
-
uri: https://app.datadoghq.com/api/v1/events/1905053479102714219?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
6
|
-
body:
|
7
|
-
encoding: UTF-8
|
8
|
-
string: ''
|
9
|
-
headers:
|
10
|
-
Accept:
|
11
|
-
- '*/*'
|
12
|
-
response:
|
13
|
-
status:
|
14
|
-
code: 200
|
15
|
-
message: OK
|
16
|
-
headers:
|
17
|
-
Pragma:
|
18
|
-
- no-cache
|
19
|
-
Date:
|
20
|
-
- Thu, 29 Aug 2013 21:49:38 GMT
|
21
|
-
Set-Cookie:
|
22
|
-
- user={"org":{"id":1499},"_type":"User","id":3658}; Path=/
|
23
|
-
Content-Length:
|
24
|
-
- '362'
|
25
|
-
Server:
|
26
|
-
- gunicorn/0.17.4
|
27
|
-
Content-Type:
|
28
|
-
- application/json
|
29
|
-
Connection:
|
30
|
-
- keep-alive
|
31
|
-
Cache-Control:
|
32
|
-
- no-cache
|
33
|
-
X-Dd-Version:
|
34
|
-
- 31.160-300-bedcb85
|
35
|
-
body:
|
36
|
-
encoding: UTF-8
|
37
|
-
string: '{"event": {"date_happened": 1377812901, "alert_type": "info", "resource":
|
38
|
-
"/api/v1/events/1905053479102714219", "title": "Testing Aggregation (first)",
|
39
|
-
"url": "/event/jump_to?event_id=1905053479102714219", "text": "Testing Aggregation
|
40
|
-
(first)", "tags": [], "id": 1905053479102714219, "priority": "normal", "host":
|
41
|
-
"dogbox", "device_name": null, "payload": "{}"}}'
|
42
|
-
http_version:
|
43
|
-
recorded_at: Thu, 29 Aug 2013 21:49:38 GMT
|
44
|
-
- request:
|
45
|
-
method: get
|
46
|
-
uri: https://app.datadoghq.com/api/v1/events/1905053488548344157?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
47
|
-
body:
|
48
|
-
encoding: UTF-8
|
49
|
-
string: ''
|
50
|
-
headers:
|
51
|
-
Accept:
|
52
|
-
- '*/*'
|
53
|
-
response:
|
54
|
-
status:
|
55
|
-
code: 200
|
56
|
-
message: OK
|
57
|
-
headers:
|
58
|
-
Pragma:
|
59
|
-
- no-cache
|
60
|
-
Date:
|
61
|
-
- Thu, 29 Aug 2013 21:49:39 GMT
|
62
|
-
Set-Cookie:
|
63
|
-
- user={"org":{"id":1499},"_type":"User","id":3658}; Path=/
|
64
|
-
Content-Length:
|
65
|
-
- '364'
|
66
|
-
Server:
|
67
|
-
- gunicorn/0.17.4
|
68
|
-
Content-Type:
|
69
|
-
- application/json
|
70
|
-
Connection:
|
71
|
-
- keep-alive
|
72
|
-
Cache-Control:
|
73
|
-
- no-cache
|
74
|
-
X-Dd-Version:
|
75
|
-
- 31.160-300-bedcb85
|
76
|
-
body:
|
77
|
-
encoding: UTF-8
|
78
|
-
string: '{"event": {"date_happened": 1377812901, "alert_type": "info", "resource":
|
79
|
-
"/api/v1/events/1905053488548344157", "title": "Testing Aggregation (second)",
|
80
|
-
"url": "/event/jump_to?event_id=1905053488548344157", "text": "Testing Aggregation
|
81
|
-
(second)", "tags": [], "id": 1905053488548344157, "priority": "normal", "host":
|
82
|
-
"dogbox", "device_name": null, "payload": "{}"}}'
|
83
|
-
http_version:
|
84
|
-
recorded_at: Thu, 29 Aug 2013 21:49:38 GMT
|
85
|
-
- request:
|
86
|
-
method: get
|
87
|
-
uri: https://app.datadoghq.com/api/v1/events/2270123746361192606?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
88
|
-
body:
|
89
|
-
encoding: US-ASCII
|
90
|
-
string: ''
|
91
|
-
headers:
|
92
|
-
Accept:
|
93
|
-
- '*/*'
|
94
|
-
User-Agent:
|
95
|
-
- Ruby
|
96
|
-
response:
|
97
|
-
status:
|
98
|
-
code: 404
|
99
|
-
message: Not Found
|
100
|
-
headers:
|
101
|
-
Cache-Control:
|
102
|
-
- no-cache
|
103
|
-
Content-Type:
|
104
|
-
- application/json
|
105
|
-
Date:
|
106
|
-
- Thu, 08 May 2014 18:13:06 GMT
|
107
|
-
Pragma:
|
108
|
-
- no-cache
|
109
|
-
Server:
|
110
|
-
- gunicorn/0.17.4
|
111
|
-
Set-Cookie:
|
112
|
-
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
113
|
-
Path=/
|
114
|
-
X-Dd-Version:
|
115
|
-
- 31.1102.1335-0
|
116
|
-
Content-Length:
|
117
|
-
- '49'
|
118
|
-
Connection:
|
119
|
-
- keep-alive
|
120
|
-
body:
|
121
|
-
encoding: US-ASCII
|
122
|
-
string: '{"errors": ["No event matches that comment_id."]}'
|
123
|
-
http_version:
|
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
|
213
3
|
- request:
|
214
4
|
method: post
|
215
|
-
uri: https://app.datadoghq.com/api/v1/events?api_key
|
5
|
+
uri: https://app.datadoghq.com/api/v1/events?api_key=<DATADOG_API_KEY>
|
216
6
|
body:
|
217
7
|
encoding: UTF-8
|
218
|
-
string: '{"msg_text":"Testing Aggregation (first)","date_happened":
|
219
|
-
Aggregation (first)","host":"
|
8
|
+
string: '{"msg_text":"Testing Aggregation (first)","date_happened":1460397384,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1460397384","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
9
|
+
Aggregation (first)","host":"dogbox-yannmahe","device":null}'
|
220
10
|
headers:
|
221
11
|
Accept-Encoding:
|
222
12
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
223
13
|
Accept:
|
224
|
-
-
|
14
|
+
- "*/*"
|
225
15
|
User-Agent:
|
226
16
|
- Ruby
|
227
17
|
Content-Type:
|
@@ -232,37 +22,37 @@ http_interactions:
|
|
232
22
|
message: Accepted
|
233
23
|
headers:
|
234
24
|
Content-Type:
|
235
|
-
- text/
|
25
|
+
- text/plain; charset=utf-8
|
236
26
|
Date:
|
237
|
-
- Mon,
|
238
|
-
|
239
|
-
-
|
27
|
+
- Mon, 11 Apr 2016 17:56:24 GMT
|
28
|
+
Dd-Pool:
|
29
|
+
- propjoe
|
240
30
|
Strict-Transport-Security:
|
241
31
|
- max-age=15724800;
|
32
|
+
X-Content-Type-Options:
|
33
|
+
- nosniff
|
242
34
|
Content-Length:
|
243
|
-
- '
|
35
|
+
- '260'
|
244
36
|
Connection:
|
245
37
|
- keep-alive
|
246
38
|
body:
|
247
39
|
encoding: UTF-8
|
248
|
-
string: '{"status":
|
249
|
-
"handle":
|
250
|
-
"text": "Testing Aggregation (first)", "tags": [], "related_event_id": null,
|
251
|
-
"id": 2549900876180481330}}'
|
40
|
+
string: '{"status":"ok","event":{"id":491273719585992541,"title":"","text":"Testing
|
41
|
+
Aggregation (first)","date_happened":1460397384,"handle":null,"priority":"normal","related_event_id":null,"tags":[],"url":"https://app.datadoghq.com/event/event?id=491273719585992541"}}'
|
252
42
|
http_version:
|
253
|
-
recorded_at: Mon,
|
43
|
+
recorded_at: Mon, 11 Apr 2016 17:56:24 GMT
|
254
44
|
- request:
|
255
45
|
method: post
|
256
|
-
uri: https://app.datadoghq.com/api/v1/events?api_key
|
46
|
+
uri: https://app.datadoghq.com/api/v1/events?api_key=<DATADOG_API_KEY>
|
257
47
|
body:
|
258
48
|
encoding: UTF-8
|
259
|
-
string: '{"msg_text":"Testing Aggregation (second)","date_happened":
|
260
|
-
Aggregation (second)","host":"
|
49
|
+
string: '{"msg_text":"Testing Aggregation (second)","date_happened":1460397384,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1460397384","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
50
|
+
Aggregation (second)","host":"dogbox-yannmahe","device":null}'
|
261
51
|
headers:
|
262
52
|
Accept-Encoding:
|
263
53
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
264
54
|
Accept:
|
265
|
-
-
|
55
|
+
- "*/*"
|
266
56
|
User-Agent:
|
267
57
|
- Ruby
|
268
58
|
Content-Type:
|
@@ -273,28 +63,28 @@ http_interactions:
|
|
273
63
|
message: Accepted
|
274
64
|
headers:
|
275
65
|
Content-Type:
|
276
|
-
- text/
|
66
|
+
- text/plain; charset=utf-8
|
277
67
|
Date:
|
278
|
-
- Mon,
|
279
|
-
|
280
|
-
-
|
68
|
+
- Mon, 11 Apr 2016 17:56:24 GMT
|
69
|
+
Dd-Pool:
|
70
|
+
- propjoe
|
281
71
|
Strict-Transport-Security:
|
282
72
|
- max-age=15724800;
|
73
|
+
X-Content-Type-Options:
|
74
|
+
- nosniff
|
283
75
|
Content-Length:
|
284
|
-
- '
|
76
|
+
- '261'
|
285
77
|
Connection:
|
286
78
|
- keep-alive
|
287
79
|
body:
|
288
80
|
encoding: UTF-8
|
289
|
-
string: '{"status":
|
290
|
-
"handle":
|
291
|
-
"text": "Testing Aggregation (second)", "tags": [], "related_event_id": null,
|
292
|
-
"id": 2549900881932518535}}'
|
81
|
+
string: '{"status":"ok","event":{"id":491273721766316527,"title":"","text":"Testing
|
82
|
+
Aggregation (second)","date_happened":1460397384,"handle":null,"priority":"normal","related_event_id":null,"tags":[],"url":"https://app.datadoghq.com/event/event?id=491273721766316527"}}'
|
293
83
|
http_version:
|
294
|
-
recorded_at: Mon,
|
84
|
+
recorded_at: Mon, 11 Apr 2016 17:56:24 GMT
|
295
85
|
- request:
|
296
86
|
method: get
|
297
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
87
|
+
uri: https://app.datadoghq.com/api/v1/events/491273719585992541?api_key=<DATADOG_API_KEY>&application_key=<DATADOG_APP_KEY>
|
298
88
|
body:
|
299
89
|
encoding: US-ASCII
|
300
90
|
string: ''
|
@@ -302,7 +92,7 @@ http_interactions:
|
|
302
92
|
Accept-Encoding:
|
303
93
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
304
94
|
Accept:
|
305
|
-
-
|
95
|
+
- "*/*"
|
306
96
|
User-Agent:
|
307
97
|
- Ruby
|
308
98
|
response:
|
@@ -315,33 +105,40 @@ http_interactions:
|
|
315
105
|
Content-Type:
|
316
106
|
- application/json
|
317
107
|
Date:
|
318
|
-
- Mon,
|
108
|
+
- Mon, 11 Apr 2016 17:56:33 GMT
|
109
|
+
Dd-Pool:
|
110
|
+
- dogweb_sameorig
|
319
111
|
Pragma:
|
320
112
|
- no-cache
|
321
|
-
|
322
|
-
-
|
113
|
+
Set-Cookie:
|
114
|
+
- DD-PSHARD=0; expires="Mon, 18-Apr-2016 17:56:33 GMT"; Max-Age=604800; Path=/
|
323
115
|
Strict-Transport-Security:
|
324
116
|
- max-age=15724800;
|
325
117
|
Vary:
|
326
118
|
- Accept-Encoding
|
119
|
+
X-Content-Type-Options:
|
120
|
+
- nosniff
|
121
|
+
X-Dd-Debug:
|
122
|
+
- Bj/SqNU1vbZGxNGffIRtmaWe7MKGSPoKHC3+ZhLAjqk=
|
327
123
|
X-Dd-Version:
|
328
|
-
-
|
124
|
+
- '33.3404'
|
125
|
+
X-Frame-Options:
|
126
|
+
- SAMEORIGIN
|
329
127
|
Content-Length:
|
330
|
-
- '
|
128
|
+
- '230'
|
331
129
|
Connection:
|
332
130
|
- keep-alive
|
333
131
|
body:
|
334
132
|
encoding: UTF-8
|
335
|
-
string: '{"event": {"date_happened":
|
336
|
-
"/api/v1/events/
|
337
|
-
"
|
338
|
-
|
339
|
-
"Conors-MacBook-Pro-Retina.local", "device_name": null, "payload": "{}"}}'
|
133
|
+
string: '{"event": {"date_happened": 1460397384, "alert_type": "info", "resource":
|
134
|
+
"/api/v1/events/491273719585992541", "title": "", "url": "/event/event?event_id=491273719585992541",
|
135
|
+
"text": "Testing Aggregation (first)", "tags": [], "device_name": null, "priority":
|
136
|
+
"normal", "host": "dogbox-yannmahe", "id": 491273719585992541}}'
|
340
137
|
http_version:
|
341
|
-
recorded_at: Mon,
|
138
|
+
recorded_at: Mon, 11 Apr 2016 17:56:33 GMT
|
342
139
|
- request:
|
343
140
|
method: get
|
344
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
141
|
+
uri: https://app.datadoghq.com/api/v1/events/491273721766316527?api_key=<DATADOG_API_KEY>&application_key=<DATADOG_APP_KEY>
|
345
142
|
body:
|
346
143
|
encoding: US-ASCII
|
347
144
|
string: ''
|
@@ -349,7 +146,7 @@ http_interactions:
|
|
349
146
|
Accept-Encoding:
|
350
147
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
351
148
|
Accept:
|
352
|
-
-
|
149
|
+
- "*/*"
|
353
150
|
User-Agent:
|
354
151
|
- Ruby
|
355
152
|
response:
|
@@ -362,28 +159,35 @@ http_interactions:
|
|
362
159
|
Content-Type:
|
363
160
|
- application/json
|
364
161
|
Date:
|
365
|
-
- Mon,
|
162
|
+
- Mon, 11 Apr 2016 17:56:33 GMT
|
163
|
+
Dd-Pool:
|
164
|
+
- dogweb_sameorig
|
366
165
|
Pragma:
|
367
166
|
- no-cache
|
368
|
-
|
369
|
-
-
|
167
|
+
Set-Cookie:
|
168
|
+
- DD-PSHARD=0; expires="Mon, 18-Apr-2016 17:56:33 GMT"; Max-Age=604800; Path=/
|
370
169
|
Strict-Transport-Security:
|
371
170
|
- max-age=15724800;
|
372
171
|
Vary:
|
373
172
|
- Accept-Encoding
|
173
|
+
X-Content-Type-Options:
|
174
|
+
- nosniff
|
175
|
+
X-Dd-Debug:
|
176
|
+
- wZ/CfAcuKqv18nSeAYtvn7MAell4CbOc+cxqaasVWcY=
|
374
177
|
X-Dd-Version:
|
375
|
-
-
|
178
|
+
- '33.3404'
|
179
|
+
X-Frame-Options:
|
180
|
+
- SAMEORIGIN
|
376
181
|
Content-Length:
|
377
|
-
- '
|
182
|
+
- '229'
|
378
183
|
Connection:
|
379
184
|
- keep-alive
|
380
185
|
body:
|
381
186
|
encoding: UTF-8
|
382
|
-
string: '{"event": {"date_happened":
|
383
|
-
"/api/v1/events/
|
384
|
-
"
|
385
|
-
|
386
|
-
"Conors-MacBook-Pro-Retina.local", "device_name": null, "payload": "{}"}}'
|
187
|
+
string: '{"event": {"date_happened": 1460397384, "alert_type": "info", "resource":
|
188
|
+
"/api/v1/events/491273721766316527", "title": "", "url": "/event/event?event_id=491273721766316527",
|
189
|
+
"text": "Testing Aggregation (second)", "tags": [], "device_name": null, "priority":
|
190
|
+
"normal", "host": "dogbox-yannmahe", "id": 491273721766316527}}'
|
387
191
|
http_version:
|
388
|
-
recorded_at: Mon,
|
192
|
+
recorded_at: Mon, 11 Apr 2016 17:56:33 GMT
|
389
193
|
recorded_with: VCR 2.9.3
|