Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resurrect _xpack/watcher routes #70337

Merged
merged 4 commits into from
Apr 7, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"xpack-watcher.ack_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-ack-watch.html",
"description":"Acknowledges a watch, manually throttling the execution of the watch's actions."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{watch_id}/_ack",
"methods":[
"PUT",
"POST"
],
"parts":{
"watch_id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
},
{
"path":"/_xpack/watcher/watch/{watch_id}/_ack/{action_id}",
"methods":[
"PUT",
"POST"
],
"parts":{
"watch_id":{
"type":"string",
"description":"Watch ID"
},
"action_id":{
"type":"list",
"description":"A comma-separated list of the action ids to be acked"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"xpack-watcher.activate_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-activate-watch.html",
"description":"Activates a currently inactive watch."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{watch_id}/_activate",
"methods":[
"PUT",
"POST"
],
"parts":{
"watch_id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"xpack-watcher.deactivate_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-deactivate-watch.html",
"description":"Deactivates a currently active watch."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{watch_id}/_deactivate",
"methods":[
"PUT",
"POST"
],
"parts":{
"watch_id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"xpack-watcher.delete_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-delete-watch.html",
"description":"Removes a watch from Watcher."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{id}",
"methods":[
"DELETE"
],
"parts":{
"id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"xpack-watcher.execute_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-execute-watch.html",
"description":"Forces the execution of a stored watch."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"],
"content_type": ["application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{id}/_execute",
"methods":[
"PUT",
"POST"
],
"parts":{
"id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
},
{
"path":"/_xpack/watcher/watch/_execute",
"methods":[
"PUT",
"POST"
],
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
},
"params":{
"debug":{
"type":"boolean",
"description":"indicates whether the watch should execute in debug mode",
"required":false
}
},
"body":{
"description":"Execution control",
"required":false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"xpack-watcher.get_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-get-watch.html",
"description":"Retrieves a watch by its ID."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{id}",
"methods":[
"GET"
],
"parts":{
"id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
},
"params":{}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
{
"xpack-watcher.put_watch":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-put-watch.html",
"description":"Creates a new watch, or updates an existing one."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"],
"content_type": ["application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/watch/{id}",
"methods":[
"PUT",
"POST"
],
"parts":{
"id":{
"type":"string",
"description":"Watch ID"
}
},
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
},
"params":{
"active":{
"type":"boolean",
"description":"Specify whether the watch is in/active by default"
},
"version":{
"type":"number",
"description":"Explicit version number for concurrency control"
},
"if_seq_no":{
"type":"number",
"description":"only update the watch if the last operation that has changed the watch has the specified sequence number"
},
"if_primary_term":{
"type":"number",
"description":"only update the watch if the last operation that has changed the watch has the specified primary term"
}
},
"body":{
"description":"The watch",
"required":false
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"xpack-watcher.start":{
"documentation":{
"url":"https://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html",
"description":"Starts Watcher if it is not already running."
},
"stability":"stable",
"visibility":"public",
"headers":{
"accept": [ "application/vnd.elasticsearch+json;compatible-with=7"]
},
"url":{
"paths":[
{
"path":"/_xpack/watcher/_start",
"methods":[
"POST"
],
"deprecated":{
"version":"7.0.0",
"description":"all _xpack prefix have been deprecated"
}
}
]
},
"params":{}
}
}
Loading