Module health

Module health 

Source
Expand description

Health check reporting for Kubernetes liveness and readiness probes Health check reporting for Kubernetes liveness and readiness probes.

Provides structured health-check types and a HealthReporter for aggregating component-level health into an overall HealthReport.

§Example

use stygian_graph::application::health::{HealthReporter, HealthStatus, ComponentHealth};

let mut reporter = HealthReporter::new();
reporter.register("database", HealthStatus::Healthy);
reporter.register("cache", HealthStatus::Degraded("High latency".to_string()));

let report = reporter.report();
assert!(report.is_ready());  // Degraded is still operational ⇒ ready
assert!(report.is_live());   // Still alive while degraded

Structs§

ComponentHealth
Health state for a single named component.
HealthReport
Aggregated health report for all registered components.
HealthReporter
Collects component-level health checks and produces a HealthReport.

Enums§

HealthStatus
The health status of a single component.