lib/elasticsearch/api/actions/xpack/usage.rb in elasticsearch-api-8.12.2 vs lib/elasticsearch/api/actions/xpack/usage.rb in elasticsearch-api-8.13.0
- old
+ new
@@ -25,21 +25,21 @@
# Retrieves usage information about the installed X-Pack features.
#
# @option arguments [Time] :master_timeout Specify timeout for watch write operation
# @option arguments [Hash] :headers Custom HTTP headers
#
- # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.12/usage-api.html
+ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.13/usage-api.html
#
def usage(arguments = {})
- request_opts = { endpoint: arguments[:endpoint] || "xpack.usage" }
+ request_opts = { endpoint: arguments[:endpoint] || 'xpack.usage' }
arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = nil
method = Elasticsearch::API::HTTP_GET
- path = "_xpack/usage"
+ path = '_xpack/usage'
params = Utils.process_params(arguments)
Elasticsearch::API::Response.new(
perform_request(method, path, params, body, headers, request_opts)
)