wavefront-cli 5.0.0 → 5.0.1

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: 4b9b30b77aba2b30466497242b0d6158a9d151a061d4be80066e5d2eaa47832d
4
- data.tar.gz: 9bace696eed2533b302f5677034e3d32f5f9a82566a63ccf1b2eee0cf5ab2c26
3
+ metadata.gz: 7b6dd6a0dbe70c8b5b32da314ee85ed859954a1c65b6ab068413d655bb0ef9ed
4
+ data.tar.gz: 8b4606d212c1be7e8020946fc3a584774d1e0caa88add714683c896e39822b0c
5
5
  SHA512:
6
- metadata.gz: 355cf87d1399ee0e9e2f12034cc099f73388007ca59fe233aff4ab2e152f3ee1d617f7211008d39e650bf6bd572e7ddd347034d2732999f4b9dbd97faf494e36
7
- data.tar.gz: 63583fe1ad4384bcef66e4f3aff00682fc414c60ee1e4ef6175f4d37df939ac05d6c6773ee0b493cc27b30440968f984429e06bcec412184065d3ffaa4d520fd
6
+ metadata.gz: 906ad829f658c803f7fb9666172ffc78c5b6b5db9918edf5203fe8477ddbc0b1e5e8772cd9ba479160e6e3d4173a2ca363490de7763049174934364989a4a9ad
7
+ data.tar.gz: 856022412c9a6ab3aca5ea88870f115bf11373bd1cbac64f6ba52710fda2cdada21c3c385dc416daa3ff94c4a58fca1490b2fdc071b3cc3a8590d4471017e05d
data/.rubocop.yml CHANGED
@@ -5,3 +5,10 @@ AllCops:
5
5
 
6
6
  Metrics/ClassLength:
7
7
  Max: 400
8
+
9
+ Style/HashEachMethods:
10
+ Enabled: true
11
+ Style/HashTransformKeys:
12
+ Enabled: true
13
+ Style/HashTransformValues:
14
+ Enabled: true
data/HISTORY.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.0.1 (2020-02-18)
4
+ * Bugfix: threshold alerts could not be imported.
5
+
3
6
  ## 5.0.0 (2020-02-17)
4
7
  * Remove support for Ruby 2.3. (Potentially breaking change.)
5
8
  * Add `cluster` command to manage monitored clusters.
@@ -13,8 +13,9 @@ module WavefrontCli
13
13
  include WavefrontCli::Mixin::Acl
14
14
 
15
15
  def import_fields
16
- %i[name condition minutes target severity displayExpression
17
- tags additionalInformation resolveAfterMinutes]
16
+ %i[name condition minutes target severity displayExpression tags
17
+ additionalInformation resolveAfterMinutes alertType severityList
18
+ conditions acl]
18
19
  end
19
20
 
20
21
  def do_describe
@@ -143,7 +144,7 @@ module WavefrontCli
143
144
  if raw.key?('customerTagsWithCounts')
144
145
  ret[:sharedTags] = raw['customerTagsWithCounts'].keys
145
146
  end
146
- end
147
+ end.compact
147
148
  end
148
149
  end
149
150
  end
@@ -4,3 +4,10 @@
4
4
  #
5
5
  Metrics/MethodLength:
6
6
  Max: 25
7
+
8
+ Style/HashEachMethods:
9
+ Enabled: true
10
+ Style/HashTransformKeys:
11
+ Enabled: true
12
+ Style/HashTransformValues:
13
+ Enabled: true
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- WF_CLI_VERSION = '5.0.0'
3
+ WF_CLI_VERSION = '5.0.1'
data/spec/.rubocop.yml CHANGED
@@ -7,3 +7,10 @@ Metrics/AbcSize:
7
7
 
8
8
  Metrics/ClassLength:
9
9
  Max: 300
10
+
11
+ Style/HashEachMethods:
12
+ Enabled: true
13
+ Style/HashTransformKeys:
14
+ Enabled: true
15
+ Style/HashTransformValues:
16
+ Enabled: true
@@ -263,8 +263,8 @@ class AlertEndToEndTest < EndToEndTest
263
263
  end
264
264
 
265
265
  def import_fields
266
- %i[condition displayExpression resolveAfterMinutes minutes severity
267
- tags target name]
266
+ %i[name condition minutes target severity displayExpression tags
267
+ resolveAfterMinutes]
268
268
  end
269
269
 
270
270
  # rubocop:disable Layout/LineLength
@@ -278,7 +278,7 @@ class AlertEndToEndTest < EndToEndTest
278
278
  tags: { customerTags: ['pks'] },
279
279
  additionalInformation: nil,
280
280
  resolveAfterMinutes: 5,
281
- resolveMinutes: 5 }
281
+ resolveMinutes: 5 }.compact
282
282
  end
283
283
 
284
284
  def update_data
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.0.0
4
+ version: 5.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-17 00:00:00.000000000 Z
11
+ date: 2020-02-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt