Skip to main content

compute_stats

Function compute_stats 

Source
pub fn compute_stats(
    graph: &Graph,
    stat_keys: &[String],
) -> BTreeMap<String, AttrValue>
Expand description

Compute the mean of each metric in stat_keys over all internal (file) nodes. Zero/missing values are excluded (historical behaviour); a metric is emitted only when its average is positive. The key set is data-driven — the caller passes the tier-2 stat metrics (from the registry) plus coupling keys — so this module names no metric.