wavefront-sdk 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/release.yml +3 -3
  3. data/.github/workflows/test.yml +1 -1
  4. data/.rubocop.yml +1 -1
  5. data/Gemfile +11 -0
  6. data/HISTORY.md +27 -4
  7. data/README.md +3 -3
  8. data/lib/wavefront-sdk/accesspolicy.rb +37 -0
  9. data/lib/wavefront-sdk/account.rb +28 -0
  10. data/lib/wavefront-sdk/alert.rb +29 -10
  11. data/lib/wavefront-sdk/api_mixins/tag.rb +12 -12
  12. data/lib/wavefront-sdk/apitoken.rb +29 -2
  13. data/lib/wavefront-sdk/cloudintegration.rb +10 -8
  14. data/lib/wavefront-sdk/cluster.rb +18 -0
  15. data/lib/wavefront-sdk/core/api_caller.rb +2 -2
  16. data/lib/wavefront-sdk/core/exception.rb +4 -0
  17. data/lib/wavefront-sdk/dashboard.rb +7 -6
  18. data/lib/wavefront-sdk/defs/version.rb +1 -1
  19. data/lib/wavefront-sdk/derivedmetric.rb +7 -6
  20. data/lib/wavefront-sdk/event.rb +5 -5
  21. data/lib/wavefront-sdk/externallink.rb +3 -3
  22. data/lib/wavefront-sdk/ingestionpolicy.rb +32 -5
  23. data/lib/wavefront-sdk/integration.rb +14 -4
  24. data/lib/wavefront-sdk/internals.rb +93 -0
  25. data/lib/wavefront-sdk/maintenancewindow.rb +3 -3
  26. data/lib/wavefront-sdk/message.rb +1 -1
  27. data/lib/wavefront-sdk/metricspolicy.rb +1 -1
  28. data/lib/wavefront-sdk/monitoredapplication.rb +55 -0
  29. data/lib/wavefront-sdk/notificant.rb +4 -4
  30. data/lib/wavefront-sdk/proxy.rb +26 -4
  31. data/lib/wavefront-sdk/role.rb +2 -2
  32. data/lib/wavefront-sdk/savedsearch.rb +4 -4
  33. data/lib/wavefront-sdk/search.rb +6 -4
  34. data/lib/wavefront-sdk/source.rb +6 -6
  35. data/lib/wavefront-sdk/spansamplingpolicy.rb +126 -0
  36. data/lib/wavefront-sdk/stdlib/string.rb +1 -1
  37. data/lib/wavefront-sdk/user.rb +5 -5
  38. data/lib/wavefront-sdk/usergroup.rb +2 -2
  39. data/lib/wavefront-sdk/validators.rb +28 -5
  40. data/lib/wavefront-sdk/webhook.rb +3 -3
  41. data/lib/wavefront-sdk/write.rb +1 -0
  42. data/lib/wavefront-sdk/writers/api.rb +31 -8
  43. data/spec/spec_helper.rb +1 -1
  44. data/spec/wavefront-sdk/accesspolicy_spec.rb +53 -0
  45. data/spec/wavefront-sdk/account_spec.rb +32 -1
  46. data/spec/wavefront-sdk/alert_spec.rb +17 -0
  47. data/spec/wavefront-sdk/api_mixins/user_mixins_spec.rb +1 -1
  48. data/spec/wavefront-sdk/apitoken_spec.rb +12 -0
  49. data/spec/wavefront-sdk/cluster_spec.rb +13 -0
  50. data/spec/wavefront-sdk/core/api_caller_spec.rb +1 -1
  51. data/spec/wavefront-sdk/core/api_spec.rb +1 -1
  52. data/spec/wavefront-sdk/core/logger_spec.rb +1 -1
  53. data/spec/wavefront-sdk/core/response_spec.rb +1 -1
  54. data/spec/wavefront-sdk/credentials_spec.rb +2 -2
  55. data/spec/wavefront-sdk/distribution_spec.rb +1 -1
  56. data/spec/wavefront-sdk/ingestionpolicy_spec.rb +11 -0
  57. data/spec/wavefront-sdk/integration_spec.rb +4 -0
  58. data/spec/wavefront-sdk/internals_spec.rb +62 -0
  59. data/spec/wavefront-sdk/metric_helper_spec.rb +1 -1
  60. data/spec/wavefront-sdk/misc_spec.rb +1 -1
  61. data/spec/wavefront-sdk/monitoredapplication_spec.rb +35 -0
  62. data/spec/wavefront-sdk/paginator/base_spec.rb +1 -1
  63. data/spec/wavefront-sdk/paginator/post_spec.rb +1 -1
  64. data/spec/wavefront-sdk/proxy_spec.rb +14 -0
  65. data/spec/wavefront-sdk/resources/swagger.spec.gz +0 -0
  66. data/spec/wavefront-sdk/spansamplingpolicy_spec.rb +47 -0
  67. data/spec/wavefront-sdk/spy_spec.rb +1 -1
  68. data/spec/wavefront-sdk/stdlib/array_spec.rb +1 -1
  69. data/spec/wavefront-sdk/stdlib/hash_spec.rb +1 -1
  70. data/spec/wavefront-sdk/stdlib/string_spec.rb +1 -1
  71. data/spec/wavefront-sdk/support/mixins_spec.rb +1 -1
  72. data/spec/wavefront-sdk/support/parse_time_spec.rb +1 -1
  73. data/spec/wavefront-sdk/unstable/chart_spec.rb +1 -1
  74. data/spec/wavefront-sdk/usage_spec.rb +0 -1
  75. data/spec/wavefront-sdk/validators_spec.rb +17 -1
  76. data/spec/wavefront-sdk/write_spec.rb +1 -1
  77. data/spec/wavefront-sdk/writers/api_spec.rb +1 -1
  78. data/spec/wavefront-sdk/writers/core_spec.rb +1 -1
  79. data/spec/wavefront-sdk/writers/http_spec.rb +1 -1
  80. data/spec/wavefront-sdk/writers/proxy_spec.rb +1 -1
  81. data/spec/wavefront-sdk/writers/socket_spec.rb +1 -1
  82. data/spec/wavefront-sdk/writers/summary_spec.rb +1 -1
  83. data/wavefront-sdk.gemspec +2 -13
  84. metadata +17 -146
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wavefront-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.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: 2023-01-19 00:00:00.000000000 Z
11
+ date: 2023-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.1'
33
+ version: '2.7'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.1'
40
+ version: '2.7'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: inifile
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -66,146 +66,6 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '6.6'
69
- - !ruby/object:Gem::Dependency
70
- name: minitest
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '5.17'
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '5.17'
83
- - !ruby/object:Gem::Dependency
84
- name: rake
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '13.0'
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '13.0'
97
- - !ruby/object:Gem::Dependency
98
- name: rubocop
99
- requirement: !ruby/object:Gem::Requirement
100
- requirements:
101
- - - "~>"
102
- - !ruby/object:Gem::Version
103
- version: '1.43'
104
- type: :development
105
- prerelease: false
106
- version_requirements: !ruby/object:Gem::Requirement
107
- requirements:
108
- - - "~>"
109
- - !ruby/object:Gem::Version
110
- version: '1.43'
111
- - !ruby/object:Gem::Dependency
112
- name: rubocop-minitest
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: '0.26'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- requirements:
122
- - - "~>"
123
- - !ruby/object:Gem::Version
124
- version: '0.26'
125
- - !ruby/object:Gem::Dependency
126
- name: rubocop-performance
127
- requirement: !ruby/object:Gem::Requirement
128
- requirements:
129
- - - "~>"
130
- - !ruby/object:Gem::Version
131
- version: '1.15'
132
- type: :development
133
- prerelease: false
134
- version_requirements: !ruby/object:Gem::Requirement
135
- requirements:
136
- - - "~>"
137
- - !ruby/object:Gem::Version
138
- version: '1.15'
139
- - !ruby/object:Gem::Dependency
140
- name: rubocop-rake
141
- requirement: !ruby/object:Gem::Requirement
142
- requirements:
143
- - - "~>"
144
- - !ruby/object:Gem::Version
145
- version: '0.6'
146
- type: :development
147
- prerelease: false
148
- version_requirements: !ruby/object:Gem::Requirement
149
- requirements:
150
- - - "~>"
151
- - !ruby/object:Gem::Version
152
- version: '0.6'
153
- - !ruby/object:Gem::Dependency
154
- name: simplecov
155
- requirement: !ruby/object:Gem::Requirement
156
- requirements:
157
- - - "~>"
158
- - !ruby/object:Gem::Version
159
- version: '0.18'
160
- type: :development
161
- prerelease: false
162
- version_requirements: !ruby/object:Gem::Requirement
163
- requirements:
164
- - - "~>"
165
- - !ruby/object:Gem::Version
166
- version: '0.18'
167
- - !ruby/object:Gem::Dependency
168
- name: spy
169
- requirement: !ruby/object:Gem::Requirement
170
- requirements:
171
- - - '='
172
- - !ruby/object:Gem::Version
173
- version: '1.0'
174
- type: :development
175
- prerelease: false
176
- version_requirements: !ruby/object:Gem::Requirement
177
- requirements:
178
- - - '='
179
- - !ruby/object:Gem::Version
180
- version: '1.0'
181
- - !ruby/object:Gem::Dependency
182
- name: webmock
183
- requirement: !ruby/object:Gem::Requirement
184
- requirements:
185
- - - "~>"
186
- - !ruby/object:Gem::Version
187
- version: '3.18'
188
- type: :development
189
- prerelease: false
190
- version_requirements: !ruby/object:Gem::Requirement
191
- requirements:
192
- - - "~>"
193
- - !ruby/object:Gem::Version
194
- version: '3.18'
195
- - !ruby/object:Gem::Dependency
196
- name: yard
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - "~>"
200
- - !ruby/object:Gem::Version
201
- version: '0.9'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - "~>"
207
- - !ruby/object:Gem::Version
208
- version: '0.9'
209
69
  description: 'SDK for Wavefront (wavefront.com) API v2 '
210
70
  email: rob@sysdef.xyz
211
71
  executables: []
@@ -222,6 +82,7 @@ files:
222
82
  - LICENSE.txt
223
83
  - README.md
224
84
  - Rakefile
85
+ - lib/wavefront-sdk/accesspolicy.rb
225
86
  - lib/wavefront-sdk/account.rb
226
87
  - lib/wavefront-sdk/alert.rb
227
88
  - lib/wavefront-sdk/api_mixins/acl.rb
@@ -229,6 +90,7 @@ files:
229
90
  - lib/wavefront-sdk/api_mixins/user.rb
230
91
  - lib/wavefront-sdk/apitoken.rb
231
92
  - lib/wavefront-sdk/cloudintegration.rb
93
+ - lib/wavefront-sdk/cluster.rb
232
94
  - lib/wavefront-sdk/core/api.rb
233
95
  - lib/wavefront-sdk/core/api_caller.rb
234
96
  - lib/wavefront-sdk/core/exception.rb
@@ -244,11 +106,13 @@ files:
244
106
  - lib/wavefront-sdk/externallink.rb
245
107
  - lib/wavefront-sdk/ingestionpolicy.rb
246
108
  - lib/wavefront-sdk/integration.rb
109
+ - lib/wavefront-sdk/internals.rb
247
110
  - lib/wavefront-sdk/maintenancewindow.rb
248
111
  - lib/wavefront-sdk/message.rb
249
112
  - lib/wavefront-sdk/metric.rb
250
113
  - lib/wavefront-sdk/metric_helper.rb
251
114
  - lib/wavefront-sdk/metricspolicy.rb
115
+ - lib/wavefront-sdk/monitoredapplication.rb
252
116
  - lib/wavefront-sdk/notificant.rb
253
117
  - lib/wavefront-sdk/paginator/base.rb
254
118
  - lib/wavefront-sdk/paginator/delete.rb
@@ -264,6 +128,7 @@ files:
264
128
  - lib/wavefront-sdk/serviceaccount.rb
265
129
  - lib/wavefront-sdk/settings.rb
266
130
  - lib/wavefront-sdk/source.rb
131
+ - lib/wavefront-sdk/spansamplingpolicy.rb
267
132
  - lib/wavefront-sdk/spy.rb
268
133
  - lib/wavefront-sdk/stdlib/array.rb
269
134
  - lib/wavefront-sdk/stdlib/hash.rb
@@ -298,11 +163,13 @@ files:
298
163
  - spec/test_mixins/acl.rb
299
164
  - spec/test_mixins/general.rb
300
165
  - spec/test_mixins/tag.rb
166
+ - spec/wavefront-sdk/accesspolicy_spec.rb
301
167
  - spec/wavefront-sdk/account_spec.rb
302
168
  - spec/wavefront-sdk/alert_spec.rb
303
169
  - spec/wavefront-sdk/api_mixins/user_mixins_spec.rb
304
170
  - spec/wavefront-sdk/apitoken_spec.rb
305
171
  - spec/wavefront-sdk/cloudintegration_spec.rb
172
+ - spec/wavefront-sdk/cluster_spec.rb
306
173
  - spec/wavefront-sdk/core/api_caller_spec.rb
307
174
  - spec/wavefront-sdk/core/api_spec.rb
308
175
  - spec/wavefront-sdk/core/logger_spec.rb
@@ -315,12 +182,14 @@ files:
315
182
  - spec/wavefront-sdk/externallink_spec.rb
316
183
  - spec/wavefront-sdk/ingestionpolicy_spec.rb
317
184
  - spec/wavefront-sdk/integration_spec.rb
185
+ - spec/wavefront-sdk/internals_spec.rb
318
186
  - spec/wavefront-sdk/maintenancewindow_spec.rb
319
187
  - spec/wavefront-sdk/message_spec.rb
320
188
  - spec/wavefront-sdk/metric_helper_spec.rb
321
189
  - spec/wavefront-sdk/metric_spec.rb
322
190
  - spec/wavefront-sdk/metricspolicy_spec.rb
323
191
  - spec/wavefront-sdk/misc_spec.rb
192
+ - spec/wavefront-sdk/monitoredapplication_spec.rb
324
193
  - spec/wavefront-sdk/notificant_spec.rb
325
194
  - spec/wavefront-sdk/paginator/base_spec.rb
326
195
  - spec/wavefront-sdk/paginator/post_spec.rb
@@ -329,6 +198,7 @@ files:
329
198
  - spec/wavefront-sdk/report_spec.rb
330
199
  - spec/wavefront-sdk/resources/dummy_points.rb
331
200
  - spec/wavefront-sdk/resources/malformed.conf
201
+ - spec/wavefront-sdk/resources/swagger.spec.gz
332
202
  - spec/wavefront-sdk/resources/test.conf
333
203
  - spec/wavefront-sdk/resources/test2.conf
334
204
  - spec/wavefront-sdk/resources/user_responses/add_user_groups.json
@@ -343,6 +213,7 @@ files:
343
213
  - spec/wavefront-sdk/serviceaccount_spec.rb
344
214
  - spec/wavefront-sdk/settings_spec.rb
345
215
  - spec/wavefront-sdk/source_spec.rb
216
+ - spec/wavefront-sdk/spansamplingpolicy_spec.rb
346
217
  - spec/wavefront-sdk/spy_spec.rb
347
218
  - spec/wavefront-sdk/stdlib/array_spec.rb
348
219
  - spec/wavefront-sdk/stdlib/hash_spec.rb
@@ -376,14 +247,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
376
247
  requirements:
377
248
  - - ">="
378
249
  - !ruby/object:Gem::Version
379
- version: 2.7.0
250
+ version: '3.0'
380
251
  required_rubygems_version: !ruby/object:Gem::Requirement
381
252
  requirements:
382
253
  - - ">="
383
254
  - !ruby/object:Gem::Version
384
255
  version: '0'
385
256
  requirements: []
386
- rubygems_version: 3.4.1
257
+ rubygems_version: 3.4.10
387
258
  signing_key:
388
259
  specification_version: 4
389
260
  summary: SDK for Wavefront API v2