Skip to main content

HealthMetricsRecorder

Trait HealthMetricsRecorder 

Source
pub trait HealthMetricsRecorder {
    // Required methods
    fn record_health_report(
        &self,
        scope: &'static str,
        status: HealthStatus,
        duration_seconds: f64,
    );
    fn record_health_component(
        &self,
        scope: &'static str,
        component: &HealthComponentReport,
        duration_seconds: f64,
    );
}
Expand description

Product-side bridge for recording health reports into a metrics backend.

Forge does not depend on a concrete metrics exporter here. Product crates implement this trait for their own recorder or a small adapter, then call SystemHealthReport::record_metrics after a health run.

Required Methods§

Source

fn record_health_report( &self, scope: &'static str, status: HealthStatus, duration_seconds: f64, )

Records the aggregate health result for scope.

Source

fn record_health_component( &self, scope: &'static str, component: &HealthComponentReport, duration_seconds: f64, )

Records one component result for scope.

Implementors§