TriggerMetaData

@Serializable
data class TriggerMetaData(val name: String = this::class.simpleName!!, val value: Double = 0.0, val error: String = "") : NodeMetaData(source)

Payload for the simple-threshold trigger family.

The interpretation of value depends on the krill.zone.shared.KrillApp subclass the node is wearing: for HighThreshold it is the upper bound, for LowThreshold the lower bound, for SilentAlarmMs the silence duration in milliseconds.

Default name uses the class's simpleName so a brand-new node already has a sensible label without the user editing anything.

Constructors

Link copied to clipboard
constructor(name: String = this::class.simpleName!!, value: Double = 0.0, error: String = "")

Properties

Link copied to clipboard
open override val error: String

Last known error message for this node, or empty string when healthy.

Link copied to clipboard
Link copied to clipboard