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: 82b6e4efb764b65224b6d5e137d6e1d233454130
4
- data.tar.gz: 368413d4c4db08069b21087d71de184d9c9cc271
3
+ metadata.gz: 6c21a896f761f0a266990e44970d877a631cb10e
4
+ data.tar.gz: 1e301f367d2a698a42b274c35024d75043750c02
5
5
  SHA512:
6
- metadata.gz: 70ef429e3877c460ce5f03236a6da1d5116e312eef7f7a1e86e7f0532bddab627a7dbaf78543081e1635a3bccc85528a3919e05037c949811283c565cfd8aa7b
7
- data.tar.gz: e0bb80a812d0e9c550030a527934f5de8ee6a27f12e22e5875c9d78f1a0e6190e24bc57818a3cdf3c29daac9996bad0cec1dbe2a91ae0346e9cdc0e01022218f
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 AuditList < ChefAnalytics::Knife
22
+ class AlertList < ChefAnalytics::Knife
23
23
  category "CHEF ANALYTICS"
24
24
 
25
- banner "knife audit list"
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 audits since the time provided (format: YYYY-MM-DDThh:mm:ssZ).'
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 audits before the time provided (format: YYYY-MM-DDThh:mm:ssZ).'
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
- audits = @rest.get("audits#{query_params}")
59
- output(audits)
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 AuditShow < ChefAnalytics::Knife
22
+ class AlertShow < ChefAnalytics::Knife
23
23
  category "CHEF ANALYTICS"
24
24
 
25
- banner "knife audit show <id>"
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("audits/#{run_id}")
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.1.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: 2014-11-20 00:00:00.000000000 Z
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/audit_list.rb
41
- - lib/chef/knife/audit_show.rb
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