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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27196556716ec832044c8587e6d395caddc4c39f
4
- data.tar.gz: b8acc4e5aa6ce54130fd6abc143d3f2f8fffe44b
3
+ metadata.gz: 5e2192b6b6c904ffcdd767fef435cb2c5cd5f6d5
4
+ data.tar.gz: d626f4f40a4899e41d13ff02b882c15e50aa5094
5
5
  SHA512:
6
- metadata.gz: 656b1215fe52afbdcfeb62212e458f900807edf84621e2968c50f44ff23b60b1f2424d2a32753d3f19e14de3894c0f8d479dd6320d55e3fa3307c7117ee5936d
7
- data.tar.gz: c8c9741dfc418ba90aab20f6b4b3d898e978dd98677baae33ec506b42c0c377ce77dc0a31291210b99e556c071af542a19e42dcd3702e84206ecd8099188b251
6
+ metadata.gz: 62e6f3debce48e4febb8221f1aad6ff8e29c8499504a1d999a3e781e8d71c2c5f232f231b7e1f951bab420f986754f0e9e64ad9ce7414cb6a88c23a08d17c912
7
+ data.tar.gz: 15a6468d1996477e5d4887b42149256f68c528f9727d9292c90b92718898a10d25711899cb18c0269ac9683014f4f8e17cc780cd79173751fe0c7f438d27ffab
@@ -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
- call_post(create_uri(path: 'create'),
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
 
@@ -16,6 +16,6 @@ See the License for the specific language governing permissions and
16
16
 
17
17
  module Wavefront
18
18
  class Client
19
- VERSION = "3.6.0"
19
+ VERSION = "3.6.1"
20
20
  end
21
21
  end
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.0
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-03-20 00:00:00.000000000 Z
16
+ date: 2017-04-12 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: bundler