wavefront-client 3.2.0 → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.travis.yml +1 -0
- data/README-cli.md +108 -1
- data/bin/wavefront +49 -11
- data/lib/wavefront/batch_writer.rb +247 -0
- data/lib/wavefront/cli/alerts.rb +50 -27
- data/lib/wavefront/cli/batch_write.rb +227 -0
- data/lib/wavefront/cli/events.rb +1 -1
- data/lib/wavefront/cli/ts.rb +2 -2
- data/lib/wavefront/cli/write.rb +89 -0
- data/lib/wavefront/cli.rb +19 -13
- data/lib/wavefront/client/version.rb +1 -1
- data/lib/wavefront/constants.rb +3 -0
- data/lib/wavefront/events.rb +39 -18
- data/lib/wavefront/exception.rb +8 -1
- data/lib/wavefront/mixins.rb +9 -2
- data/lib/wavefront/writer.rb +7 -2
- data/spec/spec_helper.rb +52 -1
- data/spec/wavefront/batch_writer_spec.rb +523 -0
- data/spec/wavefront/cli/alerts_spec.rb +153 -0
- data/spec/wavefront/cli/batch_write_spec.rb +251 -0
- data/spec/wavefront/cli/events_spec.rb +43 -0
- data/spec/wavefront/cli/resources/alert.human.erb +14 -0
- data/spec/wavefront/cli/resources/alert.human2 +14 -0
- data/spec/wavefront/cli/resources/alert.json +38 -0
- data/spec/wavefront/cli/resources/alert.raw +1 -0
- data/spec/wavefront/cli/resources/alert.ruby +1 -0
- data/spec/wavefront/cli/resources/write.parabola +49 -0
- data/spec/wavefront/cli/write_spec.rb +112 -0
- data/spec/wavefront/cli_spec.rb +68 -0
- data/spec/wavefront/events_spec.rb +111 -0
- data/spec/wavefront/mixins_spec.rb +16 -1
- data/spec/wavefront/writer_spec.rb +0 -7
- data/wavefront-client.gemspec +1 -1
- metadata +35 -6
data/wavefront-client.gemspec
CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
|
37
37
|
spec.add_development_dependency "bundler", "~> 1.3"
|
38
38
|
spec.add_development_dependency "rake"
|
39
|
-
spec.add_development_dependency "rspec"
|
39
|
+
spec.add_development_dependency "rspec", "~> 3.5.0"
|
40
40
|
|
41
41
|
spec.add_dependency "rest-client", ">= 1.6.7", "<= 1.8"
|
42
42
|
spec.add_dependency "docopt", "~> 0.5.0"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wavefront-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Pointer
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2016-
|
16
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: bundler
|
@@ -47,16 +47,16 @@ dependencies:
|
|
47
47
|
name: rspec
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
49
49
|
requirements:
|
50
|
-
- -
|
50
|
+
- - ~>
|
51
51
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
52
|
+
version: 3.5.0
|
53
53
|
type: :development
|
54
54
|
prerelease: false
|
55
55
|
version_requirements: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ~>
|
58
58
|
- !ruby/object:Gem::Version
|
59
|
-
version:
|
59
|
+
version: 3.5.0
|
60
60
|
- !ruby/object:Gem::Dependency
|
61
61
|
name: rest-client
|
62
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -124,10 +124,13 @@ files:
|
|
124
124
|
- Rakefile
|
125
125
|
- bin/wavefront
|
126
126
|
- lib/wavefront/alerting.rb
|
127
|
+
- lib/wavefront/batch_writer.rb
|
127
128
|
- lib/wavefront/cli.rb
|
128
129
|
- lib/wavefront/cli/alerts.rb
|
130
|
+
- lib/wavefront/cli/batch_write.rb
|
129
131
|
- lib/wavefront/cli/events.rb
|
130
132
|
- lib/wavefront/cli/ts.rb
|
133
|
+
- lib/wavefront/cli/write.rb
|
131
134
|
- lib/wavefront/client.rb
|
132
135
|
- lib/wavefront/client/version.rb
|
133
136
|
- lib/wavefront/constants.rb
|
@@ -140,7 +143,20 @@ files:
|
|
140
143
|
- spec/example_response.json
|
141
144
|
- spec/spec_helper.rb
|
142
145
|
- spec/wavefront/alerting_spec.rb
|
146
|
+
- spec/wavefront/batch_writer_spec.rb
|
147
|
+
- spec/wavefront/cli/alerts_spec.rb
|
148
|
+
- spec/wavefront/cli/batch_write_spec.rb
|
149
|
+
- spec/wavefront/cli/events_spec.rb
|
150
|
+
- spec/wavefront/cli/resources/alert.human.erb
|
151
|
+
- spec/wavefront/cli/resources/alert.human2
|
152
|
+
- spec/wavefront/cli/resources/alert.json
|
153
|
+
- spec/wavefront/cli/resources/alert.raw
|
154
|
+
- spec/wavefront/cli/resources/alert.ruby
|
155
|
+
- spec/wavefront/cli/resources/write.parabola
|
156
|
+
- spec/wavefront/cli/write_spec.rb
|
157
|
+
- spec/wavefront/cli_spec.rb
|
143
158
|
- spec/wavefront/client_spec.rb
|
159
|
+
- spec/wavefront/events_spec.rb
|
144
160
|
- spec/wavefront/metadata_spec.rb
|
145
161
|
- spec/wavefront/mixins_spec.rb
|
146
162
|
- spec/wavefront/response_spec.rb
|
@@ -174,7 +190,20 @@ test_files:
|
|
174
190
|
- spec/example_response.json
|
175
191
|
- spec/spec_helper.rb
|
176
192
|
- spec/wavefront/alerting_spec.rb
|
193
|
+
- spec/wavefront/batch_writer_spec.rb
|
194
|
+
- spec/wavefront/cli/alerts_spec.rb
|
195
|
+
- spec/wavefront/cli/batch_write_spec.rb
|
196
|
+
- spec/wavefront/cli/events_spec.rb
|
197
|
+
- spec/wavefront/cli/resources/alert.human.erb
|
198
|
+
- spec/wavefront/cli/resources/alert.human2
|
199
|
+
- spec/wavefront/cli/resources/alert.json
|
200
|
+
- spec/wavefront/cli/resources/alert.raw
|
201
|
+
- spec/wavefront/cli/resources/alert.ruby
|
202
|
+
- spec/wavefront/cli/resources/write.parabola
|
203
|
+
- spec/wavefront/cli/write_spec.rb
|
204
|
+
- spec/wavefront/cli_spec.rb
|
177
205
|
- spec/wavefront/client_spec.rb
|
206
|
+
- spec/wavefront/events_spec.rb
|
178
207
|
- spec/wavefront/metadata_spec.rb
|
179
208
|
- spec/wavefront/mixins_spec.rb
|
180
209
|
- spec/wavefront/response_spec.rb
|