Expand description
HTTP server for alertd daemon control and metrics.
Structs§
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_
status - handle_
task_ endpoint - Route handler for
/tasks/:task/:endpoint. - start_
server