kumulant

RateResult

@Serializable
@SerialName(value = "RateResult")
data class RateResult(val startTimestampNanos: Long, val totalValue: Double, val timestampNanos: Long) : Result, HasRate(source)

Cumulative rate: totalValue accumulated from startTimestampNanos to timestampNanos.

Constructors

RateResult

constructor(startTimestampNanos: Long, totalValue: Double, timestampNanos: Long)(source)

Properties

rate

open override val rate: Double(source)

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

startTimestampNanos

timestampNanos

totalValue

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).