def parse_service_event(event, service="Service"):
    """Formats the event details as Discord alert"""
    return [
        {
            "name": service,
            "value": event["Trigger"]["Dimensions"][0]["value"],
            "inline": True,
        },
        {"name": "Alarm", "value": event["AlarmName"], "inline": True},
        {
            "name": "Description",
            "value": event.get("AlarmDescription", ""),
            "inline": True,
        },
        {"name": "Old State", "value": event["OldStateValue"], "inline": True},
        {"name": "Trigger", "value": event["Trigger"]["MetricName"], "inline": True},
        {"name": "Event", "value": event["NewStateReason"], "inline": True},
    ]