elasticsearch-api/lib/elasticsearch/api/actions/delete_by_query_rethrottle.rb
# Changes the number of requests per second for a particular Delete By Query operation.
#
# @option arguments [String] :task_id The task id to rethrottle
# @option arguments [Number] :requests_per_second The throttle to set on this request in floating sub-requests per second. -1 means set no throttle. (*Required*)
# @option arguments [Hash] :headers Custom HTTP headers
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-delete-by-query.html
#
Changes the number of requests per second for a particular Delete By Query operation.
Changes the number of requests per second for a particular Delete By Query operation .
def delete_by_query_rethrottle(arguments = {})
        raise ArgumentError, "Required argument 'task_id' missing" unless arguments[:task_id]
        headers = arguments.delete(:headers) || {}
        body = nil
        arguments = arguments.clone
        _task_id = arguments.delete(:task_id)
        method = Elasticsearch::API::HTTP_POST
        path   = "_delete_by_query/#{Utils.__listify(_task_id)}/_rethrottle"
        params = Utils.process_params(arguments)
        perform_request(method, path, params, body, headers).body
      end
def delete_by_query_rethrottle ( arguments = { } ) raise ArgumentError , "Required argument 'task_id' missing" unless arguments [ :task_id ] headers = arguments . delete ( :headers ) || { } body = nil arguments = arguments . clone _task_id = arguments . delete ( :task_id ) method = Elasticsearch :: API :: HTTP_POST path = "_delete_by_query/#{Utils.__listify(_task_id)}/_rethrottle" params = Utils . process_params ( arguments ) perform_request ( method , path , params , body , headers ) . body end
Changes the number of requests per second for a particular Delete By Query operation.
Changes the number of requests per second for a particular Delete By Query operation .
arguments
:headers Custom HTTP headers
: headers Custom HTTP headers
see
None