Skip to main content

SinkStatistics

Type Alias SinkStatistics 

Source
pub type SinkStatistics = StorageStatistics<SinkStatisticsRecord, SinkStatisticsMetrics, ()>;
Expand description

Statistics maintained for sinks.

Aliased Type§

pub struct SinkStatistics { /* private fields */ }

Implementations§

Source§

impl SinkStatistics

Source

pub fn reset_gauges(&self)

Reset gauges to uninitialized state. This does not reset prometheus gauges, which will be overwritten with new values.

Source

pub fn snapshot(&self) -> Option<SinkStatisticsRecord>

Get a snapshot of the data, returning None if all gauges are not initialized.

This also resets counters, so that we continue to move diffs around.

Source

pub fn inc_messages_staged_by(&self, value: u64)

Increment the messages_staged stat.

Source

pub fn inc_bytes_staged_by(&self, value: u64)

Increment the bytes_received stat.

Source

pub fn inc_messages_committed_by(&self, value: u64)

Increment the messages_committed stat.

Source

pub fn inc_bytes_committed_by(&self, value: u64)

Increment the bytes_committed stat.