Skip to content

Commit 1caee7d

Browse files
[API] Renames rollup.rollup to indices.downsample
Auto-generated API code Co-authored-by: Fernando Briano <[email protected]>
1 parent ae113a3 commit 1caee7d

File tree

1 file changed

+9
-9
lines changed
  • elasticsearch-api/lib/elasticsearch/api/actions/indices

1 file changed

+9
-9
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/rollup/rollup.rb renamed to elasticsearch-api/lib/elasticsearch/api/actions/indices/downsample.rb

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,25 +20,25 @@
2020
#
2121
module Elasticsearch
2222
module API
23-
module Rollup
23+
module Indices
2424
module Actions
25-
# Rollup an index
25+
# Downsample an index
2626
# This functionality is Experimental and may be changed or removed
2727
# completely in a future release. Elastic will take a best effort approach
2828
# to fix any issues, but experimental features are not subject to the
2929
# support SLA of official GA features.
3030
#
31-
# @option arguments [String] :index The index to roll up (*Required*)
32-
# @option arguments [String] :rollup_index The name of the rollup index to create (*Required*)
31+
# @option arguments [String] :index The index to downsample (*Required*)
32+
# @option arguments [String] :target_index The name of the target index to store downsampled data (*Required*)
3333
# @option arguments [Hash] :headers Custom HTTP headers
34-
# @option arguments [Hash] :body The rollup configuration (*Required*)
34+
# @option arguments [Hash] :body The downsampling configuration (*Required*)
3535
#
3636
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/xpack-rollup.html
3737
#
38-
def rollup(arguments = {})
38+
def downsample(arguments = {})
3939
raise ArgumentError, "Required argument 'body' missing" unless arguments[:body]
4040
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
41-
raise ArgumentError, "Required argument 'rollup_index' missing" unless arguments[:rollup_index]
41+
raise ArgumentError, "Required argument 'target_index' missing" unless arguments[:target_index]
4242

4343
arguments = arguments.clone
4444
headers = arguments.delete(:headers) || {}
@@ -47,10 +47,10 @@ def rollup(arguments = {})
4747

4848
_index = arguments.delete(:index)
4949

50-
_rollup_index = arguments.delete(:rollup_index)
50+
_target_index = arguments.delete(:target_index)
5151

5252
method = Elasticsearch::API::HTTP_POST
53-
path = "#{Utils.__listify(_index)}/_rollup/#{Utils.__listify(_rollup_index)}"
53+
path = "#{Utils.__listify(_index)}/_downsample/#{Utils.__listify(_target_index)}"
5454
params = {}
5555

5656
Elasticsearch::API::Response.new(

0 commit comments

Comments
 (0)