Method: Elasticsearch::API::Cat::Actions#ml_data_frame_analytics
- Defined in:
- lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb
permalink #ml_data_frame_analytics(arguments = {}) ⇒ Object
Gets configuration and usage information about data frame analytics jobs.
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 |
# File 'lib/elasticsearch/api/actions/cat/ml_data_frame_analytics.rb', line 40 def ml_data_frame_analytics(arguments = {}) request_opts = { endpoint: arguments[:endpoint] || "cat.ml_data_frame_analytics" } defined_params = [:id].inject({}) do |set_variables, variable| set_variables[variable] = arguments[variable] if arguments.key?(variable) set_variables end request_opts[:defined_params] = defined_params unless defined_params.empty? arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil _id = arguments.delete(:id) method = Elasticsearch::API::HTTP_GET path = if _id "_cat/ml/data_frame/analytics/#{Utils.__listify(_id)}" else "_cat/ml/data_frame/analytics" end params = Utils.process_params(arguments) Elasticsearch::API::Response.new( perform_request(method, path, params, body, headers, request_opts) ) end |