TriggerEvent

data class TriggerEvent(val nt: Long = System.nanoTime(), val ts: Long = System.currentTimeMillis(), val triggerType: TriggerType, val measurement: Int? = null, val run: Int? = null, val measurementStart: Long? = null, val runStart: Long? = null) : SessionEvent

Defines a trigger event indicating a status change.

Constructors

Link copied to clipboard
constructor(nt: Long = System.nanoTime(), ts: Long = System.currentTimeMillis(), triggerType: TriggerType, measurement: Int? = null, run: Int? = null, measurementStart: Long? = null, runStart: Long? = null)

Properties

Link copied to clipboard
val measurement: Int? = null
Link copied to clipboard
val measurementStart: Long? = null
Link copied to clipboard
open override val nt: Long

Event timestamp in nanoseconds (more precise, but overflows).

Link copied to clipboard
val run: Int? = null
Link copied to clipboard
val runStart: Long? = null
Link copied to clipboard

Trigger type

Link copied to clipboard
open override val ts: Long

Event timestamp in milliseconds.

Functions

Link copied to clipboard
open override fun toString(): String