@utils.arg('<STR_LIT>', metavar='<STR_LIT>',<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>',<EOL>action='<STR_LIT>')<EOL>@utils.arg('<STR_LIT>', metavar='<STR_LIT>',<EOL>help='<STR_LIT>'<EOL>'<STR_LIT>')<EOL>@utils.arg('<STR_LIT>', metavar='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>@utils.arg('<STR_LIT>', metavar='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>@utils.arg('<STR_LIT>', metavar='<STR_LIT>',<EOL>help='<STR_LIT>')<EOL>def do_alarm_history_list(mc, args):
fields = {}<EOL>if args.dimensions:<EOL><INDENT>fields['<STR_LIT>'] = utils.format_parameters(args.dimensions)<EOL><DEDENT>if args.starttime:<EOL><INDENT>_translate_starttime(args)<EOL>fields['<STR_LIT>'] = args.starttime<EOL><DEDENT>if args.endtime:<EOL><INDENT>fields['<STR_LIT>'] = args.endtime<EOL><DEDENT>if args.limit:<EOL><INDENT>fields['<STR_LIT>'] = args.limit<EOL><DEDENT>if args.offset:<EOL><INDENT>fields['<STR_LIT>'] = args.offset<EOL><DEDENT>try:<EOL><INDENT>alarm = mc.alarms.history_list(**fields)<EOL><DEDENT>except (osc_exc.ClientException, k_exc.HttpError) as he:<EOL><INDENT>raise osc_exc.CommandError('<STR_LIT>' % (he.message, he.details))<EOL><DEDENT>else:<EOL><INDENT>output_alarm_history(args, alarm)<EOL><DEDENT>
List alarms state history.