@utils.arg('monitor_id', metavar='<monitor-id>', help='ID of the monitor to snapshot')
@utils.arg('--force', metavar='<True|False>', help="Optional flag to indicate whether to snapshot a monitor even if it's attached to an instance. (Default=False)", default=False)
@utils.arg('--display-name', metavar='<display-name>', default=None, help='Optional snapshot name. (Default=None)')
@utils.arg('--display_name', help=argparse.SUPPRESS)
@utils.arg('--display-description', metavar='<display-description>', default=None, help='Optional snapshot description. (Default=None)')
@utils.arg('--display_description', help=argparse.SUPPRESS)
@utils.service_type('monitor')
def do_snapshot_create(cs, args):
 snapshot = cs.monitor_snapshots.create(args.monitor_id, args.force, args.display_name, args.display_description)
 _print_monitor_snapshot(snapshot)

@ utils . arg ( 'monitor_id' , metavar = '<monitor-id>' , help = 'ID of the monitor to snapshot' ) @ utils . arg ( '--force' , metavar = '<True|False>' , help = "Optional flag to indicate whether to snapshot a monitor even if it's attached to an instance. (Default=False)" , default = False ) @ utils . arg ( '--display-name' , metavar = '<display-name>' , default = None , help = 'Optional snapshot name. (Default=None)' ) @ utils . arg ( '--display_name' , help = argparse . SUPPRESS ) @ utils . arg ( '--display-description' , metavar = '<display-description>' , default = None , help = 'Optional snapshot description. (Default=None)' ) @ utils . arg ( '--display_description' , help = argparse . SUPPRESS ) @ utils . service_type ( 'monitor' ) def do_snapshot_create ( cs , args ) : snapshot = cs . monitor_snapshots . create ( args . monitor_id , args . force , args . display_name , args . display_description ) _print_monitor_snapshot ( snapshot )
add a new snapshot .