diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/AcknowledgeAlertAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/AcknowledgeAlertAction.kt index 4673a7a1..48907120 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/AcknowledgeAlertAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/AcknowledgeAlertAction.kt @@ -20,6 +20,6 @@ import org.elasticsearch.action.ActionType class AcknowledgeAlertAction private constructor() : ActionType(NAME, ::AcknowledgeAlertResponse) { companion object { val INSTANCE = AcknowledgeAlertAction() - val NAME = "cluster:admin/alerting/alerts/ack" + val NAME = "cluster:admin/opendistro/alerting/alerts/ack" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteDestinationAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteDestinationAction.kt index b1b5f846..f8082155 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteDestinationAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteDestinationAction.kt @@ -21,6 +21,6 @@ import org.elasticsearch.action.delete.DeleteResponse class DeleteDestinationAction private constructor() : ActionType(NAME, ::DeleteResponse) { companion object { val INSTANCE = DeleteDestinationAction() - val NAME = "cluster:admin/alerting/destination/delete" + val NAME = "cluster:admin/opendistro/alerting/destination/delete" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteMonitorAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteMonitorAction.kt index d160ae7c..4d01c8b3 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteMonitorAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/DeleteMonitorAction.kt @@ -21,6 +21,6 @@ import org.elasticsearch.action.delete.DeleteResponse class DeleteMonitorAction private constructor() : ActionType(NAME, ::DeleteResponse) { companion object { val INSTANCE = DeleteMonitorAction() - val NAME = "cluster:admin/alerting/monitor/delete" + val NAME = "cluster:admin/opendistro/alerting/monitor/delete" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/ExecuteMonitorAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/ExecuteMonitorAction.kt index a2281ce7..89dc8836 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/ExecuteMonitorAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/ExecuteMonitorAction.kt @@ -20,6 +20,6 @@ import org.elasticsearch.action.ActionType class ExecuteMonitorAction private constructor() : ActionType(NAME, ::ExecuteMonitorResponse) { companion object { val INSTANCE = ExecuteMonitorAction() - val NAME = "cluster:admin/alerting/monitor/execute" + val NAME = "cluster:admin/opendistro/alerting/monitor/execute" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/GetMonitorAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/GetMonitorAction.kt index 071f2ce9..eb58b4d8 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/GetMonitorAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/GetMonitorAction.kt @@ -20,6 +20,6 @@ import org.elasticsearch.action.ActionType class GetMonitorAction private constructor() : ActionType(NAME, ::GetMonitorResponse) { companion object { val INSTANCE = GetMonitorAction() - val NAME = "cluster:admin/alerting/monitor/get" + val NAME = "cluster:admin/opendistro/alerting/monitor/get" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexDestinationAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexDestinationAction.kt index fc98033f..b0a202f8 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexDestinationAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexDestinationAction.kt @@ -20,6 +20,6 @@ import org.elasticsearch.action.ActionType class IndexDestinationAction private constructor() : ActionType(NAME, ::IndexDestinationResponse) { companion object { val INSTANCE = IndexDestinationAction() - val NAME = "cluster:admin/alerting/destination/write" + val NAME = "cluster:admin/opendistro/alerting/destination/write" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexMonitorAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexMonitorAction.kt index 76f2fd45..2a93c154 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexMonitorAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/IndexMonitorAction.kt @@ -20,6 +20,6 @@ import org.elasticsearch.action.ActionType class IndexMonitorAction private constructor() : ActionType(NAME, ::IndexMonitorResponse) { companion object { val INSTANCE = IndexMonitorAction() - val NAME = "cluster:admin/alerting/monitor/write" + val NAME = "cluster:admin/opendistro/alerting/monitor/write" } } diff --git a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/SearchMonitorAction.kt b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/SearchMonitorAction.kt index 3d611dbb..f9a3c416 100644 --- a/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/SearchMonitorAction.kt +++ b/alerting/src/main/kotlin/com/amazon/opendistroforelasticsearch/alerting/action/SearchMonitorAction.kt @@ -21,6 +21,6 @@ import org.elasticsearch.action.search.SearchResponse class SearchMonitorAction private constructor() : ActionType(NAME, ::SearchResponse) { companion object { val INSTANCE = SearchMonitorAction() - val NAME = "cluster:admin/alerting/monitor/search" + val NAME = "cluster:admin/opendistro/alerting/monitor/search" } }