lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb in elasticsearch-api-8.13.0 vs lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb in elasticsearch-api-8.14.0
- old
+ new
@@ -22,13 +22,15 @@
module API
module CrossClusterReplication
module Actions
# Gets all stats related to cross-cluster replication.
#
+ # @option arguments [Time] :timeout Explicit operation timeout
+ # @option arguments [Time] :master_timeout Explicit operation timeout for connection to master node
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/ccr-get-stats.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.14/ccr-get-stats.html
#
def stats(arguments = {})
request_opts = { endpoint: arguments[:endpoint] || 'ccr.stats' }
arguments = arguments.clone
@@ -36,10 +38,10 @@
body = nil
method = Elasticsearch::API::HTTP_GET
path = '_ccr/stats'
- params = {}
+ params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)
end