List alerts
GET
/api/alertsTimes something ran far outside this deployment's own normal, newest first. Recent alerts nobody has hidden by default; all=true lists every alert kept. Each carries the figure, what normal looks like, the window, and where in Modbot to look. Counts and places only -- never a person. Returns at most limit alerts (default 20, at most 100).
Needs the ViewAnalytics permission.
AuthorizationBearer <token>
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Query Parameters
all?boolean
limit?integer
Format
int32Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/alerts"{ "alerts": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "watcher": "string", "label": "string", "counts": "string", "at": "2019-08-24T14:15:22Z", "windowStart": "2019-08-24T14:15:22Z", "windowEnd": "2019-08-24T14:15:22Z", "now": 0.1, "normal": 0.1, "spread": 0.1, "score": 0.1, "sensitivity": "string", "where": null, "link": null, "text": null, "model": null, "dismissedAt": null, "dismissedBy": null, "discordPostedAt": null, "discordError": null } ]}