lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb in elasticsearch-xpack-7.8.1 vs lib/elasticsearch/xpack/api/actions/watcher/ack_watch.rb in elasticsearch-xpack-7.9.0.pre
- old
+ new
@@ -24,11 +24,11 @@
#
# @option arguments [String] :watch_id Watch ID
# @option arguments [List] :action_id A comma-separated list of the action ids to be acked
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.8/watcher-api-ack-watch.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/7.x/watcher-api-ack-watch.html
#
def ack_watch(arguments = {})
raise ArgumentError, "Required argument 'watch_id' missing" unless arguments[:watch_id]
headers = arguments.delete(:headers) || {}
@@ -42,16 +42,16 @@
method = Elasticsearch::API::HTTP_PUT
path = if _watch_id && _action_id
"_watcher/watch/#{Elasticsearch::API::Utils.__listify(_watch_id)}/_ack/#{Elasticsearch::API::Utils.__listify(_action_id)}"
else
"_watcher/watch/#{Elasticsearch::API::Utils.__listify(_watch_id)}/_ack"
- end
+ end
params = {}
body = nil
perform_request(method, path, params, body, headers).body
end
+ end
end
- end
end
end
end