wavefront-sdk 2.0.2 → 2.0.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca02aa5cfb6552d6623f6e22d2ec23507deb5f4c625dd07ee0c1d39a6ac4922
|
4
|
+
data.tar.gz: 127aeff281387e1c7b1510c39bd4fdf1a3c1589da49c56caf4859f29635aefba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf13219e0f89cb7a5b7cd31b99f836ed1640c451ead825dac2e77d7738a3dde359173fb7dfa6c26bfc44d54b0f2342cae4a3d5963eb2f60d0c4f7d580bbc361
|
7
|
+
data.tar.gz: 4a0d535006b814fedafb11e8fe28de94617a71bac3f304471788ba76c23f1ddf7be5029e5944c8dac6b5f1414057bfd54eb6a1552c3d0cc4ab915497b109801e
|
data/HISTORY.md
CHANGED
@@ -1 +1 @@
|
|
1
|
-
WF_SDK_VERSION = '2.0.
|
1
|
+
WF_SDK_VERSION = '2.0.3'.freeze
|
@@ -59,8 +59,7 @@ module Wavefront
|
|
59
59
|
dist.fetch(:source, HOSTNAME),
|
60
60
|
dist[:tags] && dist[:tags].to_wf_tag,
|
61
61
|
opts[:tags] && opts[:tags].to_wf_tag).squeeze(' ').strip
|
62
|
-
rescue StandardError
|
63
|
-
puts e
|
62
|
+
rescue StandardError
|
64
63
|
raise Wavefront::Exception::InvalidDistribution
|
65
64
|
end
|
66
65
|
# rubocop:enable Metrics/AbcSize
|
data/lib/wavefront-sdk/event.rb
CHANGED
@@ -23,8 +23,8 @@ module Wavefront
|
|
23
23
|
# @param limit [Integer] the number of events to return
|
24
24
|
# @return [Wavefront::Response]
|
25
25
|
#
|
26
|
-
def list(from = nil, to =
|
27
|
-
raise ArgumentError unless from && to
|
26
|
+
def list(from = nil, to = Time.now, limit = 100, cursor = nil)
|
27
|
+
raise ArgumentError unless from && to
|
28
28
|
wf_event_id?(cursor) if cursor
|
29
29
|
|
30
30
|
from = parse_time(from, true)
|
@@ -26,8 +26,7 @@ class WavefrontEventTest < WavefrontTestBase
|
|
26
26
|
tms1 = t1.to_datetime.strftime('%Q')
|
27
27
|
tms2 = t2.to_datetime.strftime('%Q')
|
28
28
|
|
29
|
-
assert_raises(ArgumentError) {
|
30
|
-
assert_raises(ArgumentError) { wf.list(tms1) }
|
29
|
+
assert_raises(ArgumentError) { wf.list }
|
31
30
|
|
32
31
|
should_work(:list, [t1, t2],
|
33
32
|
"?earliestStartTimeEpochMillis=#{tms1}" \
|
@@ -7,17 +7,13 @@ require_relative '../../../lib/wavefront-sdk/paginator/post'
|
|
7
7
|
# Stub for ApiCaller class
|
8
8
|
#
|
9
9
|
class FakeApiCaller
|
10
|
-
def respond(_args)
|
11
|
-
puts 'merp'
|
12
|
-
end
|
10
|
+
def respond(_args); end
|
13
11
|
end
|
14
12
|
|
15
13
|
# Stub for connection object
|
16
14
|
#
|
17
15
|
class FakeConn
|
18
|
-
def get(*args)
|
19
|
-
puts args
|
20
|
-
end
|
16
|
+
def get(*args); end
|
21
17
|
end
|
22
18
|
|
23
19
|
# Test POST pagination
|