maple.utils.health.HealthMonitor.__init__
- HealthMonitor.__init__(check_interval: float = 30.0, on_unhealthy: Callable[[MonitoredContainer], None] | None = None)
Initialize the HealthMonitor.
Creates the monitor with specified check interval and optional unhealthy callback. The monitor must be started explicitly with start() to begin monitoring.
- Parameters:
check_interval – Seconds between health checks for all containers.
on_unhealthy – Optional callback invoked when a container becomes unhealthy. Receives MonitoredContainer as argument.