kumulant

DecayingRateResult

@Serializable
@SerialName(value = "DecayingRateResult")
data class DecayingRateResult(val rate: Double, val timestampNanos: Long) : Result, HasRate(source)

Exponentially time-decayed rate snapshot.

Constructors

Link copied to clipboard
constructor(rate: Double, timestampNanos: Long)

Properties

Link copied to clipboard
open override val rate: Double

Normalised rate in events per second (Hz). Zero when no observations have arrived.

Link copied to clipboard

Wall-clock timestamp (nanoseconds) of the snapshot, for downstream extrapolation.

Functions

Link copied to clipboard
open fun per(duration: Duration): Double

Rescale the throughput to a specific time duration. Equivalent to rate * duration.toDouble(DurationUnit.SECONDS).

DecayingRateResult

constructor(rate: Double, timestampNanos: Long)(source)

rate

open override val rate: Double(source)

Normalised rate in events per second (Hz). Zero when no observations have arrived.

timestampNanos

Wall-clock timestamp (nanoseconds) of the snapshot, for downstream extrapolation.