elasticsearch-api/lib/elasticsearch/api/actions/machine_learning/delete_expired_data.rb
def delete_expired_data(arguments = {})
          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _job_id = arguments.delete(:job_id)

          method = Elasticsearch::API::HTTP_DELETE
          path   = if _job_id
                     "_ml/_delete_expired_data/#{Utils.__listify(_job_id)}"
                   else
                     "_ml/_delete_expired_data"
                   end
          params = Utils.process_params(arguments)

          perform_request(method, path, params, body, headers).body
        end
# Deletes expired and unused machine learning data.
#
# @option arguments [String] :job_id The ID of the job(s) to perform expired data hygiene for
# @option arguments [Number] :requests_per_second The desired requests per second for the deletion processes.
# @option arguments [Time] :timeout How long can the underlying delete processes run until they are canceled
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body deleting expired data parameters
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/ml-delete-expired-data.html
#
Deletes expired and unused machine learning data.
Deletes expired and unused machine learning data .
def delete_expired_data(arguments = {})
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _job_id = arguments.delete(:job_id)
          method = Elasticsearch::API::HTTP_DELETE
          path   = if _job_id
                     "_ml/_delete_expired_data/#{Utils.__listify(_job_id)}"
                   else
                     "_ml/_delete_expired_data"
                   end
          params = Utils.process_params(arguments)
          perform_request(method, path, params, body, headers).body
        end
def delete_expired_data ( arguments = { } ) headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _job_id = arguments . delete ( :job_id ) method = Elasticsearch :: API :: HTTP_DELETE path = if _job_id "_ml/_delete_expired_data/#{Utils.__listify(_job_id)}" else "_ml/_delete_expired_data" end params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Deletes expired and unused machine learning data.
Deletes expired and unused machine learning data .
arguments
:body deleting expired data parameters
: body deleting expired data parameters
see
None