Check alerts
GET/api/alerts
Compares CPU, memory and each disk with the thresholds in alerts: of your config. It reads and compares only: nothing is sent and nothing is recorded.
Authorizations
Authorizationstringheader
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
serverstring
The name of a remote server from List servers. homebutler runs the command on it over SSH and returns its answer. Leave it out, name the local server, or name a server that is not in the config, to read this machine.
Response
200 · application/jsonEach reading with its threshold and a status of ok, warning or critical. The example is shortened.
cpuobjectrequired
memoryobjectrequired
disksobject[]required
One entry per mounted disk.