mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-12 07:55:24 +00:00
This change adds the parameter `master_timeout` to the rest requests that can write to a watch PUT, ACK and DELETE. Also add support in the rest tests to verify that this is accepted. Fixes: elastic/elasticsearch#416 Original commit: elastic/x-pack-elasticsearch@4cc1c50f2c
28 lines
660 B
JSON
28 lines
660 B
JSON
{
|
|
"watcher.put_watch": {
|
|
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-put-watch.html",
|
|
"methods": [ "PUT", "POST" ],
|
|
"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"
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"description" : "The watch",
|
|
"required" : true
|
|
}
|
|
}
|
|
}
|