dogapi 1.31.0 → 1.32.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9f77255b968b9091ed12bc8f849c06176ed6ff0b53a78b061c76432af14ad5f
4
- data.tar.gz: d49bb8d4241f7b1232d13887908ddc211782931258bddaa4648d9ab2eafa1615
3
+ metadata.gz: bb35c84da1609020a097b950e0b5ed81425ffee7b4891f723541e97f9b10777b
4
+ data.tar.gz: dd495d053ac3704d69512bdca0ed25db64e68cf8ce400143ebb27533d8261728
5
5
  SHA512:
6
- metadata.gz: 9e66a2caae73756e7882ed5b7bc7aa4830d3045c14bf2bb272f3c77e8cef6c3a7879e0daf725c52b2d6279f993d4ae8deb994f67e6ee39484a9cae281490d8bc
7
- data.tar.gz: 63ea3b3ba9e1fd0d8d53ef9e714b96afc907977f2d98fc3044fd03aa25ff3346a3859557f1b8544a456e767a5d3fdf47611449230bc0434d47620c5df5106fe2
6
+ metadata.gz: cafcc7e0883a743adbfa82c1fce713e5b6e6bebf67c4337c8c7cca91a10d7c844a58280e9adbaf120de09984a1b05462b31b0c5391629fe5d6b926358c0ae6ef
7
+ data.tar.gz: 732984573605a233f81de6f17d6f8b2cbe3d4d1e158dbe2206a2b0ef2c443266c0b31f8a71995369a41e8aafff2164187b0c7fcd9166e11a3b683d3d43919481
@@ -1,5 +1,10 @@
1
1
  # Changes
2
2
 
3
+ ## 1.32.0 / 2018-10-23
4
+
5
+ * [FEATURE] Added [monitor search](https://docs.datadoghq.com/api/?lang=ruby#monitors-search) and [monitor groups search](https://docs.datadoghq.com/api/?lang=ruby#monitors-group-search) API endpoints. See #163.
6
+ * [FIX] Add project metadata to the gemspec. See #162, thanks @orien.
7
+
3
8
  ## 1.31.0 / 2018-10-01
4
9
 
5
10
  * [FIX] Handle nil values from benchmarks in Capistrano. See [#159][].
@@ -229,4 +234,4 @@ This is the last release compatible with Ruby 1.8. ([EOL 2013-06-30](https://www
229
234
  [@rmoriz]: https://github.com/rmoriz
230
235
  [@treeder]: https://github.com/treeder
231
236
  [@winebarrel]: https://github.com/winebarrel
232
- [@yyuu]: https://github.com/yyuu
237
+ [@yyuu]: https://github.com/yyuu
@@ -13,6 +13,13 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = 'http://datadoghq.com/'
14
14
  spec.license = 'BSD'
15
15
 
16
+ spec.metadata = {
17
+ 'bug_tracker_uri' => 'https://github.com/DataDog/dogapi-rb/issues',
18
+ 'changelog_uri' => 'https://github.com/DataDog/dogapi-rb/blob/master/CHANGELOG.md',
19
+ 'documentation_uri' => 'https://docs.datadoghq.com/api/',
20
+ 'source_code_uri' => 'https://github.com/DataDog/dogapi-rb'
21
+ }
22
+
16
23
  spec.files = `git ls-files`.split($\)
17
24
  spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
18
25
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
@@ -476,6 +476,14 @@ module Dogapi
476
476
  @monitor_svc.unmute_monitor(monitor_id, options)
477
477
  end
478
478
 
479
+ def search_monitors(options = {})
480
+ @monitor_svc.search_monitors(options)
481
+ end
482
+
483
+ def search_monitor_groups(options = {})
484
+ @monitor_svc.search_monitor_groups(options)
485
+ end
486
+
479
487
  #
480
488
  # MONITOR DOWNTIME
481
489
  #
@@ -83,6 +83,14 @@ module Dogapi
83
83
  request(Net::HTTP::Post, "/api/#{API_VERSION}/monitor/#{monitor_id}/unmute", nil, options, true)
84
84
  end
85
85
 
86
+ def search_monitors(options = {})
87
+ request(Net::HTTP::Get, "/api/#{API_VERSION}/monitor/search", options, nil, false)
88
+ end
89
+
90
+ def search_monitor_groups(options = {})
91
+ request(Net::HTTP::Get, "/api/#{API_VERSION}/monitor/groups/search", options, nil, false)
92
+ end
93
+
86
94
  #
87
95
  # DOWNTIMES
88
96
 
@@ -1,3 +1,3 @@
1
1
  module Dogapi
2
- VERSION = '1.31.0'
2
+ VERSION = '1.32.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dogapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.31.0
4
+ version: 1.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Datadog, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -139,7 +139,11 @@ files:
139
139
  homepage: http://datadoghq.com/
140
140
  licenses:
141
141
  - BSD
142
- metadata: {}
142
+ metadata:
143
+ bug_tracker_uri: https://github.com/DataDog/dogapi-rb/issues
144
+ changelog_uri: https://github.com/DataDog/dogapi-rb/blob/master/CHANGELOG.md
145
+ documentation_uri: https://docs.datadoghq.com/api/
146
+ source_code_uri: https://github.com/DataDog/dogapi-rb
143
147
  post_install_message:
144
148
  rdoc_options:
145
149
  - "--title"