mistralclient.commands.v2.cron_triggers module¶
- class mistralclient.commands.v2.cron_triggers.Create(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Create new trigger.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.cron_triggers.Create (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class mistralclient.commands.v2.cron_triggers.CronTriggerFormatter¶
Bases:
MistralFormatter
- COLUMNS = [('name', 'Name'), ('workflow_name', 'Workflow'), ('workflow_params', 'Params'), ('pattern', 'Pattern'), ('next_execution_time', 'Next execution time'), ('remaining_executions', 'Remaining executions'), ('created_at', 'Created at'), ('updated_at', 'Updated at')]¶
- static format(trigger=None, lister=False)¶
- class mistralclient.commands.v2.cron_triggers.Delete(app, app_args, cmd_name=None)¶
Bases:
Command
Delete trigger.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.cron_triggers.Delete (WARNING)>¶
- take_action(parsed_args)¶
Override to do something useful.
The returned value will be returned by the program.
- class mistralclient.commands.v2.cron_triggers.Get(app, app_args, cmd_name=None)¶
Bases:
ShowOne
Show specific cron trigger.
- get_parser(prog_name)¶
Return an
argparse.ArgumentParser
.
- log = <Logger mistralclient.commands.v2.cron_triggers.Get (WARNING)>¶
- take_action(parsed_args)¶
Return a two-part tuple with a tuple of column names and a tuple of values.
- class mistralclient.commands.v2.cron_triggers.List(app, app_args, cmd_name=None)¶
Bases:
MistralLister
List all cron triggers.
- log = <Logger mistralclient.commands.v2.cron_triggers.List (WARNING)>¶