Skip to main content

is_start_timestamp_reset

Function is_start_timestamp_reset 

Source
pub fn is_start_timestamp_reset(
    previous_start: i64,
    previous_ts: i64,
    current_start: i64,
    current_ts: i64,
) -> bool
Expand description

Whether a pair of start timestamps witnesses a counter reset, as Prometheus isStartTimestampReset decides it. A start timestamp of 0 means none was stated.