Class: Chef::Knife::AlertList

Inherits:
ChefAnalytics::Knife
  • Object
show all
Defined in:
lib/chef/knife/alert_list.rb

Instance Method Summary collapse

Instance Method Details

#runObject



53
54
55
56
57
58
59
60
# File 'lib/chef/knife/alert_list.rb', line 53

def run
  validate_and_set_params

  @rest = ChefAnalytics::ServerAPI.new(analytics_server_url, fetch_token)

  alerts = @rest.get("alerts#{query_params}")
  output(alerts)
end