lib/elasticsearch/api/actions/enrich/stats.rb in elasticsearch-api-8.10.0 vs lib/elasticsearch/api/actions/enrich/stats.rb in elasticsearch-api-8.11.0

- old
+ new

@@ -24,23 +24,25 @@ module Actions # Gets enrich coordinator statistics and information about enrich policies that are currently executing. # # @option arguments [Hash] :headers Custom HTTP headers # - # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.10/enrich-stats-api.html + # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.11/enrich-stats-api.html # def stats(arguments = {}) + request_opts = { endpoint: arguments[:endpoint] || "enrich.stats" } + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = "_enrich/_stats" params = {} Elasticsearch::API::Response.new( - perform_request(method, path, params, body, headers) + perform_request(method, path, params, body, headers, request_opts) ) end end end end