wavefront-client 3.6.0 → 3.6.1
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.
- checksums.yaml +4 -4
- data/lib/wavefront/alerting.rb +4 -1
- data/lib/wavefront/client/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e2192b6b6c904ffcdd767fef435cb2c5cd5f6d5
|
|
4
|
+
data.tar.gz: d626f4f40a4899e41d13ff02b882c15e50aa5094
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 62e6f3debce48e4febb8221f1aad6ff8e29c8499504a1d999a3e781e8d71c2c5f232f231b7e1f951bab420f986754f0e9e64ad9ce7414cb6a88c23a08d17c912
|
|
7
|
+
data.tar.gz: 15a6468d1996477e5d4887b42149256f68c528f9727d9292c90b92718898a10d25711899cb18c0269ac9683014f4f8e17cc780cd79173751fe0c7f438d27ffab
|
data/lib/wavefront/alerting.rb
CHANGED
|
@@ -92,6 +92,7 @@ module Wavefront
|
|
|
92
92
|
# privateTags: array (optional)
|
|
93
93
|
# sharedTags: array (optional)
|
|
94
94
|
# additionalInformation string (optional)
|
|
95
|
+
# id string (optional - will trigger update behaviour)
|
|
95
96
|
# }
|
|
96
97
|
#
|
|
97
98
|
%w(name condition minutes notifications severity).each do |f|
|
|
@@ -107,7 +108,9 @@ module Wavefront
|
|
|
107
108
|
alert[f] = alert[f].join(',') if alert[f] && alert[f].is_a?(Array)
|
|
108
109
|
end
|
|
109
110
|
|
|
110
|
-
|
|
111
|
+
path = alert.has_key?(:id) ? alert[:id] : 'create'
|
|
112
|
+
|
|
113
|
+
call_post(create_uri(path: path),
|
|
111
114
|
hash_to_qs(alert), 'application/x-www-form-urlencoded')
|
|
112
115
|
end
|
|
113
116
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: wavefront-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.6.
|
|
4
|
+
version: 3.6.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Pointer
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2017-
|
|
16
|
+
date: 2017-04-12 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: bundler
|