wavefront-client 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +4 -0
- data/bin/wavefront-client +3 -0
- data/lib/wavefront/client/version.rb +1 -1
- data/lib/wavefront/client.rb +2 -0
- data/lib/wavefront/constants.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
NjdmYWUzYzk4NjEwYzQ1YzdhNGJjYzViMGRmYjY0ZmNkMGExOWU4MQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODgzZGM5ZGMxNzViNjBhYTE5Y2UwZmI1NmZlMWE3MmVlZWQ0NjY5OQ==
|
|
7
7
|
SHA512:
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
Zjk2MDYxMWUxODc2MjA2Yzg2ZTQ3NWM5NDZjNzg1ZjA2NDRhY2JhYWVlYTM0
|
|
10
|
+
ZTEyMTQ3ODdlMDViNDFlNDkyYjZhMTFiN2VhMjcwMWQ0YWVjMmQ4MjBmZDA5
|
|
11
|
+
ZWQ2NmU5MWViYjAyMDkyZjY2YWVmYWJjZmMxMTdiMjdjYmY1N2I=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
MTc0YWFjNmQyZGFlOWRjYzQwODdlZWIwYWVkOTFmYWJmODQ1OTVkZWQ4MWY4
|
|
14
|
+
ZGZlZDMxYTRkYjgyZDk4YWZhNjE1YWVhM2Q2YTcyODE2NTgxYWQ5N2MxOGFk
|
|
15
|
+
ZTI0Y2M3MzAxZGY3MzNkNTIxOGYzOGNmNzcyZDYxMTY0NmJhMjA=
|
data/README.md
CHANGED
|
@@ -101,6 +101,10 @@ response = wave.query('<TS_EXPRESSION>', 'm', {:start_time => Time.now - 86400,
|
|
|
101
101
|
default we set this to `true`, so you will get back exactly
|
|
102
102
|
the range you request with `:start_time` and `:end_time`. If
|
|
103
103
|
you wish to have the old behaviour, set this to `false`.
|
|
104
|
+
* `:includeObsoleteMetrics` - With Wavefront 3.0 onwards, the non-reporting metrics
|
|
105
|
+
are treated as obsolete after 4 weeks of no data being reported for them.
|
|
106
|
+
Setting `includeObsoleteMetrics` to true allows you to pull these obsolete metrics.
|
|
107
|
+
It defaults to `false`
|
|
104
108
|
* `:passthru` - as Wavefront develops it is hard to keep pace with
|
|
105
109
|
the API changes and cover everything in the SDK. The `passthru`
|
|
106
110
|
hash lets you pass parameters directly to the Wavefront API.
|
data/bin/wavefront-client
CHANGED
|
@@ -31,6 +31,9 @@ require 'json'
|
|
|
31
31
|
on 'e', 'end=', 'Time in UNIX epoch seconds to query to'
|
|
32
32
|
on 'f', 'format=', "Output format (#{Wavefront::Client::FORMATS.join(', ')})", default: Wavefront::Client::DEFAULT_FORMAT.to_s
|
|
33
33
|
on 'p', 'prefixlength=', 'The number of path elements to treat as a prefix when doing schema manipulations', default: Wavefront::Client::DEFAULT_PREFIX_LENGTH
|
|
34
|
+
on 'X', 'strict=','Flag to not return points outside the query window [q;s) ', default: Wavefront::Client::DEFAULT_STRICT
|
|
35
|
+
on 'O', 'includeObsoleteMetrics=', 'Flag to include metrics that have not been reporting for more than 4 weeks,defaults to false', default: Wavefront::Client::DEFAULT_OBSOLETE_METRICS
|
|
36
|
+
|
|
34
37
|
on 'h', 'help', 'Display this message'
|
|
35
38
|
end
|
|
36
39
|
|
data/lib/wavefront/client.rb
CHANGED
|
@@ -43,6 +43,7 @@ module Wavefront
|
|
|
43
43
|
options[:response_format] ||= DEFAULT_FORMAT
|
|
44
44
|
options[:prefix_length] ||= DEFAULT_PREFIX_LENGTH
|
|
45
45
|
options[:strict] = DEFAULT_STRICT unless options.keys.include?(:strict)
|
|
46
|
+
options[:includeObsoleteMetrics] = DEFAULT_OBSOLETE_METRICS unless options.keys.include?(:includeObsoleteMetrics)
|
|
46
47
|
|
|
47
48
|
[ options[:start_time], options[:end_time] ].each { |o| raise Wavefront::Exception::InvalidTimeFormat unless o.is_a?(Time) }
|
|
48
49
|
raise Wavefront::Exception::InvalidGranularity unless GRANULARITIES.include?(granularity)
|
|
@@ -54,6 +55,7 @@ module Wavefront
|
|
|
54
55
|
:s => options[:start_time].to_i,
|
|
55
56
|
:e => options[:end_time].to_i,
|
|
56
57
|
:strict => options[:strict],
|
|
58
|
+
:includeObsoleteMetrics => options[:includeObsoleteMetrics]
|
|
57
59
|
}}.merge(@headers)
|
|
58
60
|
|
|
59
61
|
if options[:passthru]
|
data/lib/wavefront/constants.rb
CHANGED
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: 2.
|
|
4
|
+
version: 2.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sam Pointer
|
|
@@ -12,7 +12,7 @@ authors:
|
|
|
12
12
|
autorequire:
|
|
13
13
|
bindir: bin
|
|
14
14
|
cert_chain: []
|
|
15
|
-
date: 2016-
|
|
15
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: bundler
|