wavefront-client 2.0.0 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmVmOGZlMjkwODkxMTk3YjBiN2QwZDZiNmEyZTlkYjgyZTY1ZjQ1NQ==
4
+ NjdmYWUzYzk4NjEwYzQ1YzdhNGJjYzViMGRmYjY0ZmNkMGExOWU4MQ==
5
5
  data.tar.gz: !binary |-
6
- ZTYzNTFiZTNiOWFiMmZmYjA5ZDM0NGE5Y2EzNGNhZTkxNmE2Yjg5ZA==
6
+ ODgzZGM5ZGMxNzViNjBhYTE5Y2UwZmI1NmZlMWE3MmVlZWQ0NjY5OQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NzJhZmUzN2IyYmVjZjNjNmQ1ZjU1MWJlMzE5ZGRmY2RmOTY4MGZiNTA1NjBl
10
- Y2Y2MzMwMTkxOWVjMTExNWJmZjQ0NTIxYzEwOWE0ZTY1N2RjZTViZDA2NTc2
11
- MjBhOGQ5YzBhZTNhOTA0ZWU2ZDg3MTUzYmIxNGE5MDM3MjZmMjM=
9
+ Zjk2MDYxMWUxODc2MjA2Yzg2ZTQ3NWM5NDZjNzg1ZjA2NDRhY2JhYWVlYTM0
10
+ ZTEyMTQ3ODdlMDViNDFlNDkyYjZhMTFiN2VhMjcwMWQ0YWVjMmQ4MjBmZDA5
11
+ ZWQ2NmU5MWViYjAyMDkyZjY2YWVmYWJjZmMxMTdiMjdjYmY1N2I=
12
12
  data.tar.gz: !binary |-
13
- YzFkNzhkYjFiYTZlZDlkNjc2ZWU5OTcwNTNkYzY5YzJiMjcxY2NjMjcyZjlh
14
- YjY4MjNlYzJjY2I0MjgwN2NjZGQ3ZGExODk3YzI4NDBiNDQ0NTgwMjUzNGFi
15
- ZGNiMGZjMWNkY2M3ZjBiZjI5MDYxNjg3NDI5OTkzMmM3YjA5OTk=
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
 
@@ -16,6 +16,6 @@ See the License for the specific language governing permissions and
16
16
 
17
17
  module Wavefront
18
18
  class Client
19
- VERSION = "2.0.0"
19
+ VERSION = "2.1.0"
20
20
  end
21
21
  end
@@ -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]
@@ -21,6 +21,7 @@ module Wavefront
21
21
  DEFAULT_FORMAT = :raw
22
22
  DEFAULT_PREFIX_LENGTH = 1
23
23
  DEFAULT_STRICT = true
24
+ DEFAULT_OBSOLETE_METRICS = false
24
25
  FORMATS = [ :raw, :ruby, :graphite, :highcharts ]
25
26
  GRANULARITIES = %w( s m h d )
26
27
  end
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.0.0
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-02-03 00:00:00.000000000 Z
15
+ date: 2016-04-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler