Method: Elasticsearch::API::MachineLearning::Actions#info
- Defined in:
- lib/elasticsearch/api/actions/machine_learning/info.rb
#info(arguments = {}) ⇒ Object
Returns defaults and limits used by machine learning.
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/elasticsearch/api/actions/machine_learning/info.rb', line 31 def info(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || 'ml.info' } arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil method = Elasticsearch::API::HTTP_GET path = '_ml/info' params = {} Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |