wavefront-cli 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/wavefront-cli/event.rb +1 -3
- data/lib/wavefront-cli/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 1ca00e6bc8583a31958b41b6fce2513133da7f267a734bea256112eb45a20355
|
4
|
+
data.tar.gz: 998efcd8c1a33dfd1c5639378b6d1b7cef4f7106e0118537219495d03790e880
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 474da94ec44e62d5dc40b374923a11c5a863911db53570df02ee9f8b072ded10a8052e0d3be23035930c927ca6c5d113f8905fe1b307f017f90c306a32446406
|
7
|
+
data.tar.gz: 96746daf0316f349edea47cdcff954c25cc410ab2b5a02339028eff32d538575c545b238b04e4bdeefdd2f82fbb8bdd6c309081ed795500a993f8d501393d6d5
|
data/lib/wavefront-cli/event.rb
CHANGED
@@ -44,11 +44,9 @@ module WavefrontCli
|
|
44
44
|
opts[:start] = Time.now unless opts[:start]
|
45
45
|
|
46
46
|
t_start = parse_time(opts[:start], true)
|
47
|
-
id = [t_start, opts[:'<event>']].join(':')
|
48
47
|
|
49
48
|
body = { name: opts[:'<event>'],
|
50
49
|
startTime: t_start,
|
51
|
-
id: id,
|
52
50
|
annotations: {} }
|
53
51
|
|
54
52
|
body[:annotations][:details] = opts[:desc] if opts[:desc]
|
@@ -65,7 +63,7 @@ module WavefrontCli
|
|
65
63
|
resp = wf.create(body)
|
66
64
|
|
67
65
|
unless opts[:nostate] || opts[:end] || opts[:instant]
|
68
|
-
create_state_file(id, opts[:host])
|
66
|
+
create_state_file(resp.response[:id], opts[:host])
|
69
67
|
end
|
70
68
|
|
71
69
|
resp
|
@@ -1 +1 @@
|
|
1
|
-
WF_CLI_VERSION = '2.1.
|
1
|
+
WF_CLI_VERSION = '2.1.4'.freeze
|
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: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Fisher
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|
@@ -275,7 +275,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
275
275
|
version: '0'
|
276
276
|
requirements: []
|
277
277
|
rubyforge_project:
|
278
|
-
rubygems_version: 2.
|
278
|
+
rubygems_version: 2.7.2
|
279
279
|
signing_key:
|
280
280
|
specification_version: 4
|
281
281
|
summary: CLI for Wavefront API v2
|