elasticsearch-api/lib/elasticsearch/api/actions/cat/ml_datafeeds.rb
# Gets configuration and usage information about datafeeds.
#
# @option arguments [String] :datafeed_id The ID of the datafeeds stats to fetch
# @option arguments [Boolean] :allow_no_match Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified)
# @option arguments [Boolean] :allow_no_datafeeds Whether to ignore if a wildcard expression matches no datafeeds. (This includes `_all` string or when no datafeeds have been specified) *Deprecated*
# @option arguments [String] :format a short version of the Accept header, e.g. json, yaml
# @option arguments [List] :h Comma-separated list of column names to display
# @option arguments [Boolean] :help Return help information
# @option arguments [List] :s Comma-separated list of column names or column aliases to sort by
# @option arguments [String] :time The unit in which to display time values (options: d, h, m, s, ms, micros, nanos)
# @option arguments [Boolean] :v Verbose mode. Display column headers
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see http://www.elastic.co/guide/en/elasticsearch/reference/current/cat-datafeeds.html
#
Gets configuration and usage information about datafeeds.
Gets configuration and usage information about datafeeds .
def ml_datafeeds(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = nil
          arguments = arguments.clone
          _datafeed_id = arguments.delete(:datafeed_id)
          method = Elasticsearch::API::HTTP_GET
          path   = if _datafeed_id
                     "_cat/ml/datafeeds/#{Utils.__listify(_datafeed_id)}"
                   else
                     "_cat/ml/datafeeds"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def ml_datafeeds ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _datafeed_id = arguments . delete ( :datafeed_id ) method = Elasticsearch :: API :: HTTP_GET path = if _datafeed_id "_cat/ml/datafeeds/#{Utils.__listify(_datafeed_id)}" else "_cat/ml/datafeeds" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Gets configuration and usage information about datafeeds.
Gets configuration and usage information about datafeeds .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None