dogapi 1.21.0 → 1.22.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 (35) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +5 -2
  4. data/CHANGELOG.md +8 -3
  5. data/Gemfile +1 -0
  6. data/README.rdoc +22 -0
  7. data/Rakefile +2 -7
  8. data/lib/dogapi/facade.rb +10 -0
  9. data/lib/dogapi/v1/metric.rb +28 -3
  10. data/lib/dogapi/version.rb +1 -1
  11. data/spec/spec_helper.rb +3 -1
  12. data/spec/support/cassettes/Alerts/create/returns_HTTP_code_200.yml +39 -23
  13. data/spec/support/cassettes/Alerts/create/returns_a_valid_event_ID.yml +39 -153
  14. data/spec/support/cassettes/Alerts/create/returns_the_same_query_as_sent.yml +39 -153
  15. data/spec/support/cassettes/Facade/Events/emits_aggregate_events.yml +68 -264
  16. data/spec/support/cassettes/Facade/Events/emits_events_and_retrieves_them.yml +36 -153
  17. data/spec/support/cassettes/Facade/Events/emits_events_with_specified_priority.yml +34 -149
  18. data/spec/support/cassettes/Facade/Tags/adds_updates_and_detaches_tags.yml +132 -66
  19. data/tests/test_alerts.rb +1 -1
  20. data/tests/test_base.rb +1 -1
  21. data/tests/test_client.rb +1 -1
  22. data/tests/test_comments.rb +1 -1
  23. data/tests/test_dashes.rb +1 -1
  24. data/tests/test_embed.rb +2 -2
  25. data/tests/test_monitors.rb +1 -1
  26. data/tests/test_screenboard.rb +2 -2
  27. data/tests/test_search.rb +1 -1
  28. data/tests/test_snapshot.rb +1 -1
  29. data/tests/test_users.rb +1 -1
  30. metadata +21 -32
  31. data/spec/support/cassettes/Alerts/create/returns_HTTP_code_201.yml +0 -191
  32. data/spec/support/cassettes/Facade/Client/emit_point_can_pass_nil_host.yml +0 -32
  33. data/spec/support/cassettes/Facade/Client/emit_point_passes_data.yml +0 -32
  34. data/spec/support/cassettes/Facade/Client/emit_point_uses_localhost_default.yml +0 -32
  35. data/spec/support/cassettes/Facade/Client/emits_point_with_localhost.yml +0 -32
@@ -1,32 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
6
- body:
7
- string: "{\"series\":[{\"type\":\"gauge\",\"points\":[[1378327806,0.0]],\"host\":null,\"metric\":\"metric.name\",\"device\":null}]}"
8
- headers:
9
- Content-Type:
10
- - application/json
11
- Accept:
12
- - "*/*"
13
- response:
14
- status:
15
- code: 202
16
- message: Accepted
17
- headers:
18
- Content-Length:
19
- - "15"
20
- Server:
21
- - dogdispatcher/4.7.0
22
- Content-Type:
23
- - text/json; charset=UTF-8
24
- Date:
25
- - Wed, 04 Sep 2013 20:55:33 GMT
26
- Connection:
27
- - keep-alive
28
- body:
29
- string: "{\"status\":\"ok\"}"
30
- http_version:
31
- recorded_at: Wed, 04 Sep 2013 20:50:06 GMT
32
- recorded_with: VCR 2.5.0
@@ -1,32 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
6
- body:
7
- string: "{\"series\":[{\"type\":\"gauge\",\"points\":[[1378327804,0.0]],\"host\":\"myhost\",\"metric\":\"metric.name\",\"device\":null}]}"
8
- headers:
9
- Content-Type:
10
- - application/json
11
- Accept:
12
- - "*/*"
13
- response:
14
- status:
15
- code: 202
16
- message: Accepted
17
- headers:
18
- Content-Length:
19
- - "15"
20
- Server:
21
- - dogdispatcher/4.7.0
22
- Content-Type:
23
- - text/json; charset=UTF-8
24
- Date:
25
- - Wed, 04 Sep 2013 20:55:32 GMT
26
- Connection:
27
- - keep-alive
28
- body:
29
- string: "{\"status\":\"ok\"}"
30
- http_version:
31
- recorded_at: Wed, 04 Sep 2013 20:50:05 GMT
32
- recorded_with: VCR 2.5.0
@@ -1,32 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
6
- body:
7
- string: "{\"series\":[{\"type\":\"gauge\",\"points\":[[1378327805,0.0]],\"host\":\"dogbox\",\"metric\":\"metric.name\",\"device\":null}]}"
8
- headers:
9
- Content-Type:
10
- - application/json
11
- Accept:
12
- - "*/*"
13
- response:
14
- status:
15
- code: 202
16
- message: Accepted
17
- headers:
18
- Content-Length:
19
- - "15"
20
- Server:
21
- - dogdispatcher/4.7.0
22
- Content-Type:
23
- - text/json; charset=UTF-8
24
- Date:
25
- - Wed, 04 Sep 2013 20:55:32 GMT
26
- Connection:
27
- - keep-alive
28
- body:
29
- string: "{\"status\":\"ok\"}"
30
- http_version:
31
- recorded_at: Wed, 04 Sep 2013 20:50:06 GMT
32
- recorded_with: VCR 2.5.0
@@ -1,32 +0,0 @@
1
- ---
2
- http_interactions:
3
- - request:
4
- method: post
5
- uri: https://app.datadoghq.com/api/v1/series?api_key=9775a026f1ca7d1c6c5af9d94d9595a4
6
- body:
7
- string: "{\"series\":[{\"type\":\"gauge\",\"points\":[[1377629527,0.0]],\"host\":\"dogbox\",\"metric\":\"metric.name\",\"device\":null}]}"
8
- headers:
9
- Accept:
10
- - "*/*"
11
- Content-Type:
12
- - application/json
13
- response:
14
- status:
15
- code: 202
16
- message: Accepted
17
- headers:
18
- Server:
19
- - dogdispatcher/4.6.6
20
- Connection:
21
- - keep-alive
22
- Date:
23
- - Tue, 27 Aug 2013 18:52:14 GMT
24
- Content-Type:
25
- - text/json; charset=UTF-8
26
- Content-Length:
27
- - "15"
28
- body:
29
- string: "{\"status\":\"ok\"}"
30
- http_version:
31
- recorded_at: Tue, 27 Aug 2013 18:52:14 GMT
32
- recorded_with: VCR 2.5.0