CheckSideCarHealth

Function CheckSideCarHealth 

Source
pub fn CheckSideCarHealth(SideCarIdentifier: &str) -> Result<bool, VineError>
Expand description

Checks the health status of a connected sidecar.

Health is determined by:

  • Connection exists in the pool
  • Last activity within health check interval
  • Failure count below threshold

§Parameters

  • SideCarIdentifier: Unique identifier of the sidecar to check

§Returns

  • Ok(true): Sidecar is healthy and responsive
  • Ok(false): Sidecar exists but may have issues
  • Err(VineError): Sidecar not connected

§Example

let healthy = CheckSideCarHealth("cocoon-main")?;