riemann-cli 0.1.1 → 0.1.2
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 +4 -4
- data/bin/riemann-cli +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d9a5292ba51569b9ca39047543743fb63f81089
|
4
|
+
data.tar.gz: 3456a7ed4004672e779c6c23bc7e43d70cb6ecab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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[:
|
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[:
|
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|
|