exprc 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/exprc +3 -3
- data/exprc.gemspec +1 -1
- metadata +1 -1
data/bin/exprc
CHANGED
@@ -14,25 +14,25 @@ ARGV.options do |o|
|
|
14
14
|
name = nil
|
15
15
|
type = nil
|
16
16
|
window = nil
|
17
|
-
frequency = nil
|
18
17
|
predicate = nil
|
19
18
|
predicate2 = nil
|
20
19
|
value = nil
|
21
20
|
key = nil
|
22
21
|
divisor = nil
|
23
22
|
percentile = nil
|
23
|
+
frequency = nil
|
24
24
|
|
25
25
|
o.banner = "usage: exprc list|show|explain|test|create|destroy|version [options]"
|
26
26
|
o.on("-n", "--name n", String, "name of metric") { |n| name = n }
|
27
27
|
o.on("-t", "--type t", String, "type of metric") { |t| type = t }
|
28
28
|
o.on("-w", "--window w", Integer, "window of metric in seconds") { |w| window = w }
|
29
|
-
o.on("-f", "--frequency f", Integer, "frequency of metric emits in seconds") { |f| frequency = f }
|
30
29
|
o.on("-p", "--predicate p", String, "predicate data in json") { |p| predicate = p }
|
31
30
|
o.on("-r", "--predicate2 r", String, "second predicate data in json") { |r| predicate2 = r }
|
32
31
|
o.on("-v", "--value v", String, "value key") { |v| value = v }
|
33
32
|
o.on("-k", "--key k", String, "partitioning key") { |k| key = k }
|
34
33
|
o.on("-i", "--divisor i", Float, "metric divisor") { |i| divisor = i }
|
35
34
|
o.on("-l", "--percentile l", Integer, "percentile value") { |l| percentile = l }
|
35
|
+
o.on("-f", "--frequency f", Integer, "frequency of metric emits in seconds (default: 3)") { |f| frequency = f }
|
36
36
|
o.on("-h", "--help", "display this help") { abort(o.to_s) }
|
37
37
|
o.parse!
|
38
38
|
action = ARGV.shift
|
@@ -58,7 +58,7 @@ ARGV.options do |o|
|
|
58
58
|
begin
|
59
59
|
case action
|
60
60
|
when "version"
|
61
|
-
puts("0.0.
|
61
|
+
puts("0.0.8")
|
62
62
|
when "list"
|
63
63
|
names = JSON.parse(RestClient.get("#{exprd_api_url}/metrics"))
|
64
64
|
names.each do |name|
|
data/exprc.gemspec
CHANGED