pub struct EndpointMetrics {
pub request_count: u64,
pub avg_latency_ms: f64,
pub p95_latency_ms: u64,
pub p99_latency_ms: u64,
pub error_count: u64,
pub error_rate: f64,
}Expand description
Endpoint-specific metrics
Fields§
§request_count: u64Request count
avg_latency_ms: f64Average latency (ms)
p95_latency_ms: u64P95 latency (ms)
p99_latency_ms: u64P99 latency (ms)
error_count: u64Error count
error_rate: f64Error rate (0.0-1.0)
Implementations§
Trait Implementations§
Source§impl Clone for EndpointMetrics
impl Clone for EndpointMetrics
Source§fn clone(&self) -> EndpointMetrics
fn clone(&self) -> EndpointMetrics
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 EndpointMetrics
impl Debug for EndpointMetrics
Source§impl Default for EndpointMetrics
impl Default for EndpointMetrics
Source§impl<'de> Deserialize<'de> for EndpointMetrics
impl<'de> Deserialize<'de> for EndpointMetrics
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
Auto Trait Implementations§
impl Freeze for EndpointMetrics
impl RefUnwindSafe for EndpointMetrics
impl Send for EndpointMetrics
impl Sync for EndpointMetrics
impl Unpin for EndpointMetrics
impl UnwindSafe for EndpointMetrics
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