mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-07 21:48:39 +00:00
This change adds a force paramter to delete to allow the forcing of a delete to happen ignoring locking. This means that watch executions may fail when they go to update the watch. Watches executing from the scheduler will fail fast if the watch they are supposed to execute has been removed. Also move the history store updates outside of the watch locks. Fixes: elastic/elasticsearch#405 Original commit: elastic/x-pack-elasticsearch@57561b6f85
29 lines
739 B
JSON
29 lines
739 B
JSON
{
|
|
"watcher.delete_watch": {
|
|
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-delete-watch.html",
|
|
"methods": [ "DELETE" ],
|
|
"url": {
|
|
"path": "/_watcher/watch/{id}",
|
|
"paths": [ "/_watcher/watch/{id}" ],
|
|
"parts": {
|
|
"id": {
|
|
"type" : "string",
|
|
"description" : "Watch ID",
|
|
"required" : true
|
|
}
|
|
},
|
|
"params": {
|
|
"master_timeout": {
|
|
"type": "duration",
|
|
"description": "Specify timeout for watch write operation"
|
|
},
|
|
"force": {
|
|
"type": "boolean",
|
|
"description": "Specify if this request should be forced and ignore locks"
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|