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 degradedStructs§
- Component
Health - Health state for a single named component.
- Health
Report - Aggregated health report for all registered components.
- Health
Reporter - Collects component-level health checks and produces a
HealthReport.
Enums§
- Health
Status - The health status of a single component.