Method: Elasticsearch::API::CrossClusterReplication::Actions#stats

Defined in:
lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb

#stats(arguments = {}) ⇒ Object

Gets all stats related to cross-cluster replication.

Parameters:

  • arguments (Hash) (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :headers (Hash)

    Custom HTTP headers

See Also:



31
32
33
34
35
36
37
38
39
40
41
42
43
44
# File 'lib/elasticsearch/api/actions/cross_cluster_replication/stats.rb', line 31

def stats(arguments = {})
  arguments = arguments.clone
  headers = arguments.delete(:headers) || {}

  body   = nil

  method = Elasticsearch::API::HTTP_GET
  path   = "_ccr/stats"
  params = {}

  Elasticsearch::API::Response.new(
    perform_request(method, path, params, body, headers)
  )
end