Skip to main content

run_watch

Function run_watch 

Source
pub async fn run_watch(base_url: &str, interval_secs: u64) -> Result<()>
Expand description

Run the health watch loop. Exits only on CTRL+C or fatal error.

Each state change emits exactly one line to stdout. The first poll always emits regardless of state. All other output goes to stderr so it doesn’t pollute the event stream.