lib/elasticsearch/api/actions/cat/pending_tasks.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/cat/pending_tasks.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -32,13 +32,15 @@ # @option arguments [List] :s Comma-separated list of column names or column aliases to sort by # @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos) # @option arguments [Boolean] :v Verbose mode. Display column headers # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/cat-pending-tasks.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/cat-pending-tasks.html # def pending_tasks(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "cat.pending_tasks" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil @@ -46,10 +48,10 @@ path = "_cat/pending_tasks" params = Utils.process_params(arguments) params[:h] = Utils.__listify(params[:h]) if params[:h] Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end