pub struct RequestMetrics {
pub total_requests: u64,
pub requests_per_second: f64,
pub avg_response_time_ms: f64,
pub p95_response_time_ms: f64,
pub error_rate: f64,
pub top_request_types: Vec<(String, u64)>,
}Expand description
Request-related metrics
Fields§
§total_requests: u64Total requests processed
requests_per_second: f64Requests per second (average)
avg_response_time_ms: f64Average response time
p95_response_time_ms: f6495th percentile response time
error_rate: f64Error rate percentage
top_request_types: Vec<(String, u64)>Most frequent request types
Trait Implementations§
Source§impl Clone for RequestMetrics
impl Clone for RequestMetrics
Source§fn clone(&self) -> RequestMetrics
fn clone(&self) -> RequestMetrics
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 RequestMetrics
impl Debug for RequestMetrics
Source§impl<'de> Deserialize<'de> for RequestMetrics
impl<'de> Deserialize<'de> for RequestMetrics
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 RequestMetrics
impl RefUnwindSafe for RequestMetrics
impl Send for RequestMetrics
impl Sync for RequestMetrics
impl Unpin for RequestMetrics
impl UnsafeUnpin for RequestMetrics
impl UnwindSafe for RequestMetrics
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