pub struct RouteSnapshot {
pub total_requests: u64,
pub total_errors: u64,
pub error_rate: f64,
pub latency_p50_ms: Option<u64>,
pub latency_p99_ms: Option<u64>,
pub avg_input_tokens: Option<u64>,
pub avg_output_tokens: Option<u64>,
pub last_used: Option<u64>,
pub by_endpoint: HashMap<String, EndpointSnapshot>,
}Expand description
Aggregate metrics for a single route.
Fields§
§total_requests: u64§total_errors: u64§error_rate: f64§latency_p50_ms: Option<u64>§latency_p99_ms: Option<u64>§avg_input_tokens: Option<u64>§avg_output_tokens: Option<u64>§last_used: Option<u64>Unix timestamp (seconds) of the most recent request on this route.
by_endpoint: HashMap<String, EndpointSnapshot>Per-endpoint breakdown within this route.
Trait Implementations§
Source§impl Debug for RouteSnapshot
impl Debug for RouteSnapshot
Auto Trait Implementations§
impl Freeze for RouteSnapshot
impl RefUnwindSafe for RouteSnapshot
impl Send for RouteSnapshot
impl Sync for RouteSnapshot
impl Unpin for RouteSnapshot
impl UnsafeUnpin for RouteSnapshot
impl UnwindSafe for RouteSnapshot
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more