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: u64
Total number of requests
successful_requests: u64
Successful requests
failed_requests: u64
Failed requests
avg_response_time_ms: f64
Average response time in milliseconds
p95_response_time_ms: f64
95th percentile response time
p99_response_time_ms: f64
99th percentile response time
active_requests: u64
Current 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: u64
Rate limiting hits
requests_per_second: f64
Request throughput (requests per second)
last_updated: u64
Last 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§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 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