pub struct MetricsSnapshot {
pub uptime: Duration,
pub request_counts: HashMap<u16, u64>,
pub active_connections: u64,
pub bytes_served: u64,
pub avg_response_time: Duration,
pub p95_response_time: Duration,
pub error_counts: HashMap<String, u64>,
pub health_status: HealthStatus,
}Expand description
Snapshot of current metrics
Fields§
§uptime: DurationServer uptime
request_counts: HashMap<u16, u64>Request counts by status code
active_connections: u64Current active connections
bytes_served: u64Total bytes served
avg_response_time: DurationAverage response time
p95_response_time: Duration95th percentile response time
error_counts: HashMap<String, u64>Error counts by type
health_status: HealthStatusOverall health status
Implementations§
Trait Implementations§
Source§impl Clone for MetricsSnapshot
impl Clone for MetricsSnapshot
Source§fn clone(&self) -> MetricsSnapshot
fn clone(&self) -> MetricsSnapshot
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 moreAuto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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