mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 21:48:39 +00:00
- now it's possible to ack specific actions via the `Ack Watch API` - Added tests for acking specific actions - Changed the watch status structure such that the action ack state can be referred to by `status.actions.<action_id>.ack` (instead of `status.actions.<action_id>.ack_status`... removed the extra redundant "_status") - As part of this work, also added validation for watch/action ids, such that we disallow having whitespaces in them. - Updated the docs around acking & throttling of watch actions Closes elastic/elasticsearch#531 Closes elastic/elasticsearch#537 Original commit: elastic/x-pack-elasticsearch@813e601bf5
29 lines
810 B
JSON
29 lines
810 B
JSON
{
|
|
"watcher.ack_watch": {
|
|
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-ack-watch.html",
|
|
"methods": [ "PUT", "POST" ],
|
|
"url": {
|
|
"path": "/_watcher/watch/{watch_id}/_ack",
|
|
"paths": [ "/_watcher/watch/{watch_id}/_ack", "/_watcher/watch/{watch_id}/{action_id}/_ack"],
|
|
"parts": {
|
|
"watch_id": {
|
|
"type" : "string",
|
|
"description" : "Watch ID",
|
|
"required" : true
|
|
},
|
|
"action_id": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of the action ids to be acked"
|
|
}
|
|
},
|
|
"params": {
|
|
"master_timeout": {
|
|
"type": "duration",
|
|
"description": "Specify timeout for watch write operation"
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|