pub struct DailyMetrics {
pub date: NaiveDate,
pub total_sessions: u32,
pub total_rounds: u32,
pub total_token_usage: TokenUsage,
pub total_tool_calls: u32,
pub model_breakdown: HashMap<String, TokenUsage>,
pub tool_breakdown: HashMap<String, u32>,
pub prompt_cached_tool_outputs: u64,
}Expand description
Aggregated metrics for a single day
Fields§
§date: NaiveDateDate for these metrics
total_sessions: u32Total number of sessions
total_rounds: u32Total number of rounds
total_token_usage: TokenUsageTotal token usage
total_tool_calls: u32Total number of tool calls
model_breakdown: HashMap<String, TokenUsage>Token usage breakdown by model
tool_breakdown: HashMap<String, u32>Tool call breakdown by tool name
prompt_cached_tool_outputs: u64Total number of prompt-side cached tool outputs observed on this day.
Trait Implementations§
Source§impl Clone for DailyMetrics
impl Clone for DailyMetrics
Source§fn clone(&self) -> DailyMetrics
fn clone(&self) -> DailyMetrics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DailyMetrics
impl Debug for DailyMetrics
Source§impl<'de> Deserialize<'de> for DailyMetrics
impl<'de> Deserialize<'de> for DailyMetrics
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DailyMetrics
impl PartialEq for DailyMetrics
Source§fn eq(&self, other: &DailyMetrics) -> bool
fn eq(&self, other: &DailyMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DailyMetrics
impl Serialize for DailyMetrics
impl StructuralPartialEq for DailyMetrics
Auto Trait Implementations§
impl Freeze for DailyMetrics
impl RefUnwindSafe for DailyMetrics
impl Send for DailyMetrics
impl Sync for DailyMetrics
impl Unpin for DailyMetrics
impl UnsafeUnpin for DailyMetrics
impl UnwindSafe for DailyMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more