From b41a77e3199cf0d7e4404836ab52718556e994d1 Mon Sep 17 00:00:00 2001 From: Surya Sashank Nistala Date: Tue, 15 Aug 2023 11:36:08 -0700 Subject: [PATCH] update comment for search alerts method Signed-off-by: Surya Sashank Nistala --- .../src/main/kotlin/org/opensearch/alerting/AlertService.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/AlertService.kt b/alerting/src/main/kotlin/org/opensearch/alerting/AlertService.kt index a3f854b10..4ba28a408 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/AlertService.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/AlertService.kt @@ -349,7 +349,7 @@ class AlertService( startTime = Instant.now(), lastNotificationTime = currentTime, state = Alert.State.ACTIVE, - errorMessage = null, schemaVersion = -1, + errorMessage = null, schemaVersion = IndexUtils.alertIndexSchemaVersion, chainedAlertTrigger = ctx.trigger, executionId = executionId, workflow = workflow, @@ -846,7 +846,7 @@ class AlertService( } /** - * Searches for Alerts in the monitor's alertIndex. + * Searches for ACTIVE/ACKNOWLEDGED chained alerts in the workflow's alertIndex. * * @param monitorId The Monitor to get Alerts for * @param size The number of search hits (Alerts) to return