watcherclient.v1.action_plan_shell module

class watcherclient.v1.action_plan_shell.CancelActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Cancel action plan command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.CancelActionPlan (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class watcherclient.v1.action_plan_shell.DeleteActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Command

Delete action plan command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.DeleteActionPlan (WARNING)>
take_action(parsed_args)[source]

Override to do something useful.

The returned value will be returned by the program.

class watcherclient.v1.action_plan_shell.ListActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.Lister

List information on retrieved action plans.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.ListActionPlan (WARNING)>
take_action(parsed_args)[source]

Return a tuple containing the column names and an iterable containing the data to be listed.

class watcherclient.v1.action_plan_shell.ShowActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Show detailed information about a given action plan.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.ShowActionPlan (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class watcherclient.v1.action_plan_shell.StartActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Start action plan command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.StartActionPlan (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

class watcherclient.v1.action_plan_shell.UpdateActionPlan(app, app_args, cmd_name=None)[source]

Bases: watcherclient.common.command.ShowOne

Update action plan command.

get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.action_plan_shell.UpdateActionPlan (WARNING)>
take_action(parsed_args)[source]

Return a two-part tuple with a tuple of column names and a tuple of values.

watcherclient.v1.action_plan_shell.format_global_efficacy(global_efficacy)[source]