Skip to content

Commit

Permalink
fix: change endpoint to match the code style for other APIs
Browse files Browse the repository at this point in the history
Signed-off-by: vikhy-aws <[email protected]>
  • Loading branch information
vikhy-aws committed Jan 22, 2025
1 parent a40061d commit 14148f6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)
}
Expand Down

0 comments on commit 14148f6

Please sign in to comment.