Open and close Opsgenie alerts automatically.
Create an Opsgenie alert when a monitor fails and close it when the monitor recovers. Alerts carry an alias derived from the monitor, so repeated failures update one alert instead of creating a pile.
{
"message": "Checkout API is DOWN",
"alias": "pulsetrace:monitor:8f3a…",
"priority": "P1",
"description": "HTTP 503 from us-east, eu-west. Incident #4821.",
"details": { "incident_url": "https://app.pulsetrace.app/dashboard/incidents/4821" }
}