ResourceConsumptionEvent

data class ResourceConsumptionEvent(val nanoTime: Long = System.nanoTime(), val systemTimestamp: Long = System.currentTimeMillis(), val resourceTimestamp: Long? = null, val unit: String, val resource: String, val value: Double) : ResourceEvent

Defines an event describing an ad-hoc resource consumption.

Parameters

unit

The entity managing the reported resources

resource

The name of the resource

value

The value of the resource

Constructors

Link copied to clipboard
constructor(nanoTime: Long = System.nanoTime(), systemTimestamp: Long = System.currentTimeMillis(), resourceTimestamp: Long? = null, unit: String, resource: String, value: Double)

Properties

Link copied to clipboard
open override val nanoTime: Long

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

Link copied to clipboard
open override val resource: String
Link copied to clipboard
val resourceTimestamp: Long? = null
Link copied to clipboard
open override val systemTimestamp: Long

Current time in milliseconds.

Link copied to clipboard
open override val unit: String
Link copied to clipboard

Functions

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