elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup.rb
def rollup(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          raise ArgumentError, "Required argument 'rollup_index' missing" unless arguments[:rollup_index]

          headers = arguments.delete(:headers) || {}

          body = arguments.delete(:body)

          arguments = arguments.clone

          _index = arguments.delete(:index)

          _rollup_index = arguments.delete(:rollup_index)

          method = Elasticsearch::API::HTTP_POST
          path   = "#{Utils.__listify(_index)}/_rollup/#{Utils.__listify(_rollup_index)}"
          params = {}

          perform_request(method, path, params, body, headers).body
        end
# Rollup an index
# 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] :index The index to roll up (*Required*)
# @option arguments [String] :rollup_index The name of the rollup index to create (*Required*)
# @option arguments [Hash] :headers Custom HTTP headers
# @option arguments [Hash] :body The rollup configuration (*Required*)
#
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html
#
Rollup an index
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.
Rollup an index 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 rollup(arguments = {})
          raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
          raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
          raise ArgumentError, "Required argument 'rollup_index' missing" unless arguments[:rollup_index]
          headers = arguments.delete(:headers) || {}
          body = arguments.delete(:body)
          arguments = arguments.clone
          _index = arguments.delete(:index)
          _rollup_index = arguments.delete(:rollup_index)
          method = Elasticsearch::API::HTTP_POST
          path   = "#{Utils.__listify(_index)}/_rollup/#{Utils.__listify(_rollup_index)}"
          params = {}
          perform_request(method, path, params, body, headers).body
        end
def rollup ( arguments = { } ) raise ArgumentError , "Required argument 'body' missing" unless arguments [ :body ] raise ArgumentError , "Required argument 'index' missing" unless arguments [ :index ] raise ArgumentError , "Required argument 'rollup_index' missing" unless arguments [ :rollup_index ] headers = arguments . delete ( :headers ) || { } body = arguments . delete ( :body ) arguments = arguments . clone _index = arguments . delete ( :index ) _rollup_index = arguments . delete ( :rollup_index ) method = Elasticsearch :: API :: HTTP_POST path = "#{Utils.__listify(_index)}/_rollup/#{Utils.__listify(_rollup_index)}" params = { } perform_request ( method , path , params , body , headers ) . body end
Rollup an index
This functionality is Experimental and may be changed or removed
completely in a future release.
Rollup an index This functionality is Experimental and may be changed or removed completely in a future release .
arguments
:body The rollup configuration (*Required*)
: body The rollup configuration ( * Required * )
see
None