@utils.arg('name', metavar='<name>', help='Name of the new monitor type')
@utils.service_type('monitor')
def do_type_create(cs, args):
 vtype = cs.monitor_types.create(args.name)
 _print_monitor_type_list([vtype])

@ utils . arg ( 'name' , metavar = '<name>' , help = 'Name of the new monitor type' ) @ utils . service_type ( 'monitor' ) def do_type_create ( cs , args ) : vtype = cs . monitor_types . create ( args . name ) _print_monitor_type_list ( [ vtype ] )
create a new monitor type .