kumulant

SojournResult

@Serializable
@SerialName(value = "SojournResult")
data class SojournResult(val states: List<Long>, val totalNanosByState: List<Long>, val transitionsByState: List<Long>, val currentState: Long, val currentStateEnterTimestampNanos: Long, val timestampNanos: Long, val hasState: Boolean) : Result(source)

Per-state cumulative time, transition counts, and current-state dwell.

Constructors

SojournResult

constructor(states: List<Long>, totalNanosByState: List<Long>, transitionsByState: List<Long>, currentState: Long, currentStateEnterTimestampNanos: Long, timestampNanos: Long, hasState: Boolean)(source)

Properties

currentDwellNanos

Nanoseconds spent in the current state since it was last entered.

currentState

State key currently occupied, or Long.MIN_VALUE when no observation has landed yet.

currentStateEnterTimestampNanos

Timestamp (nanoseconds) at which the current state was entered.

hasState

False until the first DiscreteStat.update has been recorded.

states

Declared state alphabet, in the order passed to SojournStat.

timestampNanos

Timestamp (nanoseconds) at which the snapshot was taken.

totalNanosByState

Cumulative nanoseconds spent in each declared state, in states order.

transitionsByState

Number of transitions into each declared state, in states order. The first update counts as an entry into its state.