//! Metrics collection and aggregation system (re-exported from bamboo-agent-metrics).

pub mod aggregator;
pub mod bus;
pub mod collector;
pub mod events;
pub mod storage;
pub mod types;
pub mod worker;

pub use aggregator::{aggregate_monthly, aggregate_weekly, PeriodMetrics};
pub use bus::MetricsBus;
pub use collector::MetricsCollector;
pub use events::{ChatEvent, EventMeta, ForwardEvent, MetricsEvent, SystemEvent};
pub use storage::{MetricsError, MetricsResult, MetricsStorage, SqliteMetricsStorage};
pub use types::{
    DailyMetrics, ForwardEndpointMetrics, ForwardMetricsFilter, ForwardMetricsSummary,
    ForwardRequestMetrics, ForwardStatus, MetricsDateFilter, MetricsSummary, ModelMetrics,
    RoundMetrics, RoundStatus, SessionDetail, SessionMetrics, SessionMetricsFilter, SessionStatus,
    TokenUsage, ToolCallMetrics,
};
pub use worker::MetricsWorker;
