pub struct MetricsSnapshot {
pub connections: u64,
pub connections_refused_total: u64,
pub commands_total: u64,
pub commands_error_total: u64,
pub command_duration_microseconds_total: u64,
pub frame_bytes_in_total: u64,
pub frame_bytes_out_total: u64,
pub slow_commands_total: u64,
pub non_hello_first_frames_total: u64,
}Expand description
One consistent-enough read of the listener’s counters (SRV-030), exporter-agnostic by design.
Fields§
§connections: u64Currently open connections (gauge).
connections_refused_total: u64Accepts refused at the max_connections ceiling.
commands_total: u64Responses written, success or error.
commands_error_total: u64Error responses written.
command_duration_microseconds_total: u64Total dispatch time across all commands, microseconds.
frame_bytes_in_total: u64Request bytes as counted by the decoder’s length prefix (SRV-007).
frame_bytes_out_total: u64Response/push bytes as counted from the encoded buffers (SRV-007).
slow_commands_total: u64Commands slower than the configured threshold (SRV-030).
non_hello_first_frames_total: u64Connections whose first frame was not a canonical HELLO — the
lead-with-HELLO adoption signal (SPEC-008 handshake section).
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 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetricsSnapshot
Source§impl Debug for MetricsSnapshot
impl Debug for MetricsSnapshot
Source§impl Default for MetricsSnapshot
impl Default for MetricsSnapshot
Source§fn default() -> MetricsSnapshot
fn default() -> MetricsSnapshot
Returns the “default value” for a type. Read more
impl Eq for MetricsSnapshot
Source§impl PartialEq for MetricsSnapshot
impl PartialEq for MetricsSnapshot
impl StructuralPartialEq for MetricsSnapshot
Auto Trait Implementations§
impl Freeze for MetricsSnapshot
impl RefUnwindSafe for MetricsSnapshot
impl Send for MetricsSnapshot
impl Sync for MetricsSnapshot
impl Unpin for MetricsSnapshot
impl UnsafeUnpin for MetricsSnapshot
impl UnwindSafe for MetricsSnapshot
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