IncomingWebHookMetaData

@Serializable
data class IncomingWebHookMetaData(val name: String = "", val path: String = "", val target: String = "", val method: HttpMethod = HttpMethod.GET, val sources: List<NodeIdentity> = emptyList(), val targets: List<NodeIdentity> = if (target.isNotEmpty()) { if (target.contains(":")) { val parts = target.split(":") listOf(NodeIdentity(parts.last(), parts.first())) } else { listOf(NodeIdentity(target, "")) } } else { emptyList() }, val executionSource: List<ExecutionSource> = emptyList(), val error: String = "") : TargetingNodeMetaData(source)

Payload for an IncomingWebHook trigger node.

Older payloads carried a single target: String in "<host>:<id>" format; the field is preserved in deprecated form so legacy persisted records still deserialise. Newly-created records use targets directly. The default value of targets is computed from a non-empty deprecated target so an existing record migrates on first read.

Constructors

Link copied to clipboard
constructor(name: String = "", path: String = "", target: String = "", method: HttpMethod = HttpMethod.GET, sources: List<NodeIdentity> = emptyList(), targets: List<NodeIdentity> = if (target.isNotEmpty()) { if (target.contains(":")) { val parts = target.split(":") listOf(NodeIdentity(parts.last(), parts.first())) } else { listOf(NodeIdentity(target, "")) } } else { emptyList() }, executionSource: List<ExecutionSource> = emptyList(), 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

The set of ExecutionSources 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

HTTP verb the trigger accepts — defaults to GET.

Link copied to clipboard
Link copied to clipboard

URL path the server exposes for this hook (e.g. "/webhook/garage-open").

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
Link copied to clipboard
open override val targets: List<NodeIdentity>

Downstream nodes this one writes to or actuates. May be empty for nodes that only side-effect outside the swarm (e.g. an SMTP executor).