Module: Elasticsearch::API::Profiling::Actions

Included in:
ProfilingClient
Defined in:
lib/elasticsearch/api/namespace/profiling.rb,
lib/elasticsearch/api/actions/profiling/status.rb

Instance Method Summary collapse

Instance Method Details

#status(arguments = {}) ⇒ Object

Returns basic information about the status of Universal Profiling.

Parameters:

  • (defaults to: {})

    a customizable set of options

Options Hash (arguments):

  • :master_timeout (Time)

    Explicit operation timeout for connection to master node

  • :timeout (Time)

    Explicit operation timeout

  • :wait_for_resources_created (Boolean)

    Whether to return immediately or wait until resources have been created

  • :headers (Hash)

    Custom HTTP headers

See Also:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# File 'lib/elasticsearch/api/actions/profiling/status.rb', line 34

def status(arguments = {})
  request_opts = { endpoint: arguments[:endpoint] || "profiling.status" }

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

  body   = nil

  method = Elasticsearch::API::HTTP_GET
  path   = "_profiling/status"
  params = Utils.process_params(arguments)

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