Skip to main content

Module analytics

Module analytics 

Source
Expand description

Top-level analytics command group spanning all metric domains.

AnalyticsCommands routes to the per-domain subcommand trees (overview, conversations, agents, tools, requests, sessions, content, traffic, costs). Each variant dispatches to its module’s execute; the _with_db path reuses a shared DatabaseContext pool instead of opening a new AppContext per command. The shared module holds the time-range and output formatting helpers used across all domains.

Modules§

agents
Agent performance analytics: stats, listing, trends, and per-agent deep dives.
content
Content performance analytics: engagement stats, top content, and trends.
conversations
Conversation analytics: aggregate stats, time-series trends, and listings.
costs
Cost analytics: spend summary, trends over time, and breakdown by model or agent.
overview
Dashboard overview rolling up every analytics domain into one snapshot.
requests
AI request analytics: aggregate stats, individual listings, trends, and model usage.
sessions
Session analytics: aggregate stats, trends, and a real-time live view.
shared
Cross-domain helpers shared by every analytics command.
tools
Tool usage analytics: aggregate stats, listings, trends, and per-tool deep dives.
traffic
Traffic analytics: source, geographic, device, and bot-traffic breakdowns.

Enums§

AnalyticsCommands

Functions§

execute
execute_with_db