ResourceConsumptionEvent

data class ResourceConsumptionEvent(val nt: Long = System.nanoTime(), val ts: Long = System.currentTimeMillis(), val rts: Long? = null, val unit: String, val resource: String, val v: Double) : ResourceEvent

Represents an event describing an ad-hoc resource consumption.

Constructors

Link copied to clipboard
constructor(nt: Long = System.nanoTime(), ts: Long = System.currentTimeMillis(), rts: Long? = null, unit: String, resource: String, v: Double)

Properties

Link copied to clipboard
open override val nt: Long

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

Link copied to clipboard
open override val resource: String

The name of the resource

Link copied to clipboard
val rts: Long? = null

Resource time stamp; received from the sut

Link copied to clipboard
open override val ts: Long

Event timestamp in milliseconds.

Link copied to clipboard
open override val unit: String

The entity managing the reported resource

Link copied to clipboard
val v: Double

The value of the resource

Functions

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