firing, acknowledged, or resolved, and Squasher opens, acknowledges, or
resolves the matching incident.
What you need
- A script or tool that can send an HTTPS
POSTwith a custom header. - The Squasher CLI, signed in with write access to the project. See Alert sources.
Connect a sender
1
Create the connector
setup.endpoint and setup.secret from the output. In the examples below, they are in
SQUASHER_ALERT_ENDPOINT and SQUASHER_ALERT_SECRET.2
Send a firing alert
{"action": "opened", ...}.3
Resolve the alert
Send the same
alert_id with "status": "resolved", a new event_id, and a later
occurred_at. The response is {"action": "resolved", ...}.Fields
Squasher rejects a body with any other field, with422.
An
acknowledged event marks an open incident as acknowledged. If no incident is open for the
alert_id, Squasher ignores it and does not open one.
Limits
- Send the secret only in the
Authorization: Bearerheader or in thex-squasher-alert-secretheader. Never put it in the URL or the body. - Each request carries one alert. For many alerts, send many requests.
- Squasher ignores an event whose
occurred_atis older than the last event it applied for the samealert_id. A time more than 5 minutes in the future is replaced by the receive time.
Next steps
Alert sources
Limits, response codes, and secret rotation.
Route incidents
Send these incidents to the people on call.