wavefront-sdk 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +20 -0
- data/.gitignore +4 -0
- data/.rubocop.yml +1157 -0
- data/.travis.yml +16 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +58 -0
- data/LICENSE.txt +27 -0
- data/README.md +103 -0
- data/Rakefile +18 -0
- data/lib/wavefront-sdk/alert.rb +195 -0
- data/lib/wavefront-sdk/base.rb +251 -0
- data/lib/wavefront-sdk/cloudintegration.rb +88 -0
- data/lib/wavefront-sdk/credentials.rb +79 -0
- data/lib/wavefront-sdk/dashboard.rb +157 -0
- data/lib/wavefront-sdk/event.rb +173 -0
- data/lib/wavefront-sdk/exception.rb +39 -0
- data/lib/wavefront-sdk/externallink.rb +77 -0
- data/lib/wavefront-sdk/maintenancewindow.rb +75 -0
- data/lib/wavefront-sdk/message.rb +36 -0
- data/lib/wavefront-sdk/metric.rb +52 -0
- data/lib/wavefront-sdk/mixins.rb +60 -0
- data/lib/wavefront-sdk/proxy.rb +95 -0
- data/lib/wavefront-sdk/query.rb +96 -0
- data/lib/wavefront-sdk/response.rb +56 -0
- data/lib/wavefront-sdk/savedsearch.rb +88 -0
- data/lib/wavefront-sdk/search.rb +58 -0
- data/lib/wavefront-sdk/source.rb +131 -0
- data/lib/wavefront-sdk/user.rb +108 -0
- data/lib/wavefront-sdk/validators.rb +395 -0
- data/lib/wavefront-sdk/version.rb +1 -0
- data/lib/wavefront-sdk/webhook.rb +73 -0
- data/lib/wavefront-sdk/write.rb +225 -0
- data/pkg/wavefront-client-3.5.0.gem +0 -0
- data/spec/.rubocop.yml +14 -0
- data/spec/spec_helper.rb +157 -0
- data/spec/wavefront-sdk/alert_spec.rb +83 -0
- data/spec/wavefront-sdk/base_spec.rb +88 -0
- data/spec/wavefront-sdk/cloudintegration_spec.rb +54 -0
- data/spec/wavefront-sdk/credentials_spec.rb +55 -0
- data/spec/wavefront-sdk/dashboard_spec.rb +74 -0
- data/spec/wavefront-sdk/event_spec.rb +83 -0
- data/spec/wavefront-sdk/externallink_spec.rb +65 -0
- data/spec/wavefront-sdk/maintenancewindow_spec.rb +48 -0
- data/spec/wavefront-sdk/message_spec.rb +19 -0
- data/spec/wavefront-sdk/metric_spec.rb +21 -0
- data/spec/wavefront-sdk/mixins_spec.rb +27 -0
- data/spec/wavefront-sdk/proxy_spec.rb +41 -0
- data/spec/wavefront-sdk/query_spec.rb +51 -0
- data/spec/wavefront-sdk/resources/test.conf +10 -0
- data/spec/wavefront-sdk/response_spec.rb +47 -0
- data/spec/wavefront-sdk/savedsearch_spec.rb +54 -0
- data/spec/wavefront-sdk/search_spec.rb +47 -0
- data/spec/wavefront-sdk/source_spec.rb +48 -0
- data/spec/wavefront-sdk/user_spec.rb +56 -0
- data/spec/wavefront-sdk/validators_spec.rb +238 -0
- data/spec/wavefront-sdk/webhook_spec.rb +50 -0
- data/spec/wavefront-sdk/write_spec.rb +167 -0
- data/wavefront-sdk.gemspec +34 -0
- metadata +269 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
require 'date'
|
3
|
+
require_relative 'lib/wavefront-sdk/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |gem|
|
6
|
+
gem.name = 'wavefront-sdk'
|
7
|
+
gem.version = WF_SDK_VERSION
|
8
|
+
gem.date = Date.today.to_s
|
9
|
+
|
10
|
+
gem.summary = 'SDK for Wavefront API v2'
|
11
|
+
gem.description = 'SDK for Wavefront (wavefront.com) API v2 '
|
12
|
+
|
13
|
+
gem.authors = ['Robert Fisher']
|
14
|
+
gem.email = 'slackboy@gmail.com'
|
15
|
+
gem.homepage = 'https://github.com/snltd/wavefront-sdk'
|
16
|
+
gem.license = 'BSD-2-Clause'
|
17
|
+
|
18
|
+
gem.files = `git ls-files`.split($/)
|
19
|
+
gem.test_files = gem.files.grep(/^spec/)
|
20
|
+
gem.require_paths = %w(lib)
|
21
|
+
|
22
|
+
gem.add_runtime_dependency 'faraday', '>= 0.12.1', '< 0.13'
|
23
|
+
gem.add_runtime_dependency 'inifile', '>= 3.0.0'
|
24
|
+
|
25
|
+
gem.add_development_dependency 'bundler', '~> 1.3'
|
26
|
+
gem.add_development_dependency 'rake', '~> 12.0'
|
27
|
+
gem.add_development_dependency 'yard', '~> 0.9.5'
|
28
|
+
gem.add_development_dependency 'rubocop', '~> 0.47.0'
|
29
|
+
gem.add_development_dependency 'webmock', '~> 2.3', '>= 2.3.2'
|
30
|
+
gem.add_development_dependency 'minitest', '~> 5.8', '>= 5.8.0'
|
31
|
+
gem.add_development_dependency 'spy', '~> 0.4.0'
|
32
|
+
|
33
|
+
gem.required_ruby_version = Gem::Requirement.new('>= 2.2.0')
|
34
|
+
end
|
metadata
ADDED
@@ -0,0 +1,269 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: wavefront-sdk
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Robert Fisher
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-04 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.12.1
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0.13'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 0.12.1
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0.13'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: inifile
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 3.0.0
|
40
|
+
type: :runtime
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 3.0.0
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bundler
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.3'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '1.3'
|
61
|
+
- !ruby/object:Gem::Dependency
|
62
|
+
name: rake
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
64
|
+
requirements:
|
65
|
+
- - "~>"
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
version: '12.0'
|
68
|
+
type: :development
|
69
|
+
prerelease: false
|
70
|
+
version_requirements: !ruby/object:Gem::Requirement
|
71
|
+
requirements:
|
72
|
+
- - "~>"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '12.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: yard
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 0.9.5
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.9.5
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rubocop
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 0.47.0
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 0.47.0
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: webmock
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '2.3'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 2.3.2
|
113
|
+
type: :development
|
114
|
+
prerelease: false
|
115
|
+
version_requirements: !ruby/object:Gem::Requirement
|
116
|
+
requirements:
|
117
|
+
- - "~>"
|
118
|
+
- !ruby/object:Gem::Version
|
119
|
+
version: '2.3'
|
120
|
+
- - ">="
|
121
|
+
- !ruby/object:Gem::Version
|
122
|
+
version: 2.3.2
|
123
|
+
- !ruby/object:Gem::Dependency
|
124
|
+
name: minitest
|
125
|
+
requirement: !ruby/object:Gem::Requirement
|
126
|
+
requirements:
|
127
|
+
- - "~>"
|
128
|
+
- !ruby/object:Gem::Version
|
129
|
+
version: '5.8'
|
130
|
+
- - ">="
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: 5.8.0
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '5.8'
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 5.8.0
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: spy
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: 0.4.0
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 0.4.0
|
157
|
+
description: 'SDK for Wavefront (wavefront.com) API v2 '
|
158
|
+
email: slackboy@gmail.com
|
159
|
+
executables: []
|
160
|
+
extensions: []
|
161
|
+
extra_rdoc_files: []
|
162
|
+
files:
|
163
|
+
- ".codeclimate.yml"
|
164
|
+
- ".gitignore"
|
165
|
+
- ".rubocop.yml"
|
166
|
+
- ".travis.yml"
|
167
|
+
- Gemfile
|
168
|
+
- Gemfile.lock
|
169
|
+
- LICENSE.txt
|
170
|
+
- README.md
|
171
|
+
- Rakefile
|
172
|
+
- lib/wavefront-sdk/alert.rb
|
173
|
+
- lib/wavefront-sdk/base.rb
|
174
|
+
- lib/wavefront-sdk/cloudintegration.rb
|
175
|
+
- lib/wavefront-sdk/credentials.rb
|
176
|
+
- lib/wavefront-sdk/dashboard.rb
|
177
|
+
- lib/wavefront-sdk/event.rb
|
178
|
+
- lib/wavefront-sdk/exception.rb
|
179
|
+
- lib/wavefront-sdk/externallink.rb
|
180
|
+
- lib/wavefront-sdk/maintenancewindow.rb
|
181
|
+
- lib/wavefront-sdk/message.rb
|
182
|
+
- lib/wavefront-sdk/metric.rb
|
183
|
+
- lib/wavefront-sdk/mixins.rb
|
184
|
+
- lib/wavefront-sdk/proxy.rb
|
185
|
+
- lib/wavefront-sdk/query.rb
|
186
|
+
- lib/wavefront-sdk/response.rb
|
187
|
+
- lib/wavefront-sdk/savedsearch.rb
|
188
|
+
- lib/wavefront-sdk/search.rb
|
189
|
+
- lib/wavefront-sdk/source.rb
|
190
|
+
- lib/wavefront-sdk/user.rb
|
191
|
+
- lib/wavefront-sdk/validators.rb
|
192
|
+
- lib/wavefront-sdk/version.rb
|
193
|
+
- lib/wavefront-sdk/webhook.rb
|
194
|
+
- lib/wavefront-sdk/write.rb
|
195
|
+
- pkg/wavefront-client-3.5.0.gem
|
196
|
+
- spec/.rubocop.yml
|
197
|
+
- spec/spec_helper.rb
|
198
|
+
- spec/wavefront-sdk/alert_spec.rb
|
199
|
+
- spec/wavefront-sdk/base_spec.rb
|
200
|
+
- spec/wavefront-sdk/cloudintegration_spec.rb
|
201
|
+
- spec/wavefront-sdk/credentials_spec.rb
|
202
|
+
- spec/wavefront-sdk/dashboard_spec.rb
|
203
|
+
- spec/wavefront-sdk/event_spec.rb
|
204
|
+
- spec/wavefront-sdk/externallink_spec.rb
|
205
|
+
- spec/wavefront-sdk/maintenancewindow_spec.rb
|
206
|
+
- spec/wavefront-sdk/message_spec.rb
|
207
|
+
- spec/wavefront-sdk/metric_spec.rb
|
208
|
+
- spec/wavefront-sdk/mixins_spec.rb
|
209
|
+
- spec/wavefront-sdk/proxy_spec.rb
|
210
|
+
- spec/wavefront-sdk/query_spec.rb
|
211
|
+
- spec/wavefront-sdk/resources/test.conf
|
212
|
+
- spec/wavefront-sdk/response_spec.rb
|
213
|
+
- spec/wavefront-sdk/savedsearch_spec.rb
|
214
|
+
- spec/wavefront-sdk/search_spec.rb
|
215
|
+
- spec/wavefront-sdk/source_spec.rb
|
216
|
+
- spec/wavefront-sdk/user_spec.rb
|
217
|
+
- spec/wavefront-sdk/validators_spec.rb
|
218
|
+
- spec/wavefront-sdk/webhook_spec.rb
|
219
|
+
- spec/wavefront-sdk/write_spec.rb
|
220
|
+
- wavefront-sdk.gemspec
|
221
|
+
homepage: https://github.com/snltd/wavefront-sdk
|
222
|
+
licenses:
|
223
|
+
- BSD-2-Clause
|
224
|
+
metadata: {}
|
225
|
+
post_install_message:
|
226
|
+
rdoc_options: []
|
227
|
+
require_paths:
|
228
|
+
- lib
|
229
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
230
|
+
requirements:
|
231
|
+
- - ">="
|
232
|
+
- !ruby/object:Gem::Version
|
233
|
+
version: 2.2.0
|
234
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - ">="
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '0'
|
239
|
+
requirements: []
|
240
|
+
rubyforge_project:
|
241
|
+
rubygems_version: 2.5.2
|
242
|
+
signing_key:
|
243
|
+
specification_version: 4
|
244
|
+
summary: SDK for Wavefront API v2
|
245
|
+
test_files:
|
246
|
+
- spec/.rubocop.yml
|
247
|
+
- spec/spec_helper.rb
|
248
|
+
- spec/wavefront-sdk/alert_spec.rb
|
249
|
+
- spec/wavefront-sdk/base_spec.rb
|
250
|
+
- spec/wavefront-sdk/cloudintegration_spec.rb
|
251
|
+
- spec/wavefront-sdk/credentials_spec.rb
|
252
|
+
- spec/wavefront-sdk/dashboard_spec.rb
|
253
|
+
- spec/wavefront-sdk/event_spec.rb
|
254
|
+
- spec/wavefront-sdk/externallink_spec.rb
|
255
|
+
- spec/wavefront-sdk/maintenancewindow_spec.rb
|
256
|
+
- spec/wavefront-sdk/message_spec.rb
|
257
|
+
- spec/wavefront-sdk/metric_spec.rb
|
258
|
+
- spec/wavefront-sdk/mixins_spec.rb
|
259
|
+
- spec/wavefront-sdk/proxy_spec.rb
|
260
|
+
- spec/wavefront-sdk/query_spec.rb
|
261
|
+
- spec/wavefront-sdk/resources/test.conf
|
262
|
+
- spec/wavefront-sdk/response_spec.rb
|
263
|
+
- spec/wavefront-sdk/savedsearch_spec.rb
|
264
|
+
- spec/wavefront-sdk/search_spec.rb
|
265
|
+
- spec/wavefront-sdk/source_spec.rb
|
266
|
+
- spec/wavefront-sdk/user_spec.rb
|
267
|
+
- spec/wavefront-sdk/validators_spec.rb
|
268
|
+
- spec/wavefront-sdk/webhook_spec.rb
|
269
|
+
- spec/wavefront-sdk/write_spec.rb
|