pub struct MetricsSummary {Show 15 fields
pub total_sessions: u64,
pub total_tokens: TokenUsage,
pub total_tool_calls: u64,
pub active_sessions: u64,
pub prompt_cached_tool_outputs: u64,
pub tool_context_tokens_saved: u64,
pub total_compression_events: u64,
pub total_tokens_saved: u64,
pub non_tool_compression_tokens_saved: u64,
pub completed_sessions: u64,
pub awaiting_response_sessions: u64,
pub error_sessions: u64,
pub cancelled_sessions: u64,
pub total_sync_mismatches: u64,
pub sync_mismatch_breakdown: HashMap<String, u64>,
}Expand description
Overall metrics summary
Fields§
§total_sessions: u64Total number of sessions
total_tokens: TokenUsageTotal token usage
total_tool_calls: u64Total number of tool calls
active_sessions: u64Number of currently active sessions
prompt_cached_tool_outputs: u64Total number of prompt-side cached tool outputs.
tool_context_tokens_saved: u64Total tokens saved by prompt-side tool output compaction.
total_compression_events: u64Total number of context compression events.
total_tokens_saved: u64Total tokens saved by context compression.
non_tool_compression_tokens_saved: u64Total tokens saved by non-tool context compression.
completed_sessions: u64Number of completed sessions in the selected range.
awaiting_response_sessions: u64Number of sessions currently paused awaiting an external response.
error_sessions: u64Number of sessions that ended with an error.
cancelled_sessions: u64Number of sessions cancelled by the user.
total_sync_mismatches: u64Total number of execute sync mismatches observed for the filtered period.
sync_mismatch_breakdown: HashMap<String, u64>Breakdown of execute sync mismatches by stable reason label.
Trait Implementations§
Source§impl Clone for MetricsSummary
impl Clone for MetricsSummary
Source§fn clone(&self) -> MetricsSummary
fn clone(&self) -> MetricsSummary
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 MetricsSummary
impl Debug for MetricsSummary
Source§impl<'de> Deserialize<'de> for MetricsSummary
impl<'de> Deserialize<'de> for MetricsSummary
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 MetricsSummary
impl PartialEq for MetricsSummary
Source§fn eq(&self, other: &MetricsSummary) -> bool
fn eq(&self, other: &MetricsSummary) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MetricsSummary
impl Serialize for MetricsSummary
impl StructuralPartialEq for MetricsSummary
Auto Trait Implementations§
impl Freeze for MetricsSummary
impl RefUnwindSafe for MetricsSummary
impl Send for MetricsSummary
impl Sync for MetricsSummary
impl Unpin for MetricsSummary
impl UnsafeUnpin for MetricsSummary
impl UnwindSafe for MetricsSummary
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