pub struct ReverseMetricsSnapshot {Show 13 fields
pub control_connections_active: u64,
pub control_connections_accepted_total: u64,
pub control_connections_rejected_total: u64,
pub control_reconnects_total: u64,
pub auth_failures_total: u64,
pub heartbeat_failures_total: u64,
pub drain_total: u64,
pub drain_duration_ms_total: u64,
pub streams_opened_total: u64,
pub streams_closed_total: u64,
pub stream_bytes_total: u64,
pub state_time_ms: [u64; 6],
pub last_error: Option<String>,
}Expand description
Serializable snapshot of reverse proxy metrics.
Fields§
§control_connections_active: u64§control_connections_accepted_total: u64§control_connections_rejected_total: u64§control_reconnects_total: u64§auth_failures_total: u64§heartbeat_failures_total: u64§drain_total: u64§drain_duration_ms_total: u64§streams_opened_total: u64§streams_closed_total: u64§stream_bytes_total: u64§state_time_ms: [u64; 6]Cumulative time spent in each ControlState, in milliseconds. Index order: [Disconnected, Connecting, Authenticating, Ready, Draining, Closed]
last_error: Option<String>Implementations§
Source§impl ReverseMetricsSnapshot
impl ReverseMetricsSnapshot
Sourcepub fn display_summary(&self) -> String
pub fn display_summary(&self) -> String
Format a human-readable summary for admin or log output.
Sourcepub fn state_ms(&self, state: ControlState) -> u64
pub fn state_ms(&self, state: ControlState) -> u64
Look up cumulative milliseconds spent in the given state.
Trait Implementations§
Source§impl Clone for ReverseMetricsSnapshot
impl Clone for ReverseMetricsSnapshot
Source§fn clone(&self) -> ReverseMetricsSnapshot
fn clone(&self) -> ReverseMetricsSnapshot
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 ReverseMetricsSnapshot
impl Debug for ReverseMetricsSnapshot
Auto Trait Implementations§
impl Freeze for ReverseMetricsSnapshot
impl RefUnwindSafe for ReverseMetricsSnapshot
impl Send for ReverseMetricsSnapshot
impl Sync for ReverseMetricsSnapshot
impl Unpin for ReverseMetricsSnapshot
impl UnsafeUnpin for ReverseMetricsSnapshot
impl UnwindSafe for ReverseMetricsSnapshot
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