Expand description
The rate module defines the Rate type that helps estimate the occurrence of events over a period of time.
Structsยง
- A stable rate estimator that reports the rate of events in the past
interval
time. It returns the average rate betweeninterval
* 2 andinterval
while collecting the events happening betweeninterval
and now. - Input struct to custom functions for calculating rate. Includes the counts from the current interval, previous interval, the configured duration of an interval, and the fraction into the current interval that the sample was taken.