GraphMetaData

@Serializable
data class GraphMetaData(val name: String = "", val sources: List<NodeIdentity> = emptyList(), val snapshot: Snapshot = Snapshot(), val timeRange: ComputeTimeRange = ComputeTimeRange.HOUR, val invocationTriggers: List<InvocationTrigger> = emptyList(), val nodeAction: NodeAction = NodeAction.EXECUTE, val error: String = "", val inputs: List<NodeIdentity> = emptyList()) : SourceMetaData(source)

Payload for a DataPoint.Graph node.

Implements SourceMetaData for consistency with the other source-bound node types, but only sources is meaningful — graphs read data, they don't write it. targets is kept empty.

Constructors

Link copied to clipboard
constructor(name: String = "", sources: List<NodeIdentity> = emptyList(), snapshot: Snapshot = Snapshot(), timeRange: ComputeTimeRange = ComputeTimeRange.HOUR, invocationTriggers: List<InvocationTrigger> = emptyList(), nodeAction: NodeAction = NodeAction.EXECUTE, error: String = "", inputs: List<NodeIdentity> = emptyList())

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
open override val inputs: List<NodeIdentity>

sets the nodes this node reads from to complete its work when invoked

Link copied to clipboard

The set of InvocationTriggers configured to wake this node. The node processor checks the incoming event against this list before doing any work. An empty list means "never auto-fire" — only manual execution.

Link copied to clipboard

Display name. Empty string falls back to "Graph" in krill.zone.shared.node.name. The previous default of "Data Graph" produced indistinguishable siblings under different parent DataPoints; callers (UI, MCP) are expected to supply a parent-derived name like "<parent> graph" at construction time.

Link copied to clipboard
open override val nodeAction: NodeAction

The action this node performs when it fires. Defaults to NodeAction.EXECUTE on every concrete implementation so that deserialising a payload that predates this field yields the original behaviour unchanged.

Link copied to clipboard
open override val snapshot: Snapshot

Not used for graphs but required by the SourceMetaData contract.

Link copied to clipboard
open override val sources: List<NodeIdentity>

Upstream nodes whose values feed this one. For a filter or executor this is the data being read; for a trigger it is the value being watched.

Link copied to clipboard

Lookback window the graph displays — drives the X-axis range.