Package-level declarations

Types

Link copied to clipboard
@Serializable
data class DataPointMetaData(val name: String = "data-point-", val sourceId: String = "", val precision: Int = 2, val unit: String = "", val manualEntry: Boolean = true, val dataType: DataType = DataType.DOUBLE, val maxAge: Long = 0, val path: String = "", val error: String = "", val sources: List<NodeIdentity> = emptyList(), val snapshot: Snapshot = Snapshot(Clock.System.now().epochSeconds, 0.0), val invocationTriggers: List<InvocationTrigger> = emptyList(), val nodeAction: NodeAction = NodeAction.EXECUTE, val inputs: List<NodeIdentity> = emptyList()) : SourceMetaData

Payload for a DataPoint node.

Link copied to clipboard

Per-DataType catalogue of relevant filter and trigger node types.

Link copied to clipboard

The set of value semantics a DataPoint can carry.

Link copied to clipboard
@Serializable
data class Snapshot

Immutable (timestamp, value) tuple representing one observation captured by a DataPoint.

Functions

Link copied to clipboard

Returns this snapshot's Snapshot.value parsed as a Double, or 0.0 if the value isn't a parseable number. Defensive default keeps downstream math (graphs, calculations, threshold triggers) free of NumberFormatException handling boilerplate.