Skip to main content

get_stats_digest

Function get_stats_digest 

Source
pub async fn get_stats_digest(
    scheduler: State<'_, Scheduler>,
    range: Option<String>,
) -> Result<Digest, String>
Expand description

Aggregate the persistent event log into a digest for the Insights tab. range is "week" (default) or "month". Reads events.jsonl every call — small enough to be cheap, large enough that the renderer should debounce range toggles.