Class: Morpheus::Cli::MonitoringAppsCommand
- Inherits:
-
Object
- Object
- Morpheus::Cli::MonitoringAppsCommand
- Includes:
- CliCommand, MonitoringHelper
- Defined in:
- lib/morpheus/cli/monitoring_apps_command.rb
Instance Attribute Summary
Attributes included from CliCommand
Instance Method Summary collapse
- #connect(opts) ⇒ Object
- #handle(args) ⇒ Object
-
#initialize ⇒ MonitoringAppsCommand
constructor
A new instance of MonitoringAppsCommand.
Methods included from MonitoringHelper
#check_type_for_id, #check_type_for_name, #check_type_for_name_or_id, #find_app_by_id, #find_app_by_name, #find_app_by_name_or_id, #find_check_by_id, #find_check_by_name, #find_check_by_name_or_id, #find_check_group_by_id, #find_check_group_by_name, #find_check_group_by_name_or_id, #find_contact_by_id, #find_contact_by_name, #find_contact_by_name_or_id, #find_incident_by_id, #format_monitoring_check_last_metric, #format_monitoring_check_status, #format_monitoring_check_type, #format_monitoring_incident_status, #format_monitoring_issue_attachment_type, #format_monitoring_issue_status, #format_severity, #get_available_check_types, included, #monitoring_interface, #print_check_history_table, #print_check_notifications_table, #print_checks_table, #print_incident_history_table, #print_incident_notifications_table, #print_incidents_table
Methods included from CliCommand
#build_common_options, #build_option_type_options, #command_name, #default_subcommand, #establish_remote_appliance_connection, #full_command_usage, #handle_subcommand, included, #interactive?, #my_help_command, #my_terminal, #my_terminal=, #parse_id_list, #print, #print_error, #puts, #puts_error, #raise_command_error, #run_command_for_each_arg, #subcommand_aliases, #subcommand_usage, #subcommands, #usage, #verify_access_token!
Constructor Details
#initialize ⇒ MonitoringAppsCommand
Returns a new instance of MonitoringAppsCommand.
14 15 16 |
# File 'lib/morpheus/cli/monitoring_apps_command.rb', line 14 def initialize() # @appliance_name, @appliance_url = Morpheus::Cli::Remote.active_appliance end |
Instance Method Details
#connect(opts) ⇒ Object
18 19 20 21 |
# File 'lib/morpheus/cli/monitoring_apps_command.rb', line 18 def connect(opts) @api_client = establish_remote_appliance_connection(opts) @monitoring_interface = Morpheus::APIClient.new(@access_token,nil,nil, @appliance_url).monitoring end |
#handle(args) ⇒ Object
23 24 25 |
# File 'lib/morpheus/cli/monitoring_apps_command.rb', line 23 def handle(args) handle_subcommand(args) end |