mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-10 06:55:32 +00:00
Change watcher REST API call namespace to be watcher.
This change changes the API spec such that all of the watcher APIs are in the `watcher` namespace. Original commit: elastic/x-pack-elasticsearch@f409ab4569
This commit is contained in:
parent
2f18dd8269
commit
4482d8d2ba
@ -1,5 +1,5 @@
|
||||
{
|
||||
"ack_watch": {
|
||||
"watcher.ack": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-ack-watch.html",
|
||||
"methods": [ "PUT", "POST" ],
|
||||
"url": {
|
||||
@ -13,11 +13,6 @@
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"pretty": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty the output",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": null
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"delete_watch": {
|
||||
"watcher.delete": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-delete-watch.html",
|
||||
"methods": [ "DELETE" ],
|
||||
"url": {
|
||||
@ -13,11 +13,6 @@
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"pretty": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty the output",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": null
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"execute_watch": {
|
||||
"watcher.execute": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-execute-watch.html",
|
||||
"methods": [ "PUT", "POST" ],
|
||||
"url": {
|
||||
@ -13,11 +13,6 @@
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"pretty": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty the output",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"get_watch": {
|
||||
"watcher.get": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-get-watch.html",
|
||||
"methods": [ "GET" ],
|
||||
"url": {
|
||||
@ -13,11 +13,6 @@
|
||||
}
|
||||
},
|
||||
"params": {
|
||||
"pretty": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty the output",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": null
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"watcher_info": {
|
||||
"watcher.info": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-info.html",
|
||||
"methods": [ "GET" ],
|
||||
"url": {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"put_watch": {
|
||||
"watcher.put": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-put-watch.html",
|
||||
"methods": [ "PUT", "POST" ],
|
||||
"url": {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"restart_watcher": {
|
||||
"watcher.restart": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-service.html",
|
||||
"methods": [ "PUT" ],
|
||||
"url": {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"start_watcher": {
|
||||
"watcher.start": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-service.html",
|
||||
"methods": [ "PUT" ],
|
||||
"url": {
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"watcher_stats": {
|
||||
"watcher.stats": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-stats.html",
|
||||
"methods": [ "GET" ],
|
||||
"url": {
|
||||
@ -8,11 +8,6 @@
|
||||
"parts": {
|
||||
},
|
||||
"params": {
|
||||
"pretty": {
|
||||
"type": "boolean",
|
||||
"description": "Pretty the output",
|
||||
"default": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"body": null
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"stop_watcher": {
|
||||
"watcher.stop": {
|
||||
"documentation": "http://www.elastic.co/guide/en/watcher/current/appendix-api-service.html",
|
||||
"methods": [ "PUT" ],
|
||||
"url": {
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_watch"
|
||||
body: >
|
||||
{
|
||||
@ -43,11 +43,11 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
ack_watch:
|
||||
watcher.ack:
|
||||
id: "my_watch"
|
||||
- match: { "status.ack.state" : "awaits_execution" }
|
||||
|
||||
- do:
|
||||
delete_watch:
|
||||
watcher.delete:
|
||||
id: "my_watch"
|
||||
- match: { found: true }
|
||||
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_watch"
|
||||
body: >
|
||||
{
|
||||
@ -39,6 +39,6 @@
|
||||
- match: { _id: "my_watch" }
|
||||
|
||||
- do:
|
||||
delete_watch:
|
||||
watcher.delete:
|
||||
id: "my_watch"
|
||||
- match: { found: true }
|
||||
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_exe_watch"
|
||||
body: >
|
||||
{
|
||||
@ -55,7 +55,7 @@
|
||||
- match: { _id: "my_exe_watch" }
|
||||
|
||||
- do:
|
||||
execute_watch:
|
||||
watcher.execute:
|
||||
id: "my_exe_watch"
|
||||
body: >
|
||||
{
|
||||
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_logging_watch"
|
||||
body: >
|
||||
{
|
||||
@ -53,7 +53,7 @@
|
||||
- match: { _id: "my_logging_watch" }
|
||||
|
||||
- do:
|
||||
execute_watch:
|
||||
watcher.execute:
|
||||
id: "my_logging_watch"
|
||||
body: null
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_watch"
|
||||
body: >
|
||||
{
|
||||
@ -41,7 +41,7 @@
|
||||
- match: { created: true }
|
||||
|
||||
- do:
|
||||
get_watch:
|
||||
watcher.get:
|
||||
id: "my_watch"
|
||||
- match: { found : true}
|
||||
- match: { _id: "my_watch" }
|
||||
|
@ -5,7 +5,7 @@
|
||||
wait_for_status: green
|
||||
|
||||
- do:
|
||||
put_watch:
|
||||
watcher.put:
|
||||
id: "my_watch"
|
||||
body: >
|
||||
{
|
||||
|
@ -4,5 +4,5 @@
|
||||
cluster.health:
|
||||
wait_for_status: green
|
||||
|
||||
- do: {restart_watcher: {}}
|
||||
- do: {watcher.restart: {}}
|
||||
- match: { acknowledged: true }
|
||||
|
@ -4,5 +4,5 @@
|
||||
cluster.health:
|
||||
wait_for_status: green
|
||||
|
||||
- do: {start_watcher: {}}
|
||||
- do: {watcher.start: {}}
|
||||
- match: { acknowledged: true }
|
||||
|
@ -1,7 +1,5 @@
|
||||
---
|
||||
"Test watcher stats output":
|
||||
|
||||
- do:
|
||||
watcher_stats:
|
||||
pretty: true
|
||||
- do: {watcher.stats: {}}
|
||||
- match: { "watch_service_state": "started" }
|
||||
|
@ -4,8 +4,8 @@
|
||||
cluster.health:
|
||||
wait_for_status: green
|
||||
|
||||
- do: {stop_watcher: {}}
|
||||
- do: {watcher.stop: {}}
|
||||
- match: { acknowledged: true }
|
||||
|
||||
- do: {start_watcher: {}}
|
||||
- do: {watcher.start: {}}
|
||||
- match: { acknowledged: true }
|
||||
|
@ -1,6 +1,6 @@
|
||||
---
|
||||
"Test watcher info api":
|
||||
- do: {watcher_info: {}}
|
||||
- do: {watcher.info: {}}
|
||||
- is_true: version.build_hash
|
||||
- is_true: version.build_timestamp
|
||||
- is_true: version.build_snapshot
|
||||
|
Loading…
x
Reference in New Issue
Block a user