lib/elasticsearch/api/actions/watcher/stop.rb in elasticsearch-api-8.14.0 vs lib/elasticsearch/api/actions/watcher/stop.rb in elasticsearch-api-8.15.0
- old
+ new
@@ -22,13 +22,14 @@
module API
module Watcher
module Actions
# Stops Watcher if it is running.
#
+ # @option arguments [Time] :master_timeout Specify timeout for connection to master
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/watcher-api-stop.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.15/watcher-api-stop.html
#
def stop(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'watcher.stop' }
arguments = arguments.clone
@@ -36,10 +37,10 @@
body = nil
method = Elasticsearch::API::HTTP_POST
path = '_watcher/_stop'
- params = {}
+ params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end