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

Link copied to clipboard
constructor(startTimestampNanos: Long, totalValue: 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
Link copied to clipboard
Link copied to clipboard

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

RateResult

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

rate

open override val rate: Double(source)

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

startTimestampNanos

timestampNanos

totalValue