docs: def do_alarm_history_list(mc, args):
      '''List alarms state history.'''
      fields = {}
      if args.dimensions:
          fields['dimensions'] = utils.format_parameters(args.dimensions)
      if args.starttime:
          _translate_starttime(args)
          fields['start_time'] = args.starttime
      if args.endtime:
          fields['end_time'] = args.endtime
      if args.limit:
          fields['limit'] = args.limit
      if args.offset:
          fields['offset'] = args.offset
      try:
          alarm = mc.alarms.history_list(**fields)
      except (osc_exc.ClientException, k_exc.HttpError) as he:
          raise osc_exc.CommandError('%s\n%s' % (he.message, he.details))
      else:
          output_alarm_history(args, alarm)