List incidents
Lists recorded incidents, newest first. The list leaves out the captured logs: pre_logs and post_logs are empty strings. Fetch one incident with Get incident to read them.
Authorizations
The token you start the server with: homebutler serve --token <token>, or web.token in the config file. Send it as Authorization: Bearer <token>. When the server has a token, every /api/ route except the CORS preflight requires it, reads included.
Query parameters
The most incidents to return. A value below 1 or one that is not a number is ignored, and the default applies.
Return only incidents for this watch target.
Response
200 · application/jsonThe incidents, or an empty array when nothing was recorded.
The incident id.
The watch target that restarted.
When the restart was detected.
Docker's restart count at detection.
When the previous run started, RFC 3339 in UTC, or an empty string when unknown.
When the current run started, RFC 3339 in UTC, or an empty string when unknown.
Logs captured before the restart. Empty in a list.
Logs captured at detection. Empty in a list.
The exit code of the previous run.
true when the kernel killed the process for memory.
true when the target is running again.
Where the incident was detected.
The failure class, for a Proxmox guest.
The guest state, for a Proxmox guest.