pub struct MetricsSnapshot {
pub total_model_calls: u64,
pub total_tool_calls: u64,
pub total_errors: u64,
pub total_input_tokens: u64,
pub total_output_tokens: u64,
pub avg_model_latency_ms: f64,
pub per_tool: HashMap<String, ToolMetrics>,
}Expand description
Snapshot of collected metrics.
Fields§
§total_model_calls: u64Total model calls.
total_tool_calls: u64Total tool calls.
total_errors: u64Total errors.
total_input_tokens: u64Total input tokens across all requests.
total_output_tokens: u64Total output tokens across all requests.
avg_model_latency_ms: f64Average model call latency in milliseconds.
per_tool: HashMap<String, ToolMetrics>Per-tool metrics.
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl Default for MetricsSnapshot
impl Default for MetricsSnapshot
Source§fn default() -> MetricsSnapshot
fn default() -> MetricsSnapshot
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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