wavefront-cli 8.5.0 → 9.0.0

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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +37 -0
  3. data/.github/workflows/test.yml +23 -0
  4. data/.rubocop.yml +10 -9
  5. data/HISTORY.md +15 -0
  6. data/README.md +4 -2
  7. data/lib/wavefront-cli/base.rb +2 -2
  8. data/lib/wavefront-cli/commands/.rubocop.yml +2 -13
  9. data/lib/wavefront-cli/commands/base.rb +10 -9
  10. data/lib/wavefront-cli/commands/derivedmetric.rb +1 -1
  11. data/lib/wavefront-cli/commands/metric.rb +3 -3
  12. data/lib/wavefront-cli/commands/metricspolicy.rb +33 -0
  13. data/lib/wavefront-cli/commands/query.rb +5 -5
  14. data/lib/wavefront-cli/commands/write.rb +12 -12
  15. data/lib/wavefront-cli/config.rb +4 -4
  16. data/lib/wavefront-cli/constants.rb +2 -1
  17. data/lib/wavefront-cli/controller.rb +19 -15
  18. data/lib/wavefront-cli/display/base.rb +3 -2
  19. data/lib/wavefront-cli/display/metricspolicy.rb +15 -0
  20. data/lib/wavefront-cli/display/printer/long.rb +11 -13
  21. data/lib/wavefront-cli/display/printer/sparkline.rb +3 -3
  22. data/lib/wavefront-cli/display/query.rb +1 -1
  23. data/lib/wavefront-cli/display/write.rb +2 -1
  24. data/lib/wavefront-cli/event.rb +2 -2
  25. data/lib/wavefront-cli/event_store.rb +2 -2
  26. data/lib/wavefront-cli/exception.rb +21 -0
  27. data/lib/wavefront-cli/exception_handler.rb +8 -1
  28. data/lib/wavefront-cli/helpers/load_file.rb +2 -2
  29. data/lib/wavefront-cli/maintenancewindow.rb +1 -1
  30. data/lib/wavefront-cli/metricspolicy.rb +42 -0
  31. data/lib/wavefront-cli/opt_handler.rb +3 -4
  32. data/lib/wavefront-cli/output/csv/query.rb +2 -2
  33. data/lib/wavefront-cli/output/hcl/dashboard.rb +6 -6
  34. data/lib/wavefront-cli/output/hcl/stdlib/array.rb +1 -1
  35. data/lib/wavefront-cli/output/wavefront/query.rb +7 -7
  36. data/lib/wavefront-cli/query.rb +1 -1
  37. data/lib/wavefront-cli/settings.rb +3 -4
  38. data/lib/wavefront-cli/stdlib/string.rb +5 -5
  39. data/lib/wavefront-cli/usage.rb +1 -1
  40. data/lib/wavefront-cli/version.rb +1 -1
  41. data/lib/wavefront-cli/write.rb +14 -18
  42. data/spec/.rubocop.yml +2 -17
  43. data/spec/constants.rb +4 -5
  44. data/spec/support/command_base.rb +12 -0
  45. data/spec/support/minitest_assertions.rb +15 -11
  46. data/spec/support/output_tester.rb +2 -2
  47. data/spec/support/supported_commands.rb +3 -1
  48. data/spec/test_mixins/import.rb +2 -2
  49. data/spec/test_mixins/search.rb +9 -7
  50. data/spec/test_mixins/set.rb +1 -1
  51. data/spec/wavefront-cli/account_spec.rb +6 -4
  52. data/spec/wavefront-cli/alert_spec.rb +29 -6
  53. data/spec/wavefront-cli/commands/base_spec.rb +4 -4
  54. data/spec/wavefront-cli/commands/config_spec.rb +3 -3
  55. data/spec/wavefront-cli/config_spec.rb +3 -3
  56. data/spec/wavefront-cli/controller_spec.rb +4 -0
  57. data/spec/wavefront-cli/dashboard_spec.rb +1 -1
  58. data/spec/wavefront-cli/derivedmetric_spec.rb +9 -7
  59. data/spec/wavefront-cli/display/printer/long_spec.rb +5 -3
  60. data/spec/wavefront-cli/display/printer/terse_spec.rb +1 -1
  61. data/spec/wavefront-cli/event_spec.rb +14 -11
  62. data/spec/wavefront-cli/event_store_spec.rb +16 -12
  63. data/spec/wavefront-cli/externallink_spec.rb +5 -3
  64. data/spec/wavefront-cli/maintenancewindow_spec.rb +25 -19
  65. data/spec/wavefront-cli/message_spec.rb +3 -3
  66. data/spec/wavefront-cli/metricspolicy_spec.rb +30 -0
  67. data/spec/wavefront-cli/opt_handler_spec.rb +4 -4
  68. data/spec/wavefront-cli/output/helpers.rb +1 -1
  69. data/spec/wavefront-cli/proxy_spec.rb +1 -1
  70. data/spec/wavefront-cli/query_spec.rb +1 -1
  71. data/spec/wavefront-cli/role_spec.rb +4 -3
  72. data/spec/wavefront-cli/serviceaccount_spec.rb +7 -7
  73. data/spec/wavefront-cli/stdlib/string_spec.rb +3 -1
  74. data/spec/wavefront-cli/usage_spec.rb +1 -1
  75. data/spec/wavefront-cli/{write_spec.rb → write_class_spec.rb} +1 -14
  76. data/wavefront-cli.gemspec +13 -12
  77. metadata +72 -146
  78. data/.travis.yml +0 -20
  79. data/spec/spec_helper.rb +0 -113
@@ -9,7 +9,7 @@ require_relative '../../lib/wavefront-cli/opt_handler'
9
9
  # Some of these tests will be skipped if you have a ~/.wavefront
10
10
  # config file. CI will never have that.
11
11
  #
12
- INTERFERING_FILE = Pathname.new(ENV['HOME']) + '.wavefront'
12
+ INTERFERING_FILE = Pathname.new(Dir.home).join('.wavefront')
13
13
 
14
14
  # Test option handler class. End to end tests because the work is
15
15
  # always done in the constructor
@@ -19,7 +19,7 @@ class OptHandlerTest < MiniTest::Test
19
19
  x = WavefrontCli::OptHandler.new
20
20
  assert x.is_a?(WavefrontCli::OptHandler)
21
21
  assert x.opts.is_a?(Hash)
22
- assert x.opts.keys.include?(:endpoint)
22
+ assert x.opts.key?(:endpoint)
23
23
  end
24
24
 
25
25
  def test_missing_config
@@ -36,7 +36,7 @@ class OptHandlerTest < MiniTest::Test
36
36
  o = x.opts
37
37
  assert x.is_a?(WavefrontCli::OptHandler)
38
38
  assert o.is_a?(Hash)
39
- refute o.keys.include?(:token)
39
+ refute o.key?(:token)
40
40
  assert_equal(o[:endpoint], 'metrics.wavefront.com')
41
41
  end
42
42
 
@@ -52,7 +52,7 @@ class OptHandlerTest < MiniTest::Test
52
52
  assert_equal(o[:token], 'abcd1234')
53
53
  assert_nil o[:config]
54
54
  assert_equal(o[:endpoint], 'myendpoint.wavefront.com')
55
- refute o.keys.include?(:proxy)
55
+ refute o.key?(:proxy)
56
56
  ENV['WAVEFRONT_TOKEN'] = nil
57
57
  ENV['WAVEFRONT_ENDPOINT'] = nil
58
58
  end
@@ -14,5 +14,5 @@ def load_raw_query_response
14
14
  end
15
15
 
16
16
  def load_file(file)
17
- JSON.parse(IO.read(RES_DIR + file), symbolize_names: true)
17
+ JSON.parse(File.read(RES_DIR.join(file)), symbolize_names: true)
18
18
  end
@@ -37,7 +37,7 @@ class ProxyEndToEndTest < EndToEndTest
37
37
  end
38
38
 
39
39
  def test_shutdown
40
- assert_output("Requested shutdown of proxy '#{id}'.\n") do
40
+ assert_repeated_output("Requested shutdown of proxy '#{id}'.") do
41
41
  assert_cmd_puts("shutdown #{id}", "/api/v2/proxy/#{id}",
42
42
  { shutdown: true }.to_json)
43
43
  end
@@ -183,7 +183,7 @@ class QueryEndToEndTest < EndToEndTest
183
183
  end
184
184
 
185
185
  def canned_response
186
- IO.read(RES_DIR + 'responses' + 'query.json')
186
+ File.read(RES_DIR.join('responses', 'query.json'))
187
187
  end
188
188
  end
189
189
 
@@ -94,7 +94,7 @@ class RoleEndToEndTest < EndToEndTest
94
94
  { permissions: permissions }.to_json)
95
95
  end
96
96
 
97
- assert_equal(permissions.join("\n"), out.strip)
97
+ assert_equal(permissions, out.split("\n").uniq)
98
98
  assert_empty err
99
99
 
100
100
  assert_abort_on_missing_creds("permissions #{id}")
@@ -120,8 +120,9 @@ class RoleEndToEndTest < EndToEndTest
120
120
  accounts.to_json)
121
121
  end
122
122
 
123
- assert_equal("Took '#{id}' from '#{accounts.first}', '#{accounts.last}'.",
124
- out.strip.tr("\n", ' '))
123
+ assert out.strip.tr("\n", ' ').start_with?(
124
+ "Took '#{id}' from '#{accounts.first}', '#{accounts.last}'."
125
+ )
125
126
 
126
127
  assert_empty err
127
128
 
@@ -6,7 +6,6 @@ require_relative '../../lib/wavefront-cli/serviceaccount'
6
6
 
7
7
  # Ensure 'serviceaccount' commands produce the correct API calls.
8
8
  #
9
- # rubocop:disable Metrics/ClassLength
10
9
  class ServiceAccountEndToEndTest < EndToEndTest
11
10
  include WavefrontCliTest::Describe
12
11
  # include WavefrontCliTest::Import
@@ -106,14 +105,16 @@ class ServiceAccountEndToEndTest < EndToEndTest
106
105
  userGroups: [])
107
106
  end
108
107
 
108
+ json_body = { identifier: id,
109
+ active: true,
110
+ tokens: [],
111
+ roles: [],
112
+ userGroups: [] }.to_json
113
+
109
114
  assert_noop(
110
115
  "create #{id}",
111
116
  'uri: POST https://default.wavefront.com/api/v2/account/serviceaccount',
112
- 'body: ' + { identifier: id,
113
- active: true,
114
- tokens: [],
115
- roles: [],
116
- userGroups: [] }.to_json
117
+ "body: #{json_body}"
117
118
  )
118
119
 
119
120
  assert_abort_on_missing_creds("create #{id}")
@@ -430,4 +431,3 @@ class ServiceAccountEndToEndTest < EndToEndTest
430
431
  identifier: 'sa::test' }
431
432
  end
432
433
  end
433
- # rubocop:enable Metrics/ClassLength
@@ -28,13 +28,14 @@ class StringTest < MiniTest::Test
28
28
 
29
29
  str = '-o, --option PARAMETER a rather pointless option with a ' \
30
30
  'needlessly wordy description string'
31
- pad = "\n" + ' ' * 12
31
+ pad = "\n#{' ' * 12}"
32
32
  assert_equal(" -o, --option PARAMETER a#{pad}rather pointless" \
33
33
  "#{pad}option with a#{pad}needlessly wordy#{pad}" \
34
34
  "description#{pad}string",
35
35
  str.opt_fold(30, 10))
36
36
  end
37
37
 
38
+ # rubocop:disable Layout/LineContinuationLeadingSpace
38
39
  def test_fold_options
39
40
  str = '-l, --longoption a long option with a quite long ' \
40
41
  'description which needs folding'
@@ -48,6 +49,7 @@ class StringTest < MiniTest::Test
48
49
  ' folding')
49
50
  assert_equal(str.opt_fold(100), " #{str}")
50
51
  end
52
+ # rubocop:enable Layout/LineContinuationLeadingSpace
51
53
 
52
54
  def test_to_seconds
53
55
  assert_equal(14, '14s'.to_seconds)
@@ -49,7 +49,7 @@ class UsageEndToEndTest < EndToEndTest
49
49
  end
50
50
 
51
51
  def response
52
- IO.read(RES_DIR + 'responses' + 'usage-export-csv.json')
52
+ File.read(RES_DIR.join('responses', 'usage-export-csv.json'))
53
53
  end
54
54
  end
55
55
 
@@ -13,19 +13,6 @@ class WavefrontCliWriteTest < MiniTest::Test
13
13
  @wf = WavefrontCli::Write.new({})
14
14
  end
15
15
 
16
- def test_validate_opts
17
- assert WavefrontCli::Write.new(using: 'unix',
18
- socket: '/tmp/sock').validate_opts
19
- assert WavefrontCli::Write.new(proxy: 'wavefront').validate_opts
20
- assert_raises 'WavefrontCli::Exception::CredentialError' do
21
- WavefrontCli::Write.new.validate_opts
22
- end
23
-
24
- assert_raises 'WavefrontCli::Exception::CredentialError' do
25
- WavefrontCli::Write.new(using: 'unix').validate_opts
26
- end
27
- end
28
-
29
16
  def test_validate_opts_file
30
17
  assert WavefrontCli::Write.new(
31
18
  proxy: 'wavefront', metric: 'metric.path'
@@ -172,7 +159,7 @@ class WavefrontCliWriteTest < MiniTest::Test
172
159
  def test_valid_timestamp?
173
160
  assert wf.valid_timestamp?(Time.now.to_i)
174
161
  refute wf.valid_timestamp?(Time.new(1999, 11, 30).to_i)
175
- refute wf.valid_timestamp?(Time.now.to_i + 367 * 24 * 60 * 60)
162
+ refute wf.valid_timestamp?(Time.now.to_i + (367 * 24 * 60 * 60))
176
163
  end
177
164
 
178
165
  def test__sdk_class_and_default_port
@@ -2,13 +2,11 @@
2
2
 
3
3
  require 'pathname'
4
4
  require 'date'
5
-
6
5
  require_relative 'lib/wavefront-cli/version'
7
6
 
8
7
  Gem::Specification.new do |gem|
9
8
  gem.name = 'wavefront-cli'
10
9
  gem.version = WF_CLI_VERSION
11
- gem.date = Date.today.to_s
12
10
 
13
11
  gem.summary = 'CLI for Wavefront API v2'
14
12
  gem.description = 'CLI for Wavefront (wavefront.com) API v2 '
@@ -21,19 +19,22 @@ Gem::Specification.new do |gem|
21
19
  gem.bindir = 'bin'
22
20
  gem.files = `git ls-files`.split("\n")
23
21
  gem.executables = 'wf'
24
- gem.test_files = gem.files.grep(/^spec/)
25
22
  gem.require_paths = %w[lib]
26
23
 
27
- gem.add_runtime_dependency 'docopt', '~> 0.6.0'
24
+ gem.add_runtime_dependency 'docopt', '~> 0.6'
28
25
  gem.add_runtime_dependency 'inifile', '~> 3.0'
29
- gem.add_runtime_dependency 'wavefront-sdk', '~> 5.4', '>= 5.4.2'
26
+ gem.add_runtime_dependency 'wavefront-sdk', '~> 7.0'
30
27
 
31
- gem.add_development_dependency 'minitest', '~> 5.14'
28
+ gem.add_development_dependency 'minitest', '~> 5.17'
32
29
  gem.add_development_dependency 'rake', '~> 13.0'
33
- gem.add_development_dependency 'rubocop', '0.91.0'
34
- gem.add_development_dependency 'spy', '~> 1.0.0'
35
- gem.add_development_dependency 'webmock', '~> 3.8'
36
- gem.add_development_dependency 'yard', '~> 0.9.5'
37
-
38
- gem.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
30
+ gem.add_development_dependency 'rubocop', '~> 1.43'
31
+ gem.add_development_dependency 'rubocop-minitest', '~> 0.26'
32
+ gem.add_development_dependency 'rubocop-performance', '~> 1.15'
33
+ gem.add_development_dependency 'rubocop-rake', '~> 0.6'
34
+ gem.add_development_dependency 'spy', '~> 1.0'
35
+ gem.add_development_dependency 'webmock', '~> 3.18'
36
+ gem.add_development_dependency 'yard', '~> 0.9'
37
+
38
+ gem.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
39
+ gem.metadata['rubygems_mfa_required'] = 'true'
39
40
  end
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: 8.5.0
4
+ version: 9.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Fisher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-12 00:00:00.000000000 Z
11
+ date: 2023-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.6.0
19
+ version: '0.6'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.6.0
26
+ version: '0.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: inifile
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,34 +44,28 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '5.4'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 5.4.2
47
+ version: '7.0'
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - "~>"
56
53
  - !ruby/object:Gem::Version
57
- version: '5.4'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 5.4.2
54
+ version: '7.0'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: minitest
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
59
  - - "~>"
66
60
  - !ruby/object:Gem::Version
67
- version: '5.14'
61
+ version: '5.17'
68
62
  type: :development
69
63
  prerelease: false
70
64
  version_requirements: !ruby/object:Gem::Requirement
71
65
  requirements:
72
66
  - - "~>"
73
67
  - !ruby/object:Gem::Version
74
- version: '5.14'
68
+ version: '5.17'
75
69
  - !ruby/object:Gem::Dependency
76
70
  name: rake
77
71
  requirement: !ruby/object:Gem::Requirement
@@ -90,58 +84,100 @@ dependencies:
90
84
  name: rubocop
91
85
  requirement: !ruby/object:Gem::Requirement
92
86
  requirements:
93
- - - '='
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '1.43'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '1.43'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rubocop-minitest
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.26'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.26'
111
+ - !ruby/object:Gem::Dependency
112
+ name: rubocop-performance
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
94
116
  - !ruby/object:Gem::Version
95
- version: 0.91.0
117
+ version: '1.15'
96
118
  type: :development
97
119
  prerelease: false
98
120
  version_requirements: !ruby/object:Gem::Requirement
99
121
  requirements:
100
- - - '='
122
+ - - "~>"
101
123
  - !ruby/object:Gem::Version
102
- version: 0.91.0
124
+ version: '1.15'
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-rake
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.6'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.6'
103
139
  - !ruby/object:Gem::Dependency
104
140
  name: spy
105
141
  requirement: !ruby/object:Gem::Requirement
106
142
  requirements:
107
143
  - - "~>"
108
144
  - !ruby/object:Gem::Version
109
- version: 1.0.0
145
+ version: '1.0'
110
146
  type: :development
111
147
  prerelease: false
112
148
  version_requirements: !ruby/object:Gem::Requirement
113
149
  requirements:
114
150
  - - "~>"
115
151
  - !ruby/object:Gem::Version
116
- version: 1.0.0
152
+ version: '1.0'
117
153
  - !ruby/object:Gem::Dependency
118
154
  name: webmock
119
155
  requirement: !ruby/object:Gem::Requirement
120
156
  requirements:
121
157
  - - "~>"
122
158
  - !ruby/object:Gem::Version
123
- version: '3.8'
159
+ version: '3.18'
124
160
  type: :development
125
161
  prerelease: false
126
162
  version_requirements: !ruby/object:Gem::Requirement
127
163
  requirements:
128
164
  - - "~>"
129
165
  - !ruby/object:Gem::Version
130
- version: '3.8'
166
+ version: '3.18'
131
167
  - !ruby/object:Gem::Dependency
132
168
  name: yard
133
169
  requirement: !ruby/object:Gem::Requirement
134
170
  requirements:
135
171
  - - "~>"
136
172
  - !ruby/object:Gem::Version
137
- version: 0.9.5
173
+ version: '0.9'
138
174
  type: :development
139
175
  prerelease: false
140
176
  version_requirements: !ruby/object:Gem::Requirement
141
177
  requirements:
142
178
  - - "~>"
143
179
  - !ruby/object:Gem::Version
144
- version: 0.9.5
180
+ version: '0.9'
145
181
  description: 'CLI for Wavefront (wavefront.com) API v2 '
146
182
  email: services@id264.net
147
183
  executables:
@@ -150,9 +186,10 @@ extensions: []
150
186
  extra_rdoc_files: []
151
187
  files:
152
188
  - ".codeclimate.yml"
189
+ - ".github/workflows/release.yml"
190
+ - ".github/workflows/test.yml"
153
191
  - ".gitignore"
154
192
  - ".rubocop.yml"
155
- - ".travis.yml"
156
193
  - Gemfile
157
194
  - HISTORY.md
158
195
  - LICENSE.txt
@@ -181,6 +218,7 @@ files:
181
218
  - lib/wavefront-cli/commands/link.rb
182
219
  - lib/wavefront-cli/commands/message.rb
183
220
  - lib/wavefront-cli/commands/metric.rb
221
+ - lib/wavefront-cli/commands/metricspolicy.rb
184
222
  - lib/wavefront-cli/commands/notificant.rb
185
223
  - lib/wavefront-cli/commands/proxy.rb
186
224
  - lib/wavefront-cli/commands/query.rb
@@ -215,6 +253,7 @@ files:
215
253
  - lib/wavefront-cli/display/maintenancewindow.rb
216
254
  - lib/wavefront-cli/display/message.rb
217
255
  - lib/wavefront-cli/display/metric.rb
256
+ - lib/wavefront-cli/display/metricspolicy.rb
218
257
  - lib/wavefront-cli/display/notificant.rb
219
258
  - lib/wavefront-cli/display/printer/long.rb
220
259
  - lib/wavefront-cli/display/printer/sparkline.rb
@@ -242,6 +281,7 @@ files:
242
281
  - lib/wavefront-cli/maintenancewindow.rb
243
282
  - lib/wavefront-cli/message.rb
244
283
  - lib/wavefront-cli/metric.rb
284
+ - lib/wavefront-cli/metricspolicy.rb
245
285
  - lib/wavefront-cli/notificant.rb
246
286
  - lib/wavefront-cli/opt_handler.rb
247
287
  - lib/wavefront-cli/output/base.rb
@@ -278,7 +318,6 @@ files:
278
318
  - lib/wavefront-cli/write.rb
279
319
  - spec/.rubocop.yml
280
320
  - spec/constants.rb
281
- - spec/spec_helper.rb
282
321
  - spec/support/command_base.rb
283
322
  - spec/support/minitest_assertions.rb
284
323
  - spec/support/output_tester.rb
@@ -329,6 +368,7 @@ files:
329
368
  - spec/wavefront-cli/maintenancewindow_spec.rb
330
369
  - spec/wavefront-cli/message_spec.rb
331
370
  - spec/wavefront-cli/metric_spec.rb
371
+ - spec/wavefront-cli/metricspolicy_spec.rb
332
372
  - spec/wavefront-cli/notificant_spec.rb
333
373
  - spec/wavefront-cli/opt_handler_spec.rb
334
374
  - spec/wavefront-cli/output/csv/query_spec.rb
@@ -390,12 +430,13 @@ files:
390
430
  - spec/wavefront-cli/usage_spec.rb
391
431
  - spec/wavefront-cli/usergroup_spec.rb
392
432
  - spec/wavefront-cli/webhook_spec.rb
393
- - spec/wavefront-cli/write_spec.rb
433
+ - spec/wavefront-cli/write_class_spec.rb
394
434
  - wavefront-cli.gemspec
395
435
  homepage: https://github.com/snltd/wavefront-cli
396
436
  licenses:
397
437
  - BSD-2-Clause
398
- metadata: {}
438
+ metadata:
439
+ rubygems_mfa_required: 'true'
399
440
  post_install_message:
400
441
  rdoc_options: []
401
442
  require_paths:
@@ -404,130 +445,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
404
445
  requirements:
405
446
  - - ">="
406
447
  - !ruby/object:Gem::Version
407
- version: 2.5.0
448
+ version: 2.7.0
408
449
  required_rubygems_version: !ruby/object:Gem::Requirement
409
450
  requirements:
410
451
  - - ">="
411
452
  - !ruby/object:Gem::Version
412
453
  version: '0'
413
454
  requirements: []
414
- rubygems_version: 3.0.8
455
+ rubygems_version: 3.4.1
415
456
  signing_key:
416
457
  specification_version: 4
417
458
  summary: CLI for Wavefront API v2
418
- test_files:
419
- - spec/.rubocop.yml
420
- - spec/constants.rb
421
- - spec/spec_helper.rb
422
- - spec/support/command_base.rb
423
- - spec/support/minitest_assertions.rb
424
- - spec/support/output_tester.rb
425
- - spec/support/supported_commands.rb
426
- - spec/test_mixins/acl.rb
427
- - spec/test_mixins/delete.rb
428
- - spec/test_mixins/deleteundelete.rb
429
- - spec/test_mixins/describe.rb
430
- - spec/test_mixins/dump.rb
431
- - spec/test_mixins/general.rb
432
- - spec/test_mixins/history.rb
433
- - spec/test_mixins/import.rb
434
- - spec/test_mixins/list.rb
435
- - spec/test_mixins/search.rb
436
- - spec/test_mixins/set.rb
437
- - spec/test_mixins/tag.rb
438
- - spec/wavefront-cli/account_spec.rb
439
- - spec/wavefront-cli/alert_spec.rb
440
- - spec/wavefront-cli/apitoken_spec.rb
441
- - spec/wavefront-cli/base_spec.rb
442
- - spec/wavefront-cli/cloudintegration_spec.rb
443
- - spec/wavefront-cli/commands/alert_spec.rb
444
- - spec/wavefront-cli/commands/base_spec.rb
445
- - spec/wavefront-cli/commands/cloudintegration_spec.rb
446
- - spec/wavefront-cli/commands/config_spec.rb
447
- - spec/wavefront-cli/commands/dashboard_spec.rb
448
- - spec/wavefront-cli/commands/derivedmetric_spec.rb
449
- - spec/wavefront-cli/commands/event_spec.rb
450
- - spec/wavefront-cli/commands/link_spec.rb
451
- - spec/wavefront-cli/commands/message_spec.rb
452
- - spec/wavefront-cli/commands/metric_spec.rb
453
- - spec/wavefront-cli/commands/proxy_spec.rb
454
- - spec/wavefront-cli/commands/query_spec.rb
455
- - spec/wavefront-cli/commands/webhook_spec.rb
456
- - spec/wavefront-cli/commands/window_spec.rb
457
- - spec/wavefront-cli/commands/write_spec.rb
458
- - spec/wavefront-cli/config_spec.rb
459
- - spec/wavefront-cli/controller_spec.rb
460
- - spec/wavefront-cli/dashboard_spec.rb
461
- - spec/wavefront-cli/derivedmetric_spec.rb
462
- - spec/wavefront-cli/display/base_spec.rb
463
- - spec/wavefront-cli/display/printer/long_spec.rb
464
- - spec/wavefront-cli/display/printer/terse_spec.rb
465
- - spec/wavefront-cli/event_spec.rb
466
- - spec/wavefront-cli/event_store_spec.rb
467
- - spec/wavefront-cli/externallink_spec.rb
468
- - spec/wavefront-cli/integration_spec.rb
469
- - spec/wavefront-cli/maintenancewindow_spec.rb
470
- - spec/wavefront-cli/message_spec.rb
471
- - spec/wavefront-cli/metric_spec.rb
472
- - spec/wavefront-cli/notificant_spec.rb
473
- - spec/wavefront-cli/opt_handler_spec.rb
474
- - spec/wavefront-cli/output/csv/query_spec.rb
475
- - spec/wavefront-cli/output/csv_spec.rb
476
- - spec/wavefront-cli/output/hcl_spec.rb
477
- - spec/wavefront-cli/output/helpers.rb
478
- - spec/wavefront-cli/output/json_spec.rb
479
- - spec/wavefront-cli/output/ruby_spec.rb
480
- - spec/wavefront-cli/output/wavefront/query_spec.rb
481
- - spec/wavefront-cli/output/wavefront_spec.rb
482
- - spec/wavefront-cli/output/yaml_spec.rb
483
- - spec/wavefront-cli/proxy_spec.rb
484
- - spec/wavefront-cli/query_spec.rb
485
- - spec/wavefront-cli/resources/display/alert-human-long
486
- - spec/wavefront-cli/resources/display/alert-input.json
487
- - spec/wavefront-cli/resources/display/alerts-human-terse
488
- - spec/wavefront-cli/resources/display/alerts-input.json
489
- - spec/wavefront-cli/resources/display/user-human-long
490
- - spec/wavefront-cli/resources/display/user-human-long-no_sep
491
- - spec/wavefront-cli/resources/display/user-input.json
492
- - spec/wavefront-cli/resources/imports/alert.json
493
- - spec/wavefront-cli/resources/imports/dashboard.json
494
- - spec/wavefront-cli/resources/imports/derivedmetric.json
495
- - spec/wavefront-cli/resources/imports/notificant.json
496
- - spec/wavefront-cli/resources/imports/window.json
497
- - spec/wavefront-cli/resources/malformed.conf
498
- - spec/wavefront-cli/resources/responses/README.md
499
- - spec/wavefront-cli/resources/responses/alert-list.json
500
- - spec/wavefront-cli/resources/responses/backups.json
501
- - spec/wavefront-cli/resources/responses/cloudintegration-list.json
502
- - spec/wavefront-cli/resources/responses/dashboard-list.json
503
- - spec/wavefront-cli/resources/responses/derivedmetric-list.json
504
- - spec/wavefront-cli/resources/responses/event-list.json
505
- - spec/wavefront-cli/resources/responses/integration-list.json
506
- - spec/wavefront-cli/resources/responses/link-list.json
507
- - spec/wavefront-cli/resources/responses/notificant-list.json
508
- - spec/wavefront-cli/resources/responses/proxy-list.json
509
- - spec/wavefront-cli/resources/responses/query-cpu.json
510
- - spec/wavefront-cli/resources/responses/query.json
511
- - spec/wavefront-cli/resources/responses/savedsearch-list.json
512
- - spec/wavefront-cli/resources/responses/usage-export-csv.json
513
- - spec/wavefront-cli/resources/responses/user-validate.json
514
- - spec/wavefront-cli/resources/responses/usergroup-list.json
515
- - spec/wavefront-cli/resources/responses/webhook-list.json
516
- - spec/wavefront-cli/resources/responses/window-list.json
517
- - spec/wavefront-cli/resources/sample_query_response.json
518
- - spec/wavefront-cli/resources/sample_raw_query_response.json
519
- - spec/wavefront-cli/resources/updates/alert.json
520
- - spec/wavefront-cli/resources/updates/dashboard.json
521
- - spec/wavefront-cli/resources/wavefront.conf
522
- - spec/wavefront-cli/role_spec.rb
523
- - spec/wavefront-cli/savedsearch_spec.rb
524
- - spec/wavefront-cli/serviceaccount_spec.rb
525
- - spec/wavefront-cli/settings_spec.rb
526
- - spec/wavefront-cli/source_spec.rb
527
- - spec/wavefront-cli/spy_spec.rb
528
- - spec/wavefront-cli/stdlib/array_spec.rb
529
- - spec/wavefront-cli/stdlib/string_spec.rb
530
- - spec/wavefront-cli/usage_spec.rb
531
- - spec/wavefront-cli/usergroup_spec.rb
532
- - spec/wavefront-cli/webhook_spec.rb
533
- - spec/wavefront-cli/write_spec.rb
459
+ test_files: []
data/.travis.yml DELETED
@@ -1,20 +0,0 @@
1
- language: ruby
2
- cache: bundler
3
- rvm:
4
- - 2.5.8
5
- - 2.6.6
6
- - 2.7.1
7
- before_install: gem install bundler --no-document
8
- deploy:
9
- provider: rubygems
10
- api_key:
11
- secure: dpVC480pAmGQrkEeugPowxhYzM8Er9UDhY02u2P5ytrCXC9J05uGKvN8uZ6H8SJr1ZKUb7OGxCq+EVKrA/q1s6Cv07Xl9u1HiOR0cB4ZUW3wBl6TGdl7c/rcor5AQxjELTcWnhCJvTzB+i46a1s4AcWjGBIVEY7/b1iloj/Sm0U43UZPcWPaIl5xfnANBk6v9F5eEfQy5IXlQUQKtRLXzgyqwyJi7DQcNcnEXA0O33KKwka7QDQsycYE7axEiJGOBt0PbYiRUXRZBxKWnsrtq9Sk9QukYsZSQqZgkykV6ImvMYzWI/vUwDRl+dJWmyAG6K2mz4kqMjhiMkB4ctbj5sxDG1BzsBlNTTEb0P8PGBEYgcf4VBd7XDlEt0Sythp6ztn9EVtw35M22n5Q7sdgalf6TFrzQpp9sec3o4AqO3IXUIqRN4VD4vPRQVBJHcwFOuZ3EUO0VekUzCUO3R/mG4oHUIQ9VgRzrUuyYpCwuwWyoVKVA/AukHHW6Y7El2g+JlpP+ijf0ABpqusHENELVWnuCRcv36sxbyM6Rbt2JrT9FrG1oSAELz4yMS86Qhq104II89d6apGJT3thUH8n9m2KA16DmxQYXkNamfygCn3D5ogC2gcIgVicQnJma+405Pv43/a+PaKy/oKr3/H7IJJmoqHfiMyG9DtkFTWQrfA=
12
- gem: wavefront-cli
13
- on:
14
- tags: true
15
- repo: snltd/wavefront-cli
16
- ruby: 2.6.6
17
- notifications:
18
- email: false
19
- slack:
20
- secure: YrwfBiBscjUCHZIyPHH/FEm5VbHZN3AczHnlOJfETsAdsVpM+JOvHnoCaY0AGjvCvmFMPE9yg11yhwMfXZJVwjAC6b75VrXoCFIvC1tjLqFizuI4VBZXUZk3CQZK0pIh1ZRYVINa0LuYLDyxF0EG2N9KTYqQcMEsBwsVohsca+zjbjyIW5H0FeVWJC4QlFqVHBwFHvylfHnPjh0pQAn3sE9j7Of3W2HQVM753/lsOkMf3sHYOv8AOrzjTNqyrageTxUGnO91S41DirNdesrjF8Qg+/s1RSiNeYSZLkqI2pk+3sdkMkpA+2z2zQ/ZbgudS/38AVlh2Wb2KkmFw0+XhdpUGqQZgLlgWMDKoiS7j2dNQ3zA4guCZIQSW6gqR76wTUqeCZQ3UNalChAhACFnG0FmZj+AIE72r28dOH747zKEmTaoJt5FR7GlSoG6cH1EV9qTeIjZ/33ehL703E6qrWITjQ6VrNrPsTCt8rvoW2MV8TP9qb32JVJqWxabqUMBicIWLEeDjPyAmOZs32cWwfk9zcJ6hIJcFffkxgVJN0vU6Qi4tGWUmYK12EIclVgrKgvN1yHUrUN/r7+sUPX9WRj82RNFU6RSPircekV9oWj9Hr8A2imnFqiMTnPpSb56y02cG9FbwFPqxLSaNNV4lALzoBmluKv0RSeEWhRvrGI=