signalfx 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b7e3079b977f1b8c2ed78e640ba42078a219250
4
- data.tar.gz: 31b1c19a2ab3f934be5bc1bed5b2668f9bc46f6f
3
+ metadata.gz: 02ff8227fddf6b0eafc8e327ad06edebd72b17c5
4
+ data.tar.gz: 445cc12623762e477d26ae56349b6ff650781def
5
5
  SHA512:
6
- metadata.gz: 05e7bffd6e93d1f81dd064d0da9ef2035b98136d5578def20672e3d494f44232ed9935a7b3fadf09558f4156cc30cb98d798dcfe25dd21478f94c6495b641d7b
7
- data.tar.gz: 781fe6441cb95182b010e4c1e065be96fb8a11e14a419a9a4124199664285339c26f15318d89ecf555101aabc75f41a839b42b4265c8765365b9b5c246e0b95a
6
+ metadata.gz: 11f87025f8f3599c80f5eb5b86273b55287bb1d0c5eccb09a28441c49bf81fa63f3f653185f772e95b561a77a9e1dfdb9942def521831444a4ace4d4886a125c
7
+ data.tar.gz: 13925b3568a355c95ddfe9597cb5a6a15e2ea5e546979e330e4a4668fd3b9eb8f59bbff099dccf4dce30dfdbdbc2cc878202f87a6a2fa4c42c508e0260e22891
@@ -1,15 +1,15 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- signalfx (2.0.2)
5
- protobuf (~> 3.5.1, >= 3.5.1)
4
+ signalfx (2.0.3)
5
+ protobuf (>= 3.5.1)
6
6
  rest-client (~> 2.0)
7
7
  websocket-client-simple (~> 0.3.0)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activesupport (5.1.4)
12
+ activesupport (5.1.5)
13
13
  concurrent-ruby (~> 1.0, >= 1.0.2)
14
14
  i18n (~> 0.7)
15
15
  minitest (~> 5.1)
@@ -32,16 +32,17 @@ GEM
32
32
  hashdiff (0.3.0)
33
33
  http-cookie (1.0.3)
34
34
  domain_name (~> 0.5)
35
- i18n (0.8.6)
36
- json (1.8.3)
35
+ i18n (0.9.5)
36
+ concurrent-ruby (~> 1.0)
37
+ json (1.8.6)
37
38
  method_source (0.8.2)
38
39
  middleware (0.1.0)
39
40
  mime-types (3.1)
40
41
  mime-types-data (~> 3.2015)
41
42
  mime-types-data (3.2016.0521)
42
- minitest (5.10.3)
43
+ minitest (5.11.3)
43
44
  netrc (0.11.0)
44
- protobuf (3.5.5)
45
+ protobuf (3.8.1)
45
46
  activesupport (>= 3.2)
46
47
  middleware
47
48
  thor
@@ -82,16 +83,16 @@ GEM
82
83
  rack (>= 1, < 3)
83
84
  thor (0.20.0)
84
85
  thread_safe (0.3.6)
85
- tzinfo (1.2.3)
86
+ tzinfo (1.2.5)
86
87
  thread_safe (~> 0.1)
87
88
  unf (0.1.4)
88
89
  unf_ext
89
- unf_ext (0.0.7.4)
90
+ unf_ext (0.0.7.5)
90
91
  webmock (2.1.0)
91
92
  addressable (>= 2.3.6)
92
93
  crack (>= 0.3.2)
93
94
  hashdiff
94
- websocket (1.2.4)
95
+ websocket (1.2.5)
95
96
  websocket-client-simple (0.3.0)
96
97
  event_emitter
97
98
  websocket
@@ -114,4 +115,4 @@ DEPENDENCIES
114
115
  webmock (~> 2.1)
115
116
 
116
117
  BUNDLED WITH
117
- 1.15.4
118
+ 1.16.1
@@ -21,11 +21,13 @@ puts
21
21
  signalflow = client.signalflow()
22
22
 
23
23
  signalflow.execute("data('cpu.utilization').publish()").each_message do |msg, comp|
24
- case msg[:type]
25
- when "data"
26
- puts "#{'Host'.center(40, ' ')} | cpu.utilization"
27
- msg[:data].each do |tsid,value|
28
- puts "#{comp.metadata[tsid][:host][0..40].center(40, ' ')} | #{value}"
24
+ unless msg.nil?
25
+ case msg[:type]
26
+ when "data"
27
+ puts "#{'Host'.center(40, ' ')} | cpu.utilization"
28
+ msg[:data].each do |tsid,value|
29
+ puts "#{comp.metadata[tsid][:host][0..40].center(40, ' ')} | #{value}"
30
+ end
29
31
  end
30
32
  end
31
33
  puts ""
@@ -34,12 +34,13 @@ class SignalFlowClient
34
34
  # @option options [Fixnum] :resolution
35
35
  # @option options [Fixnum] :max_delay
36
36
  # @option options [Boolean] :persistent
37
+ # @option options [Boolean] :immediate
37
38
  #
38
39
  # @return [Computation] A {Computation} instance with an active channel
39
40
  def execute(program, **options)
40
41
  @transport.execute(program, **options)
41
42
  end
42
-
43
+
43
44
  # Start and attach to a computation that tells how many times a detector
44
45
  # would have fired in a time range between `start` and `stop`.
45
46
  #
@@ -82,7 +82,7 @@ class SignalFlowWebsocketTransport
82
82
  end
83
83
  end
84
84
 
85
- def execute(program, start: nil, stop: nil, resolution: nil, max_delay: nil, persistent: nil)
85
+ def execute(program, start: nil, stop: nil, resolution: nil, max_delay: nil, persistent: nil, immediate: false)
86
86
  start_job do |channel_name|
87
87
  send_msg({
88
88
  :type => "execute",
@@ -93,6 +93,7 @@ class SignalFlowWebsocketTransport
93
93
  :resolution => resolution,
94
94
  :max_delay => max_delay,
95
95
  :persistent => persistent,
96
+ :immediate => immediate,
96
97
  :compress => @compress,
97
98
  }.reject!{|k,v| v.nil?}.to_json)
98
99
  end
@@ -313,4 +314,3 @@ class SignalFlowWebsocketTransport
313
314
  end
314
315
  private :make_new_channel
315
316
  end
316
-
@@ -1,6 +1,6 @@
1
1
  # Copyright (C) 2015-2016 SignalFx, Inc. All rights reserved.
2
2
 
3
3
  module Version
4
- VERSION = '2.0.2'
4
+ VERSION = '2.0.3'
5
5
  NAME = 'signalfx-ruby-client'
6
6
  end
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.add_development_dependency "thin", "~> 1.7"
37
37
  spec.add_development_dependency "pry"
38
38
  spec.add_development_dependency "faye-websocket", "~> 0.10.7"
39
- spec.add_dependency "protobuf", "~> 3.5.1", ">= 3.5.1"
39
+ spec.add_dependency "protobuf", ">= 3.5.1"
40
40
  spec.add_dependency "rest-client", "~> 2.0"
41
41
  spec.add_dependency 'websocket-client-simple', "~> 0.3.0"
42
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: signalfx
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - SignalFx, Inc
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-01-18 00:00:00.000000000 Z
11
+ date: 2018-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -112,9 +112,6 @@ dependencies:
112
112
  name: protobuf
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - "~>"
116
- - !ruby/object:Gem::Version
117
- version: 3.5.1
118
115
  - - ">="
119
116
  - !ruby/object:Gem::Version
120
117
  version: 3.5.1
@@ -122,9 +119,6 @@ dependencies:
122
119
  prerelease: false
123
120
  version_requirements: !ruby/object:Gem::Requirement
124
121
  requirements:
125
- - - "~>"
126
- - !ruby/object:Gem::Version
127
- version: 3.5.1
128
122
  - - ">="
129
123
  - !ruby/object:Gem::Version
130
124
  version: 3.5.1
@@ -210,7 +204,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
210
204
  version: '0'
211
205
  requirements: []
212
206
  rubyforge_project:
213
- rubygems_version: 2.4.5.1
207
+ rubygems_version: 2.6.14
214
208
  signing_key:
215
209
  specification_version: 4
216
210
  summary: Ruby client library for SignalFx