From 88af050bc429f29b580048c2cc6657583479da73 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Wed, 6 Dec 2023 12:24:31 -0800 Subject: [PATCH] Added field to alert data model for cluster names. Signed-off-by: AWSHurneyt --- src/main/kotlin/org/opensearch/commons/alerting/model/Alert.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/org/opensearch/commons/alerting/model/Alert.kt b/src/main/kotlin/org/opensearch/commons/alerting/model/Alert.kt index 3dcd97bf..7da58a14 100644 --- a/src/main/kotlin/org/opensearch/commons/alerting/model/Alert.kt +++ b/src/main/kotlin/org/opensearch/commons/alerting/model/Alert.kt @@ -312,7 +312,8 @@ data class Alert( actionExecutionResults = sin.readList(::ActionExecutionResult), aggregationResultBucket = if (sin.readBoolean()) AggregationResultBucket(sin) else null, executionId = sin.readOptionalString(), - associatedAlertIds = sin.readStringList() + associatedAlertIds = sin.readStringList(), + clusters = sin.readOptionalStringList() ) fun isAcknowledged(): Boolean = (state == State.ACKNOWLEDGED)