diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunner.kt b/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunner.kt index fd89acf8f..7ca0e4800 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunner.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/MonitorRunner.kt @@ -90,7 +90,7 @@ abstract class MonitorRunner { ): String { val config = getConfigForNotificationAction(action, monitorCtx) if (config.destination == null && config.channel == null) { - throw IllegalStateException("Unable to find a Notification Channel or Destination config with id [${action.id}]") + throw IllegalStateException("Unable to find a Notification Channel or Destination config with id [${action.destinationId}]") } // Adding a check on TEST_ACTION Destination type here to avoid supporting it as a LegacyBaseMessage type