From dba0f20db562eaf1f55f323f6f643cbac413d07e Mon Sep 17 00:00:00 2001 From: Amir Malka Date: Mon, 7 Oct 2024 17:36:52 +0300 Subject: [PATCH] incident response Signed-off-by: Amir Malka --- pulsar/common/kdr/datastructures.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pulsar/common/kdr/datastructures.go b/pulsar/common/kdr/datastructures.go index 1f635a6..774d355 100644 --- a/pulsar/common/kdr/datastructures.go +++ b/pulsar/common/kdr/datastructures.go @@ -20,7 +20,11 @@ type RuntimeIncidentIngesterOnFinishedMessage struct { IncidentName string `json:"incidentName"` // incidentType.Name - ThreatName Severity string `json:"severity"` Resource identifiers.PortalDesignator `json:"resource"` // Pod, Node, Workload, Namespace, Cluster, etc. - ResponseUpdated bool `json:"responseUpdated,omitempty"` + Response *RuntimeIncidentResponse `json:"response,omitempty"` +} + +type RuntimeIncidentResponse struct { + Action string `json:"action"` } func (si *RuntimeIncidentIngesterOnFinishedMessage) GetLoggerFields() []zap.Field {