add NATS EVENT

This commit is contained in:
mr
2026-01-12 15:40:37 +01:00
parent be770ec763
commit c35b06e0bc
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -17,6 +17,7 @@ const (
REMOVE NATSMethod = iota
CREATE
DISCOVERY
WORKFLOW_EVENT
)
// NameToMethod returns the NATSMethod enum value from a string