From 2d92339fbd803c499e0062f674dd73b26b8a8cd3 Mon Sep 17 00:00:00 2001 From: Jonathan Budzenski Date: Mon, 28 Jan 2019 12:13:15 -0600 Subject: [PATCH] _xpack/watcher -> _watcher --- .../elasticsearch_js_plugin.js | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/x-pack/plugins/watcher/server/lib/elasticsearch_js_plugin/elasticsearch_js_plugin.js b/x-pack/plugins/watcher/server/lib/elasticsearch_js_plugin/elasticsearch_js_plugin.js index a0c74bdc45f8f..ad42388beea1e 100644 --- a/x-pack/plugins/watcher/server/lib/elasticsearch_js_plugin/elasticsearch_js_plugin.js +++ b/x-pack/plugins/watcher/server/lib/elasticsearch_js_plugin/elasticsearch_js_plugin.js @@ -25,7 +25,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/<%=id%>/_deactivate', + fmt: '/_watcher/watch/<%=id%>/_deactivate', req: { id: { type: 'string', @@ -51,7 +51,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/<%=id%>/_activate', + fmt: '/_watcher/watch/<%=id%>/_activate', req: { id: { type: 'string', @@ -78,7 +78,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/<%=id%>/_ack/<%=action%>', + fmt: '/_watcher/watch/<%=id%>/_ack/<%=action%>', req: { id: { type: 'string', @@ -112,7 +112,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/<%=id%>', + fmt: '/_watcher/watch/<%=id%>', req: { id: { type: 'string', @@ -136,7 +136,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/_execute' + fmt: '/_watcher/watch/_execute' }, needBody: true, method: 'POST' @@ -151,7 +151,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { watcher.getWatch = ca({ params: {}, url: { - fmt: '/_xpack/watcher/watch/<%=id%>', + fmt: '/_watcher/watch/<%=id%>', req: { id: { type: 'string', @@ -176,7 +176,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { } }, url: { - fmt: '/_xpack/watcher/watch/<%=id%>', + fmt: '/_watcher/watch/<%=id%>', req: { id: { type: 'string', @@ -196,7 +196,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { watcher.restart = ca({ params: {}, url: { - fmt: '/_xpack/watcher/_restart' + fmt: '/_watcher/_restart' }, method: 'PUT' }); @@ -209,7 +209,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { watcher.start = ca({ params: {}, url: { - fmt: '/_xpack/watcher/_start' + fmt: '/_watcher/_start' }, method: 'PUT' }); @@ -222,7 +222,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { watcher.stats = ca({ params: {}, url: { - fmt: '/_xpack/watcher/stats' + fmt: '/_watcher/stats' } }); @@ -234,7 +234,7 @@ export const elasticsearchJsPlugin = (Client, config, components) => { watcher.stop = ca({ params: {}, url: { - fmt: '/_xpack/watcher/_stop' + fmt: '/_watcher/_stop' }, method: 'PUT' });