The gnocchiclient.v1.archive_policy_rule_cli
Module¶
- class gnocchiclient.v1.archive_policy_rule_cli.CliArchivePolicyRuleCreate(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Create an archive policy rule.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class gnocchiclient.v1.archive_policy_rule_cli.CliArchivePolicyRuleDelete(app, app_args, cmd_name=None)¶
Bases:
Command
Delete an archive policy rule.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class gnocchiclient.v1.archive_policy_rule_cli.CliArchivePolicyRuleList(app, app_args, cmd_name=None)¶
Bases:
Lister
List archive policy rules.
- COLS = ('name', 'archive_policy_name', 'metric_pattern')¶
- take_action(parsed_args)¶
Run command.
Return a tuple containing the column names and an iterable containing the data to be listed.
- class gnocchiclient.v1.archive_policy_rule_cli.CliArchivePolicyRuleShow(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Show an archive policy rule.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class gnocchiclient.v1.archive_policy_rule_cli.CliArchivePolicyRuleUpdate(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Update an archive policy rule.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.