Module: Elasticsearch::XPack::API::Actions
- Defined in:
- lib/elasticsearch/xpack/api/actions/info.rb,
lib/elasticsearch/xpack/api/actions/usage.rb
Instance Method Summary collapse
-
#info(arguments = {}) ⇒ Object
Retrieve information about xpack, including build number/timestamp and license status.
-
#usage(arguments = {}) ⇒ Object
Retrieve information about X-Pack features usage.
Instance Method Details
#info(arguments = {}) ⇒ Object
Retrieve information about xpack, including build number/timestamp and license status
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/elasticsearch/xpack/api/actions/info.rb', line 19 def info(arguments={}) valid_params = [ :human, :categories ] method = Elasticsearch::API::HTTP_GET path = "_xpack" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end |
#usage(arguments = {}) ⇒ Object
Retrieve information about X-Pack features usage
15 16 17 18 19 20 21 22 23 |
# File 'lib/elasticsearch/xpack/api/actions/usage.rb', line 15 def usage(arguments={}) valid_params = [ :master_timeout ] method = Elasticsearch::API::HTTP_GET path = "_xpack/usage" params = Elasticsearch::API::Utils.__validate_and_extract_params arguments, valid_params body = nil perform_request(method, path, params, body).body end |