kumulant

StatKey

open class StatKey<R : Result>(val name: String)(source)

Typed handle to one entry in a StatSchema / GroupResult. Carries the result type R as a phantom type so reading back from a GroupResult produces a typed value rather than an Any:

object Telemetry : StatSchema() {
    val latency by series(Mean)
}
val result: WeightedMeanResult = group.read()[Telemetry.latency]

Keys come out of the schema's declarators (series, paired, vector, discrete, group); callers don't usually construct them by hand.

The R type parameter is a phantom marker; narrows the return type of GroupResult.get(key) without affecting the wire format.

Inheritors

Constructors

StatKey

constructor(name: String)(source)

Properties

name

Wire-side name registered on the underlying com.eignex.skema.Schema.