pub struct RequestMetrics {
pub total_requests: u64,
pub successful_requests: u64,
pub failed_requests: u64,
pub avg_response_time_ms: f64,
pub p95_response_time_ms: f64,
pub p99_response_time_ms: f64,
pub active_requests: u64,
pub requests_by_tool: HashMap<String, u64>,
pub response_times_by_tool: HashMap<String, Vec<f64>>,
pub rate_limit_hits: u64,
pub requests_per_second: f64,
pub last_updated: u64,
}Expand description
Request performance metrics
Fields§
§total_requests: u64Total number of requests
successful_requests: u64Successful requests
failed_requests: u64Failed requests
avg_response_time_ms: f64Average response time in milliseconds
p95_response_time_ms: f6495th percentile response time
p99_response_time_ms: f6499th percentile response time
active_requests: u64Current active requests
requests_by_tool: HashMap<String, u64>Requests per tool
response_times_by_tool: HashMap<String, Vec<f64>>Response times by tool
rate_limit_hits: u64Rate limiting hits
requests_per_second: f64Request throughput (requests per second)
last_updated: u64Last update timestamp
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 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RequestMetrics
impl Debug for RequestMetrics
Source§impl Default for RequestMetrics
impl Default 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 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