From 14148f6c11bd6187fe518d85ea262c3f2bfc49a9 Mon Sep 17 00:00:00 2001 From: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:39:58 -0800 Subject: [PATCH] fix: change endpoint to match the code style for other APIs Signed-off-by: vikhy-aws <191836418+vikhy-aws@users.noreply.github.com> --- .../alerting/resthandler/RestToggleMonitorAction.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestToggleMonitorAction.kt b/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestToggleMonitorAction.kt index 318f1ae3d..589e7508d 100644 --- a/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestToggleMonitorAction.kt +++ b/alerting/src/main/kotlin/org/opensearch/alerting/resthandler/RestToggleMonitorAction.kt @@ -42,15 +42,15 @@ class RestToggleMonitorAction : BaseRestHandler() { return mutableListOf( ReplacedRoute( PUT, - "${AlertingPlugin.MONITOR_BASE_URI}/{monitorID}/enable", + "${AlertingPlugin.MONITOR_BASE_URI}/{monitorID}/_enable", PUT, - "${AlertingPlugin.LEGACY_OPENDISTRO_MONITOR_BASE_URI}/{monitorID}/enable" + "${AlertingPlugin.LEGACY_OPENDISTRO_MONITOR_BASE_URI}/{monitorID}/_enable" ), ReplacedRoute( PUT, - "${AlertingPlugin.MONITOR_BASE_URI}/{monitorID}/disable", + "${AlertingPlugin.MONITOR_BASE_URI}/{monitorID}/_disable", PUT, - "${AlertingPlugin.LEGACY_OPENDISTRO_MONITOR_BASE_URI}/{monitorID}/disable" + "${AlertingPlugin.LEGACY_OPENDISTRO_MONITOR_BASE_URI}/{monitorID}/_disable" ) ) }