Skip to main content

HealthSource

Trait HealthSource 

Source
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§

Provided Methods§

Source

fn startup(&self) -> HealthStatus

Default: Healthy — non-K8s implementors need not override.

Implementors§