Get health alerts
/api/health/alertsWhat Modbot watches about itself, who is emailed, and what is wrong now.
Needs the ViewOperationalLog permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Response Body
application/json
application/problem+json
application/problem+json
curl -X GET "https://example.com/api/health/alerts"{ "quietHours": 0, "storageWarnGb": 0.1, "emailConfigured": true, "lastCheckedAt": null, "watches": [ { "check": "string", "label": "string", "on": true, "problem": true, "since": null, "detail": null } ], "recipients": [ { "userId": "2c4a230c-5085-4924-a3e1-25fb4fc5965b", "username": "string", "email": null, "chosen": true } ]}Get machine usage GET
Processor use, memory and disk activity over the last half hour. Every figure is this server's own use of the machine, not the whole machine's: in a container that is what the operator sized and pays for, and it is the only thing Modbot can measure without being told about its host. A figure is null on a host where it cannot be read honestly — the disk counters are Linux-only, and a memory limit exists only where something sets one. Null means unavailable, never zero. Readings are kept in memory only. Nothing here is stored, and the window is empty for the first few seconds after a restart: processor use and disk activity are rates, and a rate needs two readings. Needs the `ViewOperationalLog` permission.
Update health alerts PUT
Choose what Modbot watches about itself and who is emailed. Needs the `ManageSettings` permission.