Module: Elasticsearch::API::XPack::Actions
- Defined in:
- lib/elasticsearch/api/actions/xpack/info.rb,
lib/elasticsearch/api/actions/xpack/usage.rb
Instance Method Summary collapse
-
#info(arguments = {}) ⇒ Object
Get information.
-
#usage(arguments = {}) ⇒ Object
Get usage information.
Instance Method Details
#info(arguments = {}) ⇒ Object
Get information. The information provided by the API includes:
-
Build information including the build number and timestamp.
-
License information about the currently installed license.
-
Feature information for the features that are currently enabled and available under the current license.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/elasticsearch/api/actions/xpack/info.rb', line 40 def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.info' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_xpack' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |
#usage(arguments = {}) ⇒ Object
Get usage information. Get information about the features that are currently enabled and available under the current license. The API also provides some usage statistics.
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
# File 'lib/elasticsearch/api/actions/xpack/usage.rb', line 36 def usage(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'xpack.usage' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_xpack/usage' params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |