Sha256: 21b39a88a65b8e270baae54d39bc5d46f559342745dc39ed062c602e5d99dae7
Contents?: true
Size: 1.02 KB
Versions: 4
Compression:
Stored size: 1.02 KB
Contents
# Licensed to Elasticsearch B.V under one or more agreements. # Elasticsearch B.V licenses this file to you under the Apache 2.0 License. # See the LICENSE file in the project root for more information module Elasticsearch module XPack module API module Rollup module Actions # TODO: Description # # @option arguments [String] :id The ID of the job to create (*Required*) # @option arguments [Hash] :body The job configuration (*Required*) # # @see # def put_job(arguments={}) raise ArgumentError, "Required argument 'id' missing" unless arguments[:id] raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] method = Elasticsearch::API::HTTP_PUT path = "_xpack/rollup/job/#{arguments[:id]}" params = {} body = arguments[:body] perform_request(method, path, params, body).body end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems