Expand description
System health monitor agent.
MonitorAgent polls all registered actors every POLL_INTERVAL_SECS
seconds. If an actor’s last heartbeat exceeds TIMEOUT_SECS, an alert
is broadcast to the MQTT system/health topic.
Like crate::main_actor::MainActor, the monitor is protected from external kill commands.
Structs§
- Actor
Health Report - Health status of a single actor at a given point in time.
- Monitor
Agent - The health monitor actor.
Constants§
- POLL_
INTERVAL_ SECS - How often the monitor sweeps all actors (seconds).
- TIMEOUT_
SECS - How many seconds without a heartbeat before an alert is raised (seconds).