elasticsearch-api/lib/elasticsearch/api/actions/rollup/put_job.rb
# Creates a rollup job.
# This functionality is Experimental and may be changed or removed
# completely in a future release. Elastic will take a best effort approach
# to fix any issues, but experimental features are not subject to the
# support SLA of official GA features.
#
# @option arguments [String] :id The ID of the job to create
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The job configuration (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/master/rollup-put-job.html
#
Creates a rollup job.
This functionality is Experimental and may be changed or removed
completely in a future release. Elastic will take a best effort approach
to fix any issues, but experimental features are not subject to the
support SLA of official GA features.
Creates a rollup job . This functionality is Experimental and may be changed or removed completely in a future release . Elastic will take a best effort approach to fix any issues but experimental features are not subject to the support SLA of official GA features .
def put_job(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _id = arguments.delete(:id)
          method = Elasticsearch::API::HTTP_PUT
          path   = "_rollup/job/#{Utils.__listify(_id)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def put_job ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'id' missing" unless arguments [ :id ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _id = arguments . delete ( :id ) method = Elasticsearch :: API :: HTTP_PUT path = "_rollup/job/#{Utils.__listify(_id)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Creates a rollup job.
Creates a rollup job .
arguments
:body The job configuration (*Required*)
: body The job configuration ( * Required * )
see
None