lib/elasticsearch/api/actions/watcher/query_watches.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/watcher/query_watches.rb in elasticsearch-api-8.13.0

- old
+ new

@@ -25,14 +25,14 @@ # Retrieves stored watches. # # @option arguments [Hash] :headers Custom HTTP headers # @option arguments [Hash] :body From, size, query, sort and search_after # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/watcher-api-query-watches.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/watcher-api-query-watches.html # def query_watches(arguments = {}) - request_opts = { endpoint: arguments[:endpoint] || "watcher.query_watches" } + request_opts = { endpoint: arguments[:endpoint] || 'watcher.query_watches' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) @@ -41,10 +41,10 @@ Elasticsearch::API::HTTP_POST else Elasticsearch::API::HTTP_GET end - path = "_watcher/_query/watches" + path = '_watcher/_query/watches' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) )