Skip to main content

interpolate

Function interpolate 

Source
fn interpolate(
    window: &FloatWindow<'_>,
    index: usize,
    t: i64,
    is_counter: bool,
) -> f64
Expand description

Prometheus interpolate between the samples at index and index + 1, at t: a counter that reset between them restarts from zero.