pub struct ToolStats {
pub label: String,
pub calls: i64,
pub avg_us: f64,
pub min_us: i64,
pub max_us: i64,
pub p95_us: i64,
pub error_pct: f64,
pub total_bytes_in: i64,
pub total_bytes_out: i64,
}Expand description
Aggregated stats for one tool (or method).
Fields§
§label: StringTool name, or <method> for non-tool-call methods.
calls: i64Total number of calls.
avg_us: f64Average latency in microseconds.
min_us: i64Minimum latency in microseconds.
max_us: i64Maximum latency in microseconds.
p95_us: i6495th percentile latency in microseconds (approximate).
error_pct: f64Error percentage (0.0 to 100.0).
total_bytes_in: i64Total request bytes.
total_bytes_out: i64Total response bytes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolStats
impl RefUnwindSafe for ToolStats
impl Send for ToolStats
impl Sync for ToolStats
impl Unpin for ToolStats
impl UnsafeUnpin for ToolStats
impl UnwindSafe for ToolStats
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