Alerts
1 min read
GET /api/v1/sources/{source}/alerts
GET /api/v1/sources/{source}/alerts/{id}
POST /api/v1/sources/{source}/alerts
PUT /api/v1/sources/{source}/alerts/{id}
DELETE /api/v1/sources/{source}/alerts/{id}
Read needs alerts:read, write needs alerts:write. The body is the alert form's (a log alert, a metric alert, an anomaly or a no-data alert, with a query, a window,
a threshold and channels). An alert is reached through its source, so another source's alert id is a 404. Channel secrets are encrypted on the way in and masked on the way out.
Your plan limits the number of alerts across the team's sources; past it, creating one is a 422 on name.
Still stuck?
Email us and we will help you get it working.