InstanceReconfigureEvent

data class InstanceReconfigureEvent(val nt: Long = System.nanoTime(), val ts: Long = System.currentTimeMillis(), val id: String, val oldMeters: List<String>, val busyMeters: List<String>, val newMeters: List<String>) : InstanceEvent, StatusEvent

An event signaling that the PowerGoblin instance was reconfigured (discovery of new meters).

Constructors

Link copied to clipboard
constructor(nt: Long = System.nanoTime(), ts: Long = System.currentTimeMillis(), id: String, oldMeters: List<String>, busyMeters: List<String>, newMeters: List<String>)

Properties

Link copied to clipboard

List of meter IDs busy during the reconfiguration

Link copied to clipboard
open override val id: String

The id of the PowerGoblin instance.

Link copied to clipboard

List of new meter IDs after the reconfiguration

Link copied to clipboard
open override val nt: Long

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

Link copied to clipboard

List of meter IDs before the reconfiguration

Link copied to clipboard
open override val ts: Long

Event timestamp in milliseconds.

Functions

Link copied to clipboard
open override fun toString(): <Error class: unknown class>