watcherclient.v1.strategy_shell module

class watcherclient.v1.strategy_shell.ListStrategy(app: cliff.app.App, app_args: Optional[argparse.Namespace], cmd_name: Optional[str] = None)[source]

Bases: watcherclient.common.command.Lister

List information on retrieved strategies.

app_dist_name: Optional[str]
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Run command.

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

class watcherclient.v1.strategy_shell.ShowStrategy(app: cliff.app.App, app_args: Optional[argparse.Namespace], cmd_name: Optional[str] = None)[source]

Bases: watcherclient.common.command.ShowOne

Show detailed information about a given strategy.

app_dist_name: Optional[str]
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

log = <Logger watcherclient.v1.strategy_shell.ShowStrategy (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.strategy_shell.StateStrategy(app: cliff.app.App, app_args: Optional[argparse.Namespace], cmd_name: Optional[str] = None)[source]

Bases: watcherclient.common.command.Lister

Retrieve information about strategy requirements.

app_dist_name: Optional[str]
get_parser(prog_name)[source]

Return an argparse.ArgumentParser.

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

Run command.

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