Context Kernel Health Reporter (context_kernel/health.rs)

lean-ctx · rust/src/core/context_kernel/health.rs · rust · Apache-2.0
infra, analytics, lang:rust

Aggregates and reports health metrics for various Context Kernel subsystems. Use this to monitor system performance, cache efficiency, and optimization statistics.

// Source: https://github.com/yvgude/lean-ctx | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
//! Aggregated Context Kernel health reporting.

/// Snapshot of health and activity across Context Kernel subsystems.
#[derive(Debug, Clone, serde::Serialize)]
pub struct HealthReport {
    /// Whether kernel startup initialization completed.
    pub initialized: bool,
    /// Whether the kernel master switch is enabled.
    pub kernel_enabled: bool,
    /// Fraction of deduplication checks that were cache hits.
    pub dedup_hit_rate: f64,
    /// Number of deduplication checks performed.
    pub dedup_total_checks: usize,
    /// Number of schema optimizations applied.
    pub schema_o

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key