dogapi 1.9.2 → 1.10.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +0 -1
- data/CHANGELOG.md +5 -0
- data/lib/capistrano/datadog.rb +8 -3
- data/lib/capistrano/datadog/v2.rb +1 -1
- data/lib/capistrano/datadog/v3.rb +1 -1
- data/lib/dogapi/common.rb +3 -10
- data/lib/dogapi/facade.rb +12 -11
- data/lib/dogapi/version.rb +1 -1
- data/spec/facade_spec.rb +4 -4
- data/spec/support/cassettes/Alerts/create/returns_HTTP_code_201.yml +121 -20
- data/spec/support/cassettes/Alerts/create/returns_a_valid_event_ID.yml +110 -20
- data/spec/support/cassettes/Alerts/create/returns_the_same_query_as_sent.yml +110 -20
- data/spec/support/cassettes/Facade/Events/emits_aggregate_events.yml +257 -101
- data/spec/support/cassettes/Facade/Events/emits_events_and_retrieves_them.yml +151 -51
- data/spec/support/cassettes/Facade/Events/emits_events_with_specified_priority.yml +147 -52
- data/spec/support/cassettes/Facade/Tags/adds_updates_and_detaches_tags.yml +45 -37
- data/tests/test_client.rb +2 -4
- data/tests/test_dashes.rb +2 -1
- metadata +23 -33
- checksums.yaml +0 -7
@@ -1,5 +1,91 @@
|
|
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":
|
83
|
+
null, "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
|
3
89
|
- request:
|
4
90
|
method: post
|
5
91
|
uri: https://app.datadoghq.com/api/v1/alert?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
@@ -24,30 +110,32 @@ http_interactions:
|
|
24
110
|
Content-Type:
|
25
111
|
- application/json
|
26
112
|
Date:
|
27
|
-
- Tue,
|
113
|
+
- Tue, 13 May 2014 19:48:02 GMT
|
28
114
|
Pragma:
|
29
115
|
- no-cache
|
30
116
|
Server:
|
31
117
|
- gunicorn/0.17.4
|
32
118
|
Set-Cookie:
|
33
|
-
- user={"org":{"id":1499},"_type":"User","id":3658};
|
119
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
120
|
+
Path=/
|
34
121
|
X-Dd-Version:
|
35
|
-
- 31.
|
122
|
+
- 31.1129.1362-0
|
36
123
|
Content-Length:
|
37
|
-
- '
|
124
|
+
- '379'
|
38
125
|
Connection:
|
39
126
|
- keep-alive
|
40
127
|
body:
|
41
128
|
encoding: US-ASCII
|
42
|
-
string: ! '{"
|
43
|
-
"
|
44
|
-
> 5", "
|
45
|
-
> 5", "
|
129
|
+
string: ! '{"event_object": "6bc5a22ffc9d267c3cd6eb3ad79623e0", "notify_audit":
|
130
|
+
true, "timeout_h": null, "silenced": false, "query": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
131
|
+
> 5", "message": null, "id": 57369, "name": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
132
|
+
> 5", "silenced_timeout_ts": null, "creator": 3658, "notify_no_data": false,
|
133
|
+
"state": "OK"}'
|
46
134
|
http_version:
|
47
|
-
recorded_at: Tue,
|
135
|
+
recorded_at: Tue, 13 May 2014 19:48:02 GMT
|
48
136
|
- request:
|
49
137
|
method: delete
|
50
|
-
uri: https://app.datadoghq.com/api/v1/alert/
|
138
|
+
uri: https://app.datadoghq.com/api/v1/alert/57369?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
51
139
|
body:
|
52
140
|
encoding: US-ASCII
|
53
141
|
string: ''
|
@@ -66,25 +154,27 @@ http_interactions:
|
|
66
154
|
Content-Type:
|
67
155
|
- application/json
|
68
156
|
Date:
|
69
|
-
- Tue,
|
157
|
+
- Tue, 13 May 2014 19:48:02 GMT
|
70
158
|
Pragma:
|
71
159
|
- no-cache
|
72
160
|
Server:
|
73
161
|
- gunicorn/0.17.4
|
74
162
|
Set-Cookie:
|
75
|
-
- user={"org":{"id":1499},"_type":"User","id":3658};
|
163
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
164
|
+
Path=/
|
76
165
|
X-Dd-Version:
|
77
|
-
- 31.
|
166
|
+
- 31.1129.1362-0
|
78
167
|
Content-Length:
|
79
|
-
- '
|
168
|
+
- '366'
|
80
169
|
Connection:
|
81
170
|
- keep-alive
|
82
171
|
body:
|
83
172
|
encoding: US-ASCII
|
84
|
-
string: ! '{"
|
85
|
-
"
|
86
|
-
> 5", "
|
87
|
-
> 5", "
|
173
|
+
string: ! '{"event_object": "6bc5a22ffc9d267c3cd6eb3ad79623e0", "notify_audit":
|
174
|
+
true, "timeout_h": null, "silenced": false, "query": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
175
|
+
> 5", "message": null, "name": "avg(last_10m):avg:test.metric.metric{host:test.metric.host}
|
176
|
+
> 5", "silenced_timeout_ts": null, "creator": 3658, "notify_no_data": false,
|
177
|
+
"state": "OK"}'
|
88
178
|
http_version:
|
89
|
-
recorded_at: Tue,
|
90
|
-
recorded_with: VCR 2.
|
179
|
+
recorded_at: Tue, 13 May 2014 19:48:02 GMT
|
180
|
+
recorded_with: VCR 2.9.0
|
@@ -1,131 +1,287 @@
|
|
1
|
-
---
|
2
|
-
http_interactions:
|
3
|
-
- request:
|
1
|
+
---
|
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:
|
4
126
|
method: post
|
5
127
|
uri: https://app.datadoghq.com/api/v1/events?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
|
6
|
-
body:
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
128
|
+
body:
|
129
|
+
encoding: UTF-8
|
130
|
+
string: ! '{"msg_text":"Testing Aggregation (first)","date_happened":1400010460,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1400010460","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
131
|
+
Aggregation (first)","host":"dogbox-carlo","device":null}'
|
132
|
+
headers:
|
133
|
+
Accept:
|
134
|
+
- ! '*/*'
|
135
|
+
User-Agent:
|
136
|
+
- Ruby
|
137
|
+
Content-Type:
|
12
138
|
- application/json
|
13
|
-
response:
|
14
|
-
status:
|
139
|
+
response:
|
140
|
+
status:
|
15
141
|
code: 202
|
16
142
|
message: Accepted
|
17
|
-
headers:
|
18
|
-
|
19
|
-
- Thu, 29 Aug 2013 21:48:21 GMT
|
20
|
-
Server:
|
21
|
-
- dogdispatcher/4.7.0
|
22
|
-
Content-Length:
|
23
|
-
- "265"
|
24
|
-
Content-Type:
|
143
|
+
headers:
|
144
|
+
Content-Type:
|
25
145
|
- text/json; charset=UTF-8
|
26
|
-
|
146
|
+
Date:
|
147
|
+
- Tue, 13 May 2014 19:47:41 GMT
|
148
|
+
Server:
|
149
|
+
- dogdispatcher/4.12.1
|
150
|
+
Content-Length:
|
151
|
+
- '290'
|
152
|
+
Connection:
|
27
153
|
- keep-alive
|
28
|
-
body:
|
29
|
-
|
154
|
+
body:
|
155
|
+
encoding: US-ASCII
|
156
|
+
string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
|
157
|
+
1400010460, "handle": null, "title": "", "url": "https://app.datadoghq.com/event/jump_to?event_id=2277466729825682387",
|
158
|
+
"text": "Testing Aggregation (first)", "tags": [], "related_event_id": null,
|
159
|
+
"id": 2277466729825682387}}'
|
30
160
|
http_version:
|
31
|
-
recorded_at:
|
32
|
-
- request:
|
161
|
+
recorded_at: Tue, 13 May 2014 19:47:41 GMT
|
162
|
+
- request:
|
33
163
|
method: post
|
34
164
|
uri: https://app.datadoghq.com/api/v1/events?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
|
35
|
-
body:
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
165
|
+
body:
|
166
|
+
encoding: UTF-8
|
167
|
+
string: ! '{"msg_text":"Testing Aggregation (second)","date_happened":1400010461,"msg_title":"","priority":"normal","parent":null,"tags":[],"aggregation_key":"1400010460","alert_type":null,"event_type":null,"source_type_name":null,"title":"","text":"Testing
|
168
|
+
Aggregation (second)","host":"dogbox-carlo","device":null}'
|
169
|
+
headers:
|
170
|
+
Accept:
|
171
|
+
- ! '*/*'
|
172
|
+
User-Agent:
|
173
|
+
- Ruby
|
174
|
+
Content-Type:
|
41
175
|
- application/json
|
42
|
-
response:
|
43
|
-
status:
|
176
|
+
response:
|
177
|
+
status:
|
44
178
|
code: 202
|
45
179
|
message: Accepted
|
46
|
-
headers:
|
47
|
-
|
48
|
-
- Thu, 29 Aug 2013 21:48:22 GMT
|
49
|
-
Server:
|
50
|
-
- dogdispatcher/4.7.0
|
51
|
-
Content-Length:
|
52
|
-
- "265"
|
53
|
-
Content-Type:
|
180
|
+
headers:
|
181
|
+
Content-Type:
|
54
182
|
- text/json; charset=UTF-8
|
55
|
-
|
183
|
+
Date:
|
184
|
+
- Tue, 13 May 2014 19:47:41 GMT
|
185
|
+
Server:
|
186
|
+
- dogdispatcher/4.12.1
|
187
|
+
Content-Length:
|
188
|
+
- '291'
|
189
|
+
Connection:
|
56
190
|
- keep-alive
|
57
|
-
body:
|
58
|
-
|
191
|
+
body:
|
192
|
+
encoding: US-ASCII
|
193
|
+
string: ! '{"status": "ok", "event": {"priority": "normal", "date_happened":
|
194
|
+
1400010461, "handle": null, "title": "", "url": "https://app.datadoghq.com/event/jump_to?event_id=2277466738585989786",
|
195
|
+
"text": "Testing Aggregation (second)", "tags": [], "related_event_id": null,
|
196
|
+
"id": 2277466738585989786}}'
|
59
197
|
http_version:
|
60
|
-
recorded_at:
|
61
|
-
- request:
|
198
|
+
recorded_at: Tue, 13 May 2014 19:47:41 GMT
|
199
|
+
- request:
|
62
200
|
method: get
|
63
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
64
|
-
body:
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
201
|
+
uri: https://app.datadoghq.com/api/v1/events/2277466729825682387?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
202
|
+
body:
|
203
|
+
encoding: US-ASCII
|
204
|
+
string: ''
|
205
|
+
headers:
|
206
|
+
Accept:
|
207
|
+
- ! '*/*'
|
208
|
+
User-Agent:
|
209
|
+
- Ruby
|
210
|
+
response:
|
211
|
+
status:
|
71
212
|
code: 200
|
72
213
|
message: OK
|
73
|
-
headers:
|
74
|
-
|
214
|
+
headers:
|
215
|
+
Cache-Control:
|
75
216
|
- no-cache
|
76
|
-
|
77
|
-
- Thu, 29 Aug 2013 21:49:38 GMT
|
78
|
-
Set-Cookie:
|
79
|
-
- user={"org":{"id":1499},"_type":"User","id":3658}; Path=/
|
80
|
-
Content-Length:
|
81
|
-
- "362"
|
82
|
-
Server:
|
83
|
-
- gunicorn/0.17.4
|
84
|
-
Content-Type:
|
217
|
+
Content-Type:
|
85
218
|
- application/json
|
86
|
-
|
87
|
-
-
|
88
|
-
|
219
|
+
Date:
|
220
|
+
- Tue, 13 May 2014 19:47:47 GMT
|
221
|
+
Pragma:
|
89
222
|
- no-cache
|
90
|
-
|
91
|
-
-
|
92
|
-
|
93
|
-
|
223
|
+
Server:
|
224
|
+
- gunicorn/0.17.4
|
225
|
+
Set-Cookie:
|
226
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
227
|
+
Path=/
|
228
|
+
X-Dd-Version:
|
229
|
+
- 31.1129.1362-0
|
230
|
+
Content-Length:
|
231
|
+
- '368'
|
232
|
+
Connection:
|
233
|
+
- keep-alive
|
234
|
+
body:
|
235
|
+
encoding: US-ASCII
|
236
|
+
string: ! '{"event": {"date_happened": 1400010460, "alert_type": "info", "resource":
|
237
|
+
"/api/v1/events/2277466729825682387", "title": "Testing Aggregation (first)",
|
238
|
+
"url": "/event/jump_to?event_id=2277466729825682387", "text": "Testing Aggregation
|
239
|
+
(first)", "tags": [], "id": 2277466729825682387, "priority": "normal", "host":
|
240
|
+
"dogbox-carlo", "device_name": null, "payload": "{}"}}'
|
94
241
|
http_version:
|
95
|
-
recorded_at:
|
96
|
-
- request:
|
242
|
+
recorded_at: Tue, 13 May 2014 19:47:47 GMT
|
243
|
+
- request:
|
97
244
|
method: get
|
98
|
-
uri: https://app.datadoghq.com/api/v1/events/
|
99
|
-
body:
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
245
|
+
uri: https://app.datadoghq.com/api/v1/events/2277466738585989786?api_key=9775a026f1ca7d1c6c5af9d94d9595a4&application_key=87ce4a24b5553d2e482ea8a8500e71b8ad4554ff
|
246
|
+
body:
|
247
|
+
encoding: US-ASCII
|
248
|
+
string: ''
|
249
|
+
headers:
|
250
|
+
Accept:
|
251
|
+
- ! '*/*'
|
252
|
+
User-Agent:
|
253
|
+
- Ruby
|
254
|
+
response:
|
255
|
+
status:
|
106
256
|
code: 200
|
107
257
|
message: OK
|
108
|
-
headers:
|
109
|
-
|
258
|
+
headers:
|
259
|
+
Cache-Control:
|
110
260
|
- no-cache
|
111
|
-
|
112
|
-
- Thu, 29 Aug 2013 21:49:39 GMT
|
113
|
-
Set-Cookie:
|
114
|
-
- user={"org":{"id":1499},"_type":"User","id":3658}; Path=/
|
115
|
-
Content-Length:
|
116
|
-
- "364"
|
117
|
-
Server:
|
118
|
-
- gunicorn/0.17.4
|
119
|
-
Content-Type:
|
261
|
+
Content-Type:
|
120
262
|
- application/json
|
121
|
-
|
122
|
-
-
|
123
|
-
|
263
|
+
Date:
|
264
|
+
- Tue, 13 May 2014 19:47:47 GMT
|
265
|
+
Pragma:
|
124
266
|
- no-cache
|
125
|
-
|
126
|
-
-
|
127
|
-
|
128
|
-
|
267
|
+
Server:
|
268
|
+
- gunicorn/0.17.4
|
269
|
+
Set-Cookie:
|
270
|
+
- user={"org":{"id":1499,"time_zone":null},"_type":"User","id":3658,"time_zone":null};
|
271
|
+
Path=/
|
272
|
+
X-Dd-Version:
|
273
|
+
- 31.1129.1362-0
|
274
|
+
Content-Length:
|
275
|
+
- '370'
|
276
|
+
Connection:
|
277
|
+
- keep-alive
|
278
|
+
body:
|
279
|
+
encoding: US-ASCII
|
280
|
+
string: ! '{"event": {"date_happened": 1400010461, "alert_type": "info", "resource":
|
281
|
+
"/api/v1/events/2277466738585989786", "title": "Testing Aggregation (second)",
|
282
|
+
"url": "/event/jump_to?event_id=2277466738585989786", "text": "Testing Aggregation
|
283
|
+
(second)", "tags": [], "id": 2277466738585989786, "priority": "normal", "host":
|
284
|
+
"dogbox-carlo", "device_name": null, "payload": "{}"}}'
|
129
285
|
http_version:
|
130
|
-
recorded_at:
|
131
|
-
recorded_with: VCR 2.
|
286
|
+
recorded_at: Tue, 13 May 2014 19:47:47 GMT
|
287
|
+
recorded_with: VCR 2.9.0
|