pub struct InletHealth {Show 16 fields
pub latency: Option<f64>,
pub lost: Option<u64>,
pub dropped: u64,
pub resent: Option<u64>,
pub clock_uncertainty: Option<f64>,
pub clock_drift: Option<f64>,
pub recoveries: u64,
pub connected: bool,
pub on_udp: bool,
pub on_shm: bool,
pub compressed: bool,
pub encrypted: bool,
pub compression_ratio: Option<f64>,
pub buffered: usize,
pub buffer_capacity: usize,
pub gap_count: usize,
}Expand description
Stream health snapshots, gap descriptors, and live metadata (docs/health.md, docs/extensions.md).
Snapshot of the health of one crate::Inlet.
Fields§
§latency: Option<f64>Measured arrival latency of the most recent sample, in seconds
(arrival_local - (sample_timestamp + clock_offset)), or None before
the first sample arrives or before clock sync completes.
lost: Option<u64>Samples that never reached this inlet (seq/1), or None when the
source does not use seq/1.
dropped: u64Samples dropped by this inlet’s local buffer because the application pulled too slowly.
resent: Option<u64>Samples delivered from the outlet’s resume/1 history after a dropout,
or None when resume/1 is not active.
clock_uncertainty: Option<f64>Round-trip time of the latest clock offset estimate, in seconds, or
None before the first burst completes.
clock_drift: Option<f64>Estimated relative clock drift (d(offset)/d(t_local) in s/s) from the
opt-in drift model (docs/roadmap.md, step 17), or None before the
first burst completes.
recoveries: u64Number of times the inlet rebuilt its connection.
connected: boolTrue while the inlet reader is attached to a source.
on_udp: boolTrue while samples arrive over UDP (dgram/1).
on_shm: boolTrue while samples arrive through shared memory (shm/1).
compressed: boolTrue while wire compression (comp/1) is active on this connection.
encrypted: boolTrue while negotiated encryption (enc/1) is active on this connection.
compression_ratio: Option<f64>Ratio wire_bytes / raw_bytes observed on this connection when
comp/1 is active, or None when uncompressed or before data arrives.
buffered: usizeNumber of samples currently waiting in the inlet buffer.
buffer_capacity: usizeCapacity of the inlet buffer, in samples.
gap_count: usizeNumber of gaps currently recorded on this inlet.
Trait Implementations§
Source§impl Clone for InletHealth
impl Clone for InletHealth
Source§fn clone(&self) -> InletHealth
fn clone(&self) -> InletHealth
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more