riemann-cli 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/riemann-cli +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f26ab9e4f6cce08ac4d9535550ed39ab8a1787d4
4
- data.tar.gz: 0edcaa5a16a98224d08acc8ae5ad05efb134d235
3
+ metadata.gz: 8d9a5292ba51569b9ca39047543743fb63f81089
4
+ data.tar.gz: 3456a7ed4004672e779c6c23bc7e43d70cb6ecab
5
5
  SHA512:
6
- metadata.gz: 94ea81f110acc988c1c0db5db902d38df6dd40648eeff164ea12ebe38958a8283bb902a62ea7094795466857160859986ec6d06842dacdbeda8c026089d0a245
7
- data.tar.gz: 6555373ad36738ac850efe6da6c745c057f2c9066fdd87ad7959cdf9167a924b26a98a4a12b93f3231eebef76140d25a5222261eaad065a0798dc7217087fa14
6
+ metadata.gz: 4f2705f874558b86aa93c39f80b9ac47d65815920e0a03ba78eb940dbbb745c30030b0d98bda5d1a2efea1e9d02dd45e70e3a4802bdc9aa2813bdaad49126e34
7
+ data.tar.gz: 7dfc9859b6a341538ad478be9ad8e1247348ae3b68a963da79259f59f94c85a7f37ecb1bda9d59f906bb5f9c39c322995f2b7588cfb10f3ef7a9cdb572f215c1
data/bin/riemann-cli CHANGED
@@ -21,7 +21,7 @@ class MyCLI < Thor
21
21
  option :ttl, :type => :numeric, :desc => 'Floating-point number of seconds this event is considered valid for'
22
22
  def send()
23
23
  puts options if options[:verbose]
24
- c = connect(options[:host], options[:port], options[:timeout])
24
+ c = connect(options[:server], options[:port], options[:timeout])
25
25
  event_fields = [:host, :service, :state, :time, :description, :tags, :metric, :ttl]
26
26
  event = {}
27
27
  event_fields.each do |f|
@@ -44,7 +44,7 @@ class MyCLI < Thor
44
44
  option :format, :desc => 'Format string for the output', :default => "{host:\"%{host}\", service:\"%{service}\", state:\"%{state}\", time:%{time}, description:\"%{description}\", tags:%{tags}, metric_f:%{metric_f}, metric_d:%{metric_d}, metric_sint64:%{metric_sint64}, ttl:%{ttl}}"
45
45
  def query()
46
46
  puts options if options[:verbose]
47
- c = connect(options[:host], options[:port], options[:timeout])
47
+ c = connect(options[:server], options[:port], options[:timeout])
48
48
  c[options[:string]].each do |r|
49
49
  values_hash = r.to_hash()
50
50
  puts options[:format].gsub(/%{(.*?)}/) { |m|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Goldbaum