Expand description
HTTP server for alertd daemon control and metrics.
Structs§
- Health
Response - The
/healthresponse: the watchdog’s view of the daemon’s liveness. - Seedling
Response - The
/seedlingresponse: what a co-located tool needs to know about this host’s Seedling access. - Server
State - Status
Response
Functions§
- handle_
health - handle_
index - handle_
metrics - handle_
reload POST /reload— refresh runtime state (re-register backup capabilities, pick up/etc/bestool/backupschanges) without restarting.- handle_
restart POST /restart— ask the daemon to exit so the service manager restarts it (e.g. to pick up a new binary). Triggered after a short delay so this response reaches the client before the daemon exits.- handle_
seedling - Report whether this host carries a Seedling identity for bestool.
- handle_
status - handle_
task_ endpoint - Route handler for
/tasks/:task/:endpoint. - start_
server