wavefront-cli 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (82) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +20 -0
  3. data/.gitignore +4 -0
  4. data/.travis.yml +16 -0
  5. data/Gemfile +2 -0
  6. data/Gemfile.lock +65 -0
  7. data/README.md +221 -0
  8. data/Rakefile +18 -0
  9. data/bin/wavefront +14 -0
  10. data/lib/wavefront-cli/alert.rb +60 -0
  11. data/lib/wavefront-cli/base.rb +320 -0
  12. data/lib/wavefront-cli/cloudintegration.rb +12 -0
  13. data/lib/wavefront-cli/commands/alert.rb +38 -0
  14. data/lib/wavefront-cli/commands/base.rb +105 -0
  15. data/lib/wavefront-cli/commands/dashboard.rb +29 -0
  16. data/lib/wavefront-cli/commands/event.rb +44 -0
  17. data/lib/wavefront-cli/commands/integration.rb +33 -0
  18. data/lib/wavefront-cli/commands/link.rb +34 -0
  19. data/lib/wavefront-cli/commands/message.rb +23 -0
  20. data/lib/wavefront-cli/commands/metric.rb +20 -0
  21. data/lib/wavefront-cli/commands/proxy.rb +25 -0
  22. data/lib/wavefront-cli/commands/query.rb +32 -0
  23. data/lib/wavefront-cli/commands/savedsearch.rb +32 -0
  24. data/lib/wavefront-cli/commands/source.rb +27 -0
  25. data/lib/wavefront-cli/commands/user.rb +24 -0
  26. data/lib/wavefront-cli/commands/webhook.rb +25 -0
  27. data/lib/wavefront-cli/commands/window.rb +33 -0
  28. data/lib/wavefront-cli/commands/write.rb +35 -0
  29. data/lib/wavefront-cli/constants.rb +17 -0
  30. data/lib/wavefront-cli/controller.rb +134 -0
  31. data/lib/wavefront-cli/dashboard.rb +27 -0
  32. data/lib/wavefront-cli/display/alert.rb +44 -0
  33. data/lib/wavefront-cli/display/base.rb +304 -0
  34. data/lib/wavefront-cli/display/cloudintegration.rb +18 -0
  35. data/lib/wavefront-cli/display/dashboard.rb +21 -0
  36. data/lib/wavefront-cli/display/event.rb +19 -0
  37. data/lib/wavefront-cli/display/externallink.rb +13 -0
  38. data/lib/wavefront-cli/display/maintenancewindow.rb +19 -0
  39. data/lib/wavefront-cli/display/message.rb +8 -0
  40. data/lib/wavefront-cli/display/metric.rb +22 -0
  41. data/lib/wavefront-cli/display/proxy.rb +13 -0
  42. data/lib/wavefront-cli/display/query.rb +69 -0
  43. data/lib/wavefront-cli/display/savedsearch.rb +17 -0
  44. data/lib/wavefront-cli/display/source.rb +26 -0
  45. data/lib/wavefront-cli/display/user.rb +16 -0
  46. data/lib/wavefront-cli/display/webhook.rb +24 -0
  47. data/lib/wavefront-cli/display/write.rb +19 -0
  48. data/lib/wavefront-cli/event.rb +162 -0
  49. data/lib/wavefront-cli/exception.rb +5 -0
  50. data/lib/wavefront-cli/externallink.rb +16 -0
  51. data/lib/wavefront-cli/maintenancewindow.rb +16 -0
  52. data/lib/wavefront-cli/message.rb +19 -0
  53. data/lib/wavefront-cli/metric.rb +24 -0
  54. data/lib/wavefront-cli/opt_handler.rb +62 -0
  55. data/lib/wavefront-cli/proxy.rb +22 -0
  56. data/lib/wavefront-cli/query.rb +74 -0
  57. data/lib/wavefront-cli/savedsearch.rb +24 -0
  58. data/lib/wavefront-cli/source.rb +20 -0
  59. data/lib/wavefront-cli/user.rb +25 -0
  60. data/lib/wavefront-cli/version.rb +1 -0
  61. data/lib/wavefront-cli/webhook.rb +8 -0
  62. data/lib/wavefront-cli/write.rb +244 -0
  63. data/spec/spec_helper.rb +197 -0
  64. data/spec/wavefront-cli/alert_spec.rb +44 -0
  65. data/spec/wavefront-cli/base_spec.rb +47 -0
  66. data/spec/wavefront-cli/cli_help_spec.rb +47 -0
  67. data/spec/wavefront-cli/cloudintegration_spec.rb +24 -0
  68. data/spec/wavefront-cli/dashboard_spec.rb +37 -0
  69. data/spec/wavefront-cli/event_spec.rb +19 -0
  70. data/spec/wavefront-cli/externallink_spec.rb +18 -0
  71. data/spec/wavefront-cli/maintanancewindow_spec.rb +19 -0
  72. data/spec/wavefront-cli/message_spec.rb +28 -0
  73. data/spec/wavefront-cli/metric_spec.rb +22 -0
  74. data/spec/wavefront-cli/proxy_spec.rb +26 -0
  75. data/spec/wavefront-cli/query_spec.rb +63 -0
  76. data/spec/wavefront-cli/resources/conf.yaml +10 -0
  77. data/spec/wavefront-cli/savedsearch_spec.rb +18 -0
  78. data/spec/wavefront-cli/source_spec.rb +18 -0
  79. data/spec/wavefront-cli/user_spec.rb +31 -0
  80. data/spec/wavefront-cli/webhook_spec.rb +17 -0
  81. data/wavefront-cli.gemspec +36 -0
  82. metadata +279 -0
@@ -0,0 +1,28 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = 'message123'
4
+ bad_id = '(>_<)'
5
+ word = 'message'
6
+
7
+ require_relative '../spec_helper'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+
10
+ describe "#{word} command" do
11
+ missing_creds(word, ['list', "mark #{id}"])
12
+
13
+ cmd_to_call(word, 'list',
14
+ path: "/api/v2/#{word}?limit=100&offset=0&unreadOnly=true")
15
+ cmd_to_call(word, 'list -L 50',
16
+ path: "/api/v2/#{word}?limit=50&offset=0&unreadOnly=true")
17
+ cmd_to_call(word, 'list -L 20 -o 8 -a',
18
+ path: "/api/v2/#{word}?limit=20&offset=8&unreadOnly=false")
19
+ cmd_to_call(word, 'list -a -o 60',
20
+ path: "/api/v2/#{word}?limit=100&offset=60&unreadOnly=false")
21
+ cmd_to_call(word, 'list -a',
22
+ path: "/api/v2/#{word}?offset=0&limit=100&unreadOnly=false")
23
+ cmd_to_call(word, 'list -L 50 -a',
24
+ path: "/api/v2/#{word}?offset=0&limit=50&unreadOnly=false")
25
+ cmd_to_call(word, "mark #{id}",
26
+ method: :post, path: "/api/v2/#{word}/#{id}/read")
27
+ invalid_ids(word, ["mark #{bad_id}"])
28
+ end
@@ -0,0 +1,22 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = 'dev.cli.test'
4
+ bad_id = '(>_<)'
5
+ word = 'metric'
6
+
7
+ require_relative '../spec_helper'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+
10
+ describe "#{word} command" do
11
+ missing_creds(word, ["describe #{id}"])
12
+ cmd_to_call(word, "describe #{id}",
13
+ path: "/api/v2/chart/#{word}/detail?m=#{id}")
14
+ cmd_to_call(word, "describe -g ptn1 #{id}",
15
+ path: "/api/v2/chart/#{word}/detail?m=#{id}&h=ptn1")
16
+ cmd_to_call(word, "describe -g ptn1 -g ptn2 #{id}",
17
+ path: "/api/v2/chart/#{word}/detail?m=#{id}&h=ptn1&h=ptn2")
18
+ cmd_to_call(word, "describe -g ptn1 -g ptn2 -o 10 #{id}",
19
+ path: "/api/v2/chart/#{word}/detail?m=#{id}&h=ptn1&h=ptn2&c=10")
20
+
21
+ invalid_ids(word, ["describe #{bad_id}"])
22
+ end
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = 'fd248f53-378e-4fbe-bbd3-efabace8d724'
4
+ bad_id = '__bad_id__'
5
+ word = 'proxy'
6
+
7
+ require_relative '../spec_helper'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+
10
+ describe "#{word} command" do
11
+ missing_creds(word, ['list', "describe #{id}", "delete #{id}",
12
+ "undelete #{id}", "rename #{id} newname"])
13
+ list_tests(word)
14
+ cmd_to_call(word, "describe #{id}", path: "/api/v2/#{word}/#{id}")
15
+ cmd_to_call(word, "rename #{id} newname",
16
+ method: :put,
17
+ path: "/api/v2/#{word}/#{id}",
18
+ body: { name: 'newname' }.to_json)
19
+ cmd_to_call(word, "delete #{id}",
20
+ method: :delete, path: "/api/v2/#{word}/#{id}")
21
+ cmd_to_call(word, "undelete #{id}",
22
+ method: :post, path: "/api/v2/#{word}/#{id}/undelete")
23
+ invalid_ids(word, ["describe #{bad_id}", "delete #{bad_id}",
24
+ "undelete #{bad_id}", "rename #{bad_id} newname"])
25
+ invalid_something(word, ["rename #{id} '(>_<)'"], 'proxy name')
26
+ end
@@ -0,0 +1,63 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ word = 'query'
4
+
5
+ require_relative '../spec_helper'
6
+ require_relative "../../lib/wavefront-cli/#{word}"
7
+ require 'wavefront-sdk/mixins'
8
+ include Wavefront::Mixins
9
+
10
+ q = 'ts("dev.cli.test")'
11
+ t1 = parse_time('12:00', true)
12
+ t2 = parse_time('12:10', true)
13
+ o = '-g m -s 12:00'
14
+
15
+ describe "#{word} command" do
16
+ missing_creds(word, ["-g m -s 12:00 '#{q}'", "raw #{q}"])
17
+
18
+ cmd_to_call(word, "#{o} #{q}",
19
+ path: '/api/v2/chart/api?g=m&i=false&listMode=true' \
20
+ "&q=ts(%22dev.cli.test%22)&s=#{t1}&sorted=true" \
21
+ '&strict=true&summarization=mean')
22
+ cmd_to_call(word, "#{o} -e 12:10 #{q}",
23
+ path: "/api/v2/chart/api?e=#{t2}&g=m&i=false" \
24
+ '&listMode=true&q=ts(%22dev.cli.test%22)' \
25
+ "&s=#{t1}&sorted=true&strict=true&summarization=mean")
26
+
27
+ cmd_to_call(word, "-g s -s 12:00 -e 12:10 -S max #{q}",
28
+ path: "/api/v2/chart/api?e=#{t2}&g=s&i=false" \
29
+ '&listMode=true&q=ts(%22dev.cli.test%22)' \
30
+ "&s=#{t1}&sorted=true&strict=true&summarization=max")
31
+
32
+ cmd_to_call(word, "-g s -s 12:00 -e 12:10 -p 100 #{q}",
33
+ path: "/api/v2/chart/api?e=#{t2}&g=s&i=false" \
34
+ '&listMode=true&q=ts(%22dev.cli.test%22)' \
35
+ "&s=#{t1}&sorted=true&summarization=mean&strict=true" \
36
+ '&p=100')
37
+
38
+ cmd_to_call(word, "-iO -g h -s 12:00 -e 12:10 -p 100 #{q}",
39
+ path: "/api/v2/chart/api?e=#{t2}&g=h&i=true" \
40
+ '&listMode=true&q=ts(%22dev.cli.test%22)' \
41
+ "&s=#{t1}&sorted=true&summarization=mean" \
42
+ '&strict=true&p=100&includeObsoleteMetrics=true')
43
+
44
+ cmd_to_call(word, "-N query -g h -s 12:00 -e 12:10 -p 100 #{q}",
45
+ path: "/api/v2/chart/api?e=#{t2}&g=h&i=false" \
46
+ '&listMode=true&q=ts(%22dev.cli.test%22)' \
47
+ "&s=#{t1}&sorted=true&summarization=mean" \
48
+ '&strict=true&p=100&n=query')
49
+
50
+ cmd_to_call(word, 'raw dev.cli.test',
51
+ path: '/api/v2/chart/raw?metric=dev.cli.test')
52
+
53
+ cmd_to_call(word, 'raw -H h1 dev.cli.test',
54
+ path: '/api/v2/chart/raw?metric=dev.cli.test&source=h1')
55
+
56
+ cmd_to_call(word, 'raw -s 12:00 -H h1 dev.cli.test',
57
+ path: '/api/v2/chart/raw?metric=dev.cli.test&source=h1' \
58
+ "&startTime=#{t1}")
59
+
60
+ cmd_to_call(word, 'raw -s 12:00 -e 12:10 -H h1 dev.cli.test',
61
+ path: '/api/v2/chart/raw?metric=dev.cli.test&source=h1' \
62
+ "&startTime=#{t1}&endTime=#{t2}")
63
+ end
@@ -0,0 +1,10 @@
1
+ [default]
2
+ token = 12345678-abcd-1234-abcd-123456789012
3
+ endpoint = default.wavefront.com
4
+ proxy = wavefront.localnet
5
+ sourceformat = raw
6
+
7
+ [other]
8
+ token = abcdefab-0123-abcd-0123-abcdefabcdef
9
+ endpoint = other.wavefront.com
10
+ proxy = otherwf.localnet
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative '../spec_helper'
4
+
5
+ id = '4rUipOK3'
6
+ bad_id = '__BAD__'
7
+ word = 'savedsearch'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+ k = WavefrontCli::SavedSearch
10
+
11
+ describe "#{word} command" do
12
+ missing_creds(word, ['list', "describe #{id}", "delete #{id}"])
13
+ list_tests(word, 'savedsearch', k)
14
+ cmd_to_call(word, "describe #{id}", { path: "/api/v2/#{word}/#{id}" }, k)
15
+ cmd_to_call(word, "delete #{id}",
16
+ { method: :delete, path: "/api/v2/#{word}/#{id}" }, k)
17
+ invalid_ids(word, ["describe #{bad_id}", "delete #{bad_id}"])
18
+ end
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = '74a247a9-f67c-43ad-911f-fabafa9dc2f3joyent'
4
+ bad_id = '(>_<)'
5
+ word = 'source'
6
+
7
+ require_relative '../spec_helper'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+
10
+ describe "#{word} command" do
11
+ missing_creds(word, ['list', "describe #{id}", "clear #{id}"])
12
+ list_tests(word)
13
+ cmd_to_call(word, "describe #{id}", path: "/api/v2/#{word}/#{id}")
14
+ cmd_to_call(word, "clear #{id}",
15
+ method: :delete, path: "/api/v2/#{word}/#{id}")
16
+ invalid_ids(word, ["describe #{bad_id}", "clear #{bad_id}"])
17
+ tag_tests(word, id, bad_id)
18
+ end
@@ -0,0 +1,31 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = 'someone@somewhere.com'
4
+ bad_id = '__BAD__'
5
+ word = 'user'
6
+
7
+
8
+ require_relative '../spec_helper'
9
+ require_relative "../../lib/wavefront-cli/#{word}"
10
+
11
+ describe "#{word} command" do
12
+ hdrs = JSON_POST_HEADERS.merge(
13
+ 'Content-Type': 'application/x-www-form-urlencoded')
14
+
15
+ missing_creds(word, ['list', "describe #{id}", "delete #{id}"])
16
+ cmd_to_call(word, 'list', path: "/api/v2/#{word}")
17
+ cmd_to_call(word, "describe #{id}", path: "/api/v2/#{word}/#{id}")
18
+ cmd_to_call(word, "delete #{id}", method: :delete,
19
+ path: "/api/v2/#{word}/#{id}")
20
+ cmd_to_call(word, "grant agent_management to #{id}",
21
+ method: :post, path: "/api/v2/#{word}/#{id}/grant",
22
+ body: 'group=agent_management',
23
+ headers: hdrs)
24
+
25
+ cmd_to_call(word, "revoke agent_management from #{id}",
26
+ method: :post, path: "/api/v2/#{word}/#{id}/revoke",
27
+ body: 'group=agent_management',
28
+ headers: hdrs)
29
+
30
+ invalid_ids(word, ["describe #{bad_id}", "delete #{bad_id}"])
31
+ end
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ id = '9095WaGklE8Gy3M1'
4
+ bad_id = '__BAD__'
5
+ word = 'webhook'
6
+
7
+ require_relative '../spec_helper'
8
+ require_relative "../../lib/wavefront-cli/#{word}"
9
+
10
+ describe "#{word} command" do
11
+ missing_creds(word, ['list', "describe #{id}", "delete #{id}"])
12
+ list_tests(word)
13
+ cmd_to_call(word, "describe #{id}", path: "/api/v2/#{word}/#{id}")
14
+ cmd_to_call(word, "delete #{id}", method: :delete,
15
+ path: "/api/v2/#{word}/#{id}")
16
+ invalid_ids(word, ["describe #{bad_id}", "delete #{bad_id}"])
17
+ end
@@ -0,0 +1,36 @@
1
+ require 'pathname'
2
+ require 'date'
3
+ require 'English'
4
+
5
+ require_relative 'lib/wavefront-cli/version'
6
+
7
+ Gem::Specification.new do |gem|
8
+ gem.name = 'wavefront-cli'
9
+ gem.version = WF_CLI_VERSION
10
+ gem.date = Date.today.to_s
11
+
12
+ gem.summary = 'CLI for Wavefront API v2'
13
+ gem.description = 'CLI for Wavefront (wavefront.com) API v2 '
14
+
15
+ gem.authors = ['Robert Fisher']
16
+ gem.email = 'slackboy@gmail.com'
17
+ gem.homepage = 'https://github.com/snltd/wavefront-cli'
18
+ gem.license = 'BSD-2-Clause'
19
+
20
+ gem.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
21
+ gem.test_files = gem.files.grep(/^spec/)
22
+ gem.require_paths = %w(lib)
23
+
24
+ gem.add_runtime_dependency 'docopt', '0.5.0'
25
+ gem.add_runtime_dependency 'wavefront-sdk', '~> 0.1.5'
26
+
27
+ gem.add_development_dependency 'bundler', '~> 1.3'
28
+ gem.add_development_dependency 'rake', '~> 12.0'
29
+ gem.add_development_dependency 'yard', '~> 0.9.5'
30
+ gem.add_development_dependency 'rubocop', '~> 0.47.0'
31
+ gem.add_development_dependency 'webmock', '~> 2.3', '>= 2.3.2'
32
+ gem.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.0'
33
+ gem.add_development_dependency 'spy', '~> 0.4.0'
34
+
35
+ gem.required_ruby_version = Gem::Requirement.new('>= 2.2.0')
36
+ end
metadata ADDED
@@ -0,0 +1,279 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: wavefront-cli
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Robert Fisher
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-06-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: docopt
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 0.5.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 0.5.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: wavefront-sdk
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.1.5
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.1.5
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '12.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '12.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: yard
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: 0.9.5
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: 0.9.5
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 0.47.0
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 0.47.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: webmock
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '2.3'
104
+ - - ">="
105
+ - !ruby/object:Gem::Version
106
+ version: 2.3.2
107
+ type: :development
108
+ prerelease: false
109
+ version_requirements: !ruby/object:Gem::Requirement
110
+ requirements:
111
+ - - "~>"
112
+ - !ruby/object:Gem::Version
113
+ version: '2.3'
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ version: 2.3.2
117
+ - !ruby/object:Gem::Dependency
118
+ name: minitest
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
122
+ - !ruby/object:Gem::Version
123
+ version: '5.8'
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ version: 5.8.0
127
+ type: :development
128
+ prerelease: false
129
+ version_requirements: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - "~>"
132
+ - !ruby/object:Gem::Version
133
+ version: '5.8'
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 5.8.0
137
+ - !ruby/object:Gem::Dependency
138
+ name: spy
139
+ requirement: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - "~>"
142
+ - !ruby/object:Gem::Version
143
+ version: 0.4.0
144
+ type: :development
145
+ prerelease: false
146
+ version_requirements: !ruby/object:Gem::Requirement
147
+ requirements:
148
+ - - "~>"
149
+ - !ruby/object:Gem::Version
150
+ version: 0.4.0
151
+ description: 'CLI for Wavefront (wavefront.com) API v2 '
152
+ email: slackboy@gmail.com
153
+ executables: []
154
+ extensions: []
155
+ extra_rdoc_files: []
156
+ files:
157
+ - ".codeclimate.yml"
158
+ - ".gitignore"
159
+ - ".travis.yml"
160
+ - Gemfile
161
+ - Gemfile.lock
162
+ - README.md
163
+ - Rakefile
164
+ - bin/wavefront
165
+ - lib/wavefront-cli/alert.rb
166
+ - lib/wavefront-cli/base.rb
167
+ - lib/wavefront-cli/cloudintegration.rb
168
+ - lib/wavefront-cli/commands/alert.rb
169
+ - lib/wavefront-cli/commands/base.rb
170
+ - lib/wavefront-cli/commands/dashboard.rb
171
+ - lib/wavefront-cli/commands/event.rb
172
+ - lib/wavefront-cli/commands/integration.rb
173
+ - lib/wavefront-cli/commands/link.rb
174
+ - lib/wavefront-cli/commands/message.rb
175
+ - lib/wavefront-cli/commands/metric.rb
176
+ - lib/wavefront-cli/commands/proxy.rb
177
+ - lib/wavefront-cli/commands/query.rb
178
+ - lib/wavefront-cli/commands/savedsearch.rb
179
+ - lib/wavefront-cli/commands/source.rb
180
+ - lib/wavefront-cli/commands/user.rb
181
+ - lib/wavefront-cli/commands/webhook.rb
182
+ - lib/wavefront-cli/commands/window.rb
183
+ - lib/wavefront-cli/commands/write.rb
184
+ - lib/wavefront-cli/constants.rb
185
+ - lib/wavefront-cli/controller.rb
186
+ - lib/wavefront-cli/dashboard.rb
187
+ - lib/wavefront-cli/display/alert.rb
188
+ - lib/wavefront-cli/display/base.rb
189
+ - lib/wavefront-cli/display/cloudintegration.rb
190
+ - lib/wavefront-cli/display/dashboard.rb
191
+ - lib/wavefront-cli/display/event.rb
192
+ - lib/wavefront-cli/display/externallink.rb
193
+ - lib/wavefront-cli/display/maintenancewindow.rb
194
+ - lib/wavefront-cli/display/message.rb
195
+ - lib/wavefront-cli/display/metric.rb
196
+ - lib/wavefront-cli/display/proxy.rb
197
+ - lib/wavefront-cli/display/query.rb
198
+ - lib/wavefront-cli/display/savedsearch.rb
199
+ - lib/wavefront-cli/display/source.rb
200
+ - lib/wavefront-cli/display/user.rb
201
+ - lib/wavefront-cli/display/webhook.rb
202
+ - lib/wavefront-cli/display/write.rb
203
+ - lib/wavefront-cli/event.rb
204
+ - lib/wavefront-cli/exception.rb
205
+ - lib/wavefront-cli/externallink.rb
206
+ - lib/wavefront-cli/maintenancewindow.rb
207
+ - lib/wavefront-cli/message.rb
208
+ - lib/wavefront-cli/metric.rb
209
+ - lib/wavefront-cli/opt_handler.rb
210
+ - lib/wavefront-cli/proxy.rb
211
+ - lib/wavefront-cli/query.rb
212
+ - lib/wavefront-cli/savedsearch.rb
213
+ - lib/wavefront-cli/source.rb
214
+ - lib/wavefront-cli/user.rb
215
+ - lib/wavefront-cli/version.rb
216
+ - lib/wavefront-cli/webhook.rb
217
+ - lib/wavefront-cli/write.rb
218
+ - spec/spec_helper.rb
219
+ - spec/wavefront-cli/alert_spec.rb
220
+ - spec/wavefront-cli/base_spec.rb
221
+ - spec/wavefront-cli/cli_help_spec.rb
222
+ - spec/wavefront-cli/cloudintegration_spec.rb
223
+ - spec/wavefront-cli/dashboard_spec.rb
224
+ - spec/wavefront-cli/event_spec.rb
225
+ - spec/wavefront-cli/externallink_spec.rb
226
+ - spec/wavefront-cli/maintanancewindow_spec.rb
227
+ - spec/wavefront-cli/message_spec.rb
228
+ - spec/wavefront-cli/metric_spec.rb
229
+ - spec/wavefront-cli/proxy_spec.rb
230
+ - spec/wavefront-cli/query_spec.rb
231
+ - spec/wavefront-cli/resources/conf.yaml
232
+ - spec/wavefront-cli/savedsearch_spec.rb
233
+ - spec/wavefront-cli/source_spec.rb
234
+ - spec/wavefront-cli/user_spec.rb
235
+ - spec/wavefront-cli/webhook_spec.rb
236
+ - wavefront-cli.gemspec
237
+ homepage: https://github.com/snltd/wavefront-cli
238
+ licenses:
239
+ - BSD-2-Clause
240
+ metadata: {}
241
+ post_install_message:
242
+ rdoc_options: []
243
+ require_paths:
244
+ - lib
245
+ required_ruby_version: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - ">="
248
+ - !ruby/object:Gem::Version
249
+ version: 2.2.0
250
+ required_rubygems_version: !ruby/object:Gem::Requirement
251
+ requirements:
252
+ - - ">="
253
+ - !ruby/object:Gem::Version
254
+ version: '0'
255
+ requirements: []
256
+ rubyforge_project:
257
+ rubygems_version: 2.5.2
258
+ signing_key:
259
+ specification_version: 4
260
+ summary: CLI for Wavefront API v2
261
+ test_files:
262
+ - spec/spec_helper.rb
263
+ - spec/wavefront-cli/alert_spec.rb
264
+ - spec/wavefront-cli/base_spec.rb
265
+ - spec/wavefront-cli/cli_help_spec.rb
266
+ - spec/wavefront-cli/cloudintegration_spec.rb
267
+ - spec/wavefront-cli/dashboard_spec.rb
268
+ - spec/wavefront-cli/event_spec.rb
269
+ - spec/wavefront-cli/externallink_spec.rb
270
+ - spec/wavefront-cli/maintanancewindow_spec.rb
271
+ - spec/wavefront-cli/message_spec.rb
272
+ - spec/wavefront-cli/metric_spec.rb
273
+ - spec/wavefront-cli/proxy_spec.rb
274
+ - spec/wavefront-cli/query_spec.rb
275
+ - spec/wavefront-cli/resources/conf.yaml
276
+ - spec/wavefront-cli/savedsearch_spec.rb
277
+ - spec/wavefront-cli/source_spec.rb
278
+ - spec/wavefront-cli/user_spec.rb
279
+ - spec/wavefront-cli/webhook_spec.rb