From c35b06e0bc3c44ed11d0d3b724f2beb54afbec91 Mon Sep 17 00:00:00 2001 From: mr Date: Mon, 12 Jan 2026 15:40:37 +0100 Subject: [PATCH] add NATS EVENT --- models/resources/processing.go | 1 + tools/nats_caller.go | 1 + 2 files changed, 2 insertions(+) diff --git a/models/resources/processing.go b/models/resources/processing.go index b3371ef..02dac59 100755 --- a/models/resources/processing.go +++ b/models/resources/processing.go @@ -27,6 +27,7 @@ type ProcessingUsage struct { */ type ProcessingResource struct { AbstractInstanciatedResource[*ProcessingInstance] + IsEvent bool `json:"is_event,omitempty" bson:"is_event,omitempty"` Infrastructure enum.InfrastructureType `json:"infrastructure" bson:"infrastructure" default:"-1"` // Infrastructure is the infrastructure IsService bool `json:"is_service,omitempty" bson:"is_service,omitempty"` // IsService is a flag that indicates if the processing is a service Usage *ProcessingUsage `bson:"usage,omitempty" json:"usage,omitempty"` // Usage is the usage of the processing diff --git a/tools/nats_caller.go b/tools/nats_caller.go index d03e269..85a1c01 100644 --- a/tools/nats_caller.go +++ b/tools/nats_caller.go @@ -17,6 +17,7 @@ const ( REMOVE NATSMethod = iota CREATE DISCOVERY + WORKFLOW_EVENT ) // NameToMethod returns the NATSMethod enum value from a string