File tree 3 files changed +5
-5
lines changed
src/main/kotlin/org/opensearch/commons/alerting/action
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ object AlertingActions {
24
24
const val INDEX_COMMENT_ACTION_NAME = " cluster:admin/opensearch/alerting/comments/write"
25
25
const val SEARCH_COMMENTS_ACTION_NAME = " cluster:admin/opensearch/alerting/comments/search"
26
26
const val DELETE_COMMENT_ACTION_NAME = " cluster:admin/opensearch/alerting/comments/delete"
27
- const val UPDATE_MONITOR_STATE_ACTION_NAME = " cluster:admin/opensearch/alerting/monitor/toggle"
27
+ const val TOGGLE_MONITOR_ACTION_NAME = " cluster:admin/opensearch/alerting/monitor/toggle"
28
28
29
29
@JvmField
30
30
val INDEX_MONITOR_ACTION_TYPE =
@@ -91,6 +91,6 @@ object AlertingActions {
91
91
ActionType (DELETE_COMMENT_ACTION_NAME , ::DeleteCommentResponse )
92
92
93
93
@JvmField
94
- val UPDATE_MONITOR_STATE_ACTION_TYPE =
95
- ActionType (UPDATE_MONITOR_STATE_ACTION_NAME , ::UpdateMonitorStateResponse )
94
+ val TOGGLE_MONITOR_ACTION_TYPE =
95
+ ActionType (TOGGLE_MONITOR_ACTION_NAME , ::ToggleMonitorResponse )
96
96
}
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import org.opensearch.core.common.io.stream.StreamOutput
7
7
import org.opensearch.rest.RestRequest
8
8
import java.io.IOException
9
9
10
- class UpdateMonitorStateRequest : ActionRequest {
10
+ class ToggleMonitorRequest : ActionRequest {
11
11
val monitorId: String
12
12
val enabled: Boolean
13
13
val seqNo: Long
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import org.opensearch.core.xcontent.ToXContent.Params
12
12
import org.opensearch.core.xcontent.XContentBuilder
13
13
import java.io.IOException
14
14
15
- class UpdateMonitorStateResponse : BaseResponse {
15
+ class ToggleMonitorResponse : BaseResponse {
16
16
var id: String
17
17
var version: Long
18
18
var seqNo: Long
You can’t perform that action at this time.
0 commit comments