pub trait HealthSource: Send + Sync {
// Required methods
fn liveness(&self) -> HealthStatus;
fn readiness(&self) -> HealthStatus;
// Provided method
fn startup(&self) -> HealthStatus { ... }
}Expand description
Programmatic health state readable by platform adapters.
camel-health implements this; camel-platform-kubernetes consumes it via this trait.
Neither crate depends on the other.
Required Methods§
fn liveness(&self) -> HealthStatus
fn readiness(&self) -> HealthStatus
Provided Methods§
Sourcefn startup(&self) -> HealthStatus
fn startup(&self) -> HealthStatus
Default: Healthy — non-K8s implementors need not override.