Expand description
Advanced analytics module for Claude Code usage analysis
Provides time series trends, forecasting, usage pattern detection, and actionable insights to optimize costs and productivity.
Re-exports§
pub use anomalies::detect_anomalies;pub use anomalies::Anomaly;pub use anomalies::AnomalyMetric;pub use anomalies::AnomalySeverity;pub use forecasting::forecast_usage;pub use forecasting::ForecastData;pub use forecasting::TrendDirection;pub use insights::generate_budget_alerts;pub use insights::generate_insights;pub use insights::Alert;pub use patterns::detect_patterns;pub use patterns::UsagePatterns;pub use trends::compute_trends;pub use trends::SessionDurationStats;pub use trends::TrendsData;
Modules§
- anomalies
- Anomaly detection for unusual spikes/drops in token usage or session costs
- forecasting
- Usage forecasting with linear regression
- insights
- Actionable insights generation
- patterns
- Usage pattern detection
- trends
- Time series trends analysis
Structs§
- Analytics
Data - Complete analytics data for a period
Enums§
- Period
- Period selection for analytics computation