lib/elasticsearch/xpack/api/actions/watcher/start.rb in elasticsearch-xpack-7.4.0 vs lib/elasticsearch/xpack/api/actions/watcher/start.rb in elasticsearch-xpack-7.5.0.pre.pre

- old
+ new

@@ -5,24 +5,25 @@ module Elasticsearch module XPack module API module Watcher module Actions + # TODO: Description - # Start the Watcher service # + # @see http://www.elastic.co/guide/en/elasticsearch/reference/current/watcher-api-start.html # - # @see http://www.elastic.co/guide/en/x-pack/current/watcher-api-start.html - # - def start(arguments={}) + def start(arguments = {}) + arguments = arguments.clone + method = Elasticsearch::API::HTTP_POST - path = "_xpack/watcher/_start" + path = "_watcher/_start" params = {} - body = nil + body = nil perform_request(method, path, params, body).body end - end end + end end end end