Read your alerts in incident.io.
Alerts are events ingested from third parties by alert sources. They can trigger incidents and escalations, as configured in alert routes. To view your alerts, you can list all alerts, or show a single alert. If you'd like to view only alerts that are currently firing, you can filter by status. To view the alert that was created for an event in your external system, filter by deduplication key.
If you'd like to view alerts connected to a particular incident, you can list incident alerts. You can filter by incident_id to find all alerts attached to a particular incident, or by alert_id to find the incident that a particular alert triggered.
List all alerts for your account.
This endpoint supports a number of filters, which can help find alerts matching certain criteria. These filters work similarly to the filters on the incidents endpoint, where a field is specified alongside a comparison operator in the query string.
Note that:
Find all alerts with deduplication_key ABC:
curl --get 'https://api.incident.io/v2/alerts' \
--data 'deduplication_key[is]=ABC'
Find all alerts in a firing state:
curl --get 'https://api.incident.io/v2/alerts' \
--data 'status[one_of]=firing'
OK response.
{- "alerts": [
- {
- "alert_source_id": "01GW2G3V0S59R238FAHPDS1R66",
- "attributes": [
- {
- "array_value": [
- {
- "catalog_entry": {
- "catalog_type_id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Primary On-call"
}, - "label": "Payments Team",
- "literal": "SEV123"
}
], - "attribute": {
- "array": false,
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "name": "service",
- "type": "CatalogEntry[\"01GW2G3V0S59R238FAHPDS1R67\"]"
}, - "value": {
- "catalog_entry": {
- "catalog_type_id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Primary On-call"
}, - "label": "Payments Team",
- "literal": "SEV123"
}
}
], - "created_at": "2021-08-17T13:28:57.801578Z",
- "deduplication_key": "4293868629",
- "description": "CPU on the payments service has exceeded 75 percent for 5 minutes",
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "resolved_at": "2021-08-17T14:28:57.801578Z",
- "status": "firing",
- "title": "*errors.withMessage: PG::Error failed to connect",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
], - "pagination_meta": {
- "after": "01FCNDV6P870EA6S7TK1DSYDG0",
- "page_size": 25
}
}
{- "alert": {
- "alert_source_id": "01GW2G3V0S59R238FAHPDS1R66",
- "attributes": [
- {
- "array_value": [
- {
- "catalog_entry": {
- "catalog_type_id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Primary On-call"
}, - "label": "Payments Team",
- "literal": "SEV123"
}
], - "attribute": {
- "array": false,
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "name": "service",
- "type": "CatalogEntry[\"01GW2G3V0S59R238FAHPDS1R67\"]"
}, - "value": {
- "catalog_entry": {
- "catalog_type_id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "id": "01FCNDV6P870EA6S7TK1DSYDG0",
- "name": "Primary On-call"
}, - "label": "Payments Team",
- "literal": "SEV123"
}
}
], - "created_at": "2021-08-17T13:28:57.801578Z",
- "deduplication_key": "4293868629",
- "description": "CPU on the payments service has exceeded 75 percent for 5 minutes",
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "resolved_at": "2021-08-17T14:28:57.801578Z",
- "status": "firing",
- "title": "*errors.withMessage: PG::Error failed to connect",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}
}
List the connections between incidents and alerts
OK response.
{- "incident_alerts": [
- {
- "alert": {
- "alert_source_id": "01GW2G3V0S59R238FAHPDS1R66",
- "created_at": "2021-08-17T13:28:57.801578Z",
- "deduplication_key": "4293868629",
- "description": "CPU on the payments service has exceeded 75 percent for 5 minutes",
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "resolved_at": "2021-08-17T14:28:57.801578Z",
- "status": "firing",
- "title": "*errors.withMessage: PG::Error failed to connect",
- "updated_at": "2021-08-17T13:28:57.801578Z"
}, - "alert_route_id": "01GW2G3V0S59R238FAHPDS1R67",
- "id": "01GW2G3V0S59R238FAHPDS1R66",
- "incident": {
- "external_id": 123,
- "id": "01FDAG4SAP5TYPT98WGR2N7W91",
- "name": "Our database is sad",
- "reference": "INC-123",
- "status_category": "triage",
- "summary": "Our database is really really sad, and we don't know why yet.",
- "visibility": "public"
}
}
], - "pagination_meta": {
- "after": "01FCNDV6P870EA6S7TK1DSYDG0",
- "page_size": 25
}
}