InstanceSessionEvent

data class InstanceSessionEvent(val nanoTime: Long = System.nanoTime(), val systemTimestamp: Long = System.currentTimeMillis(), val id: String, val sessionId: Int, val event: SessionEvent) : InstanceEvent, StatusEvent

A wrapper event signaling that a session related event was executed (measurement / run was started / stopped, meter set on / off).

Constructors

Link copied to clipboard
constructor(nanoTime: Long = System.nanoTime(), systemTimestamp: Long = System.currentTimeMillis(), id: String, sessionId: Int, event: SessionEvent)

Properties

Link copied to clipboard

The actual event object.

Link copied to clipboard
open override val id: String

The id of the PowerGoblin instance.

Link copied to clipboard
open override val nanoTime: Long

Current value of the most precise available system timer, in nanoseconds.

Link copied to clipboard

Session's id

Link copied to clipboard
open override val systemTimestamp: Long

Current time in milliseconds.