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
data/tests/test_client.rb
CHANGED
@@ -6,10 +6,8 @@ class TestClient < Test::Unit::TestCase
|
|
6
6
|
include TestBase
|
7
7
|
|
8
8
|
def test_find_localhost
|
9
|
-
|
10
|
-
assert
|
11
|
-
assert Dogapi.find_localhost.split(".").length > 1
|
12
|
-
assert Dogapi.find_localhost == %x[hostname -f].strip
|
9
|
+
val = Dogapi.find_localhost
|
10
|
+
assert !val.nil?
|
13
11
|
end
|
14
12
|
|
15
13
|
def test_metrics
|
data/tests/test_dashes.rb
CHANGED
@@ -49,7 +49,8 @@ class TestDashes < Test::Unit::TestCase
|
|
49
49
|
},
|
50
50
|
"title" => "Sum Memory Free"
|
51
51
|
}]
|
52
|
-
tpl_vars = ["
|
52
|
+
tpl_vars = [{"default" => nil, "prefix" => nil, "name" => "foo"},
|
53
|
+
{"default" => nil, "prefix" => nil, "name" => "bar"}]
|
53
54
|
|
54
55
|
status, dash_response = dog.update_dashboard(dash_id, title, description, graphs, tpl_vars)
|
55
56
|
assert_equal "200", status, "Updated failed, response: #{dash_response}"
|
metadata
CHANGED
@@ -1,71 +1,60 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dogapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.10.0
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Datadog, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-05-13 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &21286080 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- - '>='
|
19
|
+
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: 1.5.1
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
|
-
version_requirements:
|
23
|
-
requirements:
|
24
|
-
- - '>='
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: 1.5.1
|
24
|
+
version_requirements: *21286080
|
27
25
|
- !ruby/object:Gem::Dependency
|
28
26
|
name: bundler
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &21285400 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
30
29
|
requirements:
|
31
30
|
- - ~>
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '1.3'
|
34
33
|
type: :development
|
35
34
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
requirements:
|
38
|
-
- - ~>
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.3'
|
35
|
+
version_requirements: *21285400
|
41
36
|
- !ruby/object:Gem::Dependency
|
42
37
|
name: rake
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &21284660 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
44
40
|
requirements:
|
45
41
|
- - ~>
|
46
42
|
- !ruby/object:Gem::Version
|
47
43
|
version: '10'
|
48
44
|
type: :development
|
49
45
|
prerelease: false
|
50
|
-
version_requirements:
|
51
|
-
requirements:
|
52
|
-
- - ~>
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '10'
|
46
|
+
version_requirements: *21284660
|
55
47
|
- !ruby/object:Gem::Dependency
|
56
48
|
name: rdoc
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &21284180 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
58
51
|
requirements:
|
59
|
-
- - '>='
|
52
|
+
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
type: :development
|
63
56
|
prerelease: false
|
64
|
-
version_requirements:
|
65
|
-
requirements:
|
66
|
-
- - '>='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '0'
|
57
|
+
version_requirements: *21284180
|
69
58
|
description: Ruby bindings for Datadog's API
|
70
59
|
email:
|
71
60
|
- packages@datadoghq.com
|
@@ -135,7 +124,6 @@ files:
|
|
135
124
|
homepage: http://datadoghq.com/
|
136
125
|
licenses:
|
137
126
|
- BSD
|
138
|
-
metadata: {}
|
139
127
|
post_install_message:
|
140
128
|
rdoc_options:
|
141
129
|
- --title
|
@@ -147,20 +135,22 @@ rdoc_options:
|
|
147
135
|
require_paths:
|
148
136
|
- lib
|
149
137
|
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
none: false
|
150
139
|
requirements:
|
151
|
-
- - '>='
|
140
|
+
- - ! '>='
|
152
141
|
- !ruby/object:Gem::Version
|
153
142
|
version: '0'
|
154
143
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
none: false
|
155
145
|
requirements:
|
156
|
-
- - '>='
|
146
|
+
- - ! '>='
|
157
147
|
- !ruby/object:Gem::Version
|
158
148
|
version: '0'
|
159
149
|
requirements: []
|
160
150
|
rubyforge_project:
|
161
|
-
rubygems_version:
|
151
|
+
rubygems_version: 1.8.11
|
162
152
|
signing_key:
|
163
|
-
specification_version:
|
153
|
+
specification_version: 3
|
164
154
|
summary: Ruby bindings for Datadog's API
|
165
155
|
test_files:
|
166
156
|
- spec/alerts_spec.rb
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: b1d89a7b1f101bd015d08252906c3bbc690f1ef5
|
4
|
-
data.tar.gz: c108087574027947b02bdfe0e1850bc4cc3179ab
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 7a661aca185e7f6f9ff326248a824cbdb0202841c198510d2d2930d92df33225ef9ee76fd84c678f8407c9b1b79d68f23ebb49c28188785e683f1d7c68afeebd
|
7
|
-
data.tar.gz: bbe88338592821d6daf84036e7353d8ec50ffe3b867be7d87b070fd98acc2e03da222bbde08b6414c77432dbe3b5f276a7983ac06a4d8d89e56df14974efb75c
|