knife-analytics 0.1.0 → 0.2.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c21a896f761f0a266990e44970d877a631cb10e
|
4
|
+
data.tar.gz: 1e301f367d2a698a42b274c35024d75043750c02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f480cbc4cc808c17444e19f86cf46591a847a9da1a2b8f001456f2f64aa4af66af2a865809f9bbc3f31d4b526a339cefec7535d9d6f2ba9749aa199d6c1f01cc
|
7
|
+
data.tar.gz: 3f730b27b13ec432c5bbe611ae66dcdec148dd42bb94f560f4e344b3bfe082ec032a8e32e5b6b19d3230fd243cc81cfed20617422fdead86a2f14355a8cc4b6f
|
@@ -19,10 +19,10 @@ require 'chef-analytics'
|
|
19
19
|
|
20
20
|
class Chef
|
21
21
|
class Knife
|
22
|
-
class
|
22
|
+
class AlertList < ChefAnalytics::Knife
|
23
23
|
category "CHEF ANALYTICS"
|
24
24
|
|
25
|
-
banner "knife
|
25
|
+
banner "knife alert list"
|
26
26
|
|
27
27
|
option :identity_server_url,
|
28
28
|
:long => "--identity-server-url HOST",
|
@@ -36,13 +36,13 @@ class Chef
|
|
36
36
|
:long => '--since TIME',
|
37
37
|
:short => '-s TIME',
|
38
38
|
:required => false,
|
39
|
-
:description => 'Find
|
39
|
+
:description => 'Find alerts since the time provided (format: YYYY-MM-DDThh:mm:ssZ).'
|
40
40
|
|
41
41
|
option :before,
|
42
42
|
:long => '--before TIME',
|
43
43
|
:short => '-b TIME',
|
44
44
|
:required => false,
|
45
|
-
:description => 'Find
|
45
|
+
:description => 'Find alerts before the time provided (format: YYYY-MM-DDThh:mm:ssZ).'
|
46
46
|
|
47
47
|
option :page,
|
48
48
|
:long => '--page N',
|
@@ -55,8 +55,8 @@ class Chef
|
|
55
55
|
|
56
56
|
@rest = ChefAnalytics::ServerAPI.new(analytics_server_url, fetch_token)
|
57
57
|
|
58
|
-
|
59
|
-
output(
|
58
|
+
alerts = @rest.get("alerts#{query_params}")
|
59
|
+
output(alerts)
|
60
60
|
end
|
61
61
|
|
62
62
|
private
|
@@ -19,10 +19,10 @@ require 'chef-analytics'
|
|
19
19
|
|
20
20
|
class Chef
|
21
21
|
class Knife
|
22
|
-
class
|
22
|
+
class AlertShow < ChefAnalytics::Knife
|
23
23
|
category "CHEF ANALYTICS"
|
24
24
|
|
25
|
-
banner "knife
|
25
|
+
banner "knife alert show <id>"
|
26
26
|
|
27
27
|
option :identity_server_url,
|
28
28
|
:long => "--identity-server-url HOST",
|
@@ -44,7 +44,7 @@ class Chef
|
|
44
44
|
|
45
45
|
@rest = ChefAnalytics::ServerAPI.new(analytics_server_root, fetch_token)
|
46
46
|
|
47
|
-
action = @rest.get("
|
47
|
+
action = @rest.get("alerts/#{run_id}")
|
48
48
|
output(action)
|
49
49
|
end
|
50
50
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: knife-analytics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chef Software, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: chef-analytics
|
@@ -37,8 +37,8 @@ files:
|
|
37
37
|
- Rakefile
|
38
38
|
- lib/chef/knife/action_list.rb
|
39
39
|
- lib/chef/knife/action_show.rb
|
40
|
-
- lib/chef/knife/
|
41
|
-
- lib/chef/knife/
|
40
|
+
- lib/chef/knife/alert_list.rb
|
41
|
+
- lib/chef/knife/alert_show.rb
|
42
42
|
- lib/chef/knife/notification_list.rb
|
43
43
|
- lib/chef/knife/notification_show.rb
|
44
44
|
- lib/chef/knife/rule_list.rb
|