analytics
analytics
¶
Analytics API endpoints.
Exposes aggregated statistics computed by DaemonAnalytics as JSON
endpoints for the dashboard analytics page.
Classes¶
Functions¶
get_analytics
¶
Return the module-level analytics instance.
Raises RuntimeError if not yet configured.
Source code in src/marianne/dashboard/routes/analytics.py
set_analytics
¶
Configure the module-level analytics instance (called from app.py).
analytics_stats
async
¶
Full dashboard stats: job counts, success rate, spend, throughput.
analytics_costs
async
¶
Cost rollup: breakdown by job, total spend, avg cost per job.
analytics_validations
async
¶
Validation stats: pass rates by rule type, overall pass rate.
analytics_errors
async
¶
Error breakdown: counts by category (transient, rate_limit, permanent).
analytics_durations
async
¶
Duration stats: avg sheet duration, job totals, slowest sheets.