Expand description
Shared types for the analytics library.
These types are used by both CLI commands and the FrankenTUI analytics dashboards, keeping query logic, bucketing, and derived-metric math in one place.
Structs§
- Analytics
Filter - CLI-agnostic analytics filter.
- Breakdown
Result - Result of a breakdown query.
- Breakdown
Row - A single row in a breakdown query result (one value of the chosen dimension).
- Coverage
Info - Coverage statistics.
- Derived
Metrics - Computed ratios from a
UsageBucket. - Drift
Info - Drift detection output.
- Drift
Signal - A single drift detection signal.
- Session
Scatter Point - A single per-session point for Explorer scatter plots.
- Status
Result - Full status result.
- Table
Info - Per-table statistics.
- Timeseries
Result - Result of a token/usage timeseries query.
- Tool
Report - Result of a tool usage report query.
- ToolRow
- A single row in a tool usage report.
- Unpriced
Model - A model name with no matching pricing entry, and its token volume.
- Unpriced
Models Report - Result of the unpriced-models query.
- Usage
Bucket - A single bucket of aggregated token / message metrics.
Enums§
- Analytics
Error - Analytics-specific error.
- Dim
- Dimension for breakdown queries — which column to GROUP BY.
- GroupBy
- Time-bucket granularity (library-side, no clap dependency).
- Metric
- Metric selector for breakdown/explorer queries.
- Source
Filter - Source filter for analytics queries.
Type Aliases§
- Analytics
Result - Convenience alias.