File tree Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Expand file tree Collapse file tree 2 files changed +52
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ components:
54
54
type : string
55
55
description : The target index where rollup results are stored.
56
56
target_index_settings :
57
+ x-version-added : 3.0.0
57
58
$ref : ' indices._common.yaml#/components/schemas/IndexSettings'
58
59
metadata_id :
59
60
type : ['null', string]
Original file line number Diff line number Diff line change @@ -24,6 +24,55 @@ epilogues:
24
24
status : [200, 404]
25
25
chapters :
26
26
- synopsis : Create an index rollup job.
27
+ path : /_plugins/_rollup/jobs/{id}
28
+ method : PUT
29
+ parameters :
30
+ id : books
31
+ request :
32
+ payload :
33
+ rollup :
34
+ enabled : true
35
+ description : Rollup books.
36
+ schedule :
37
+ interval :
38
+ period : 1
39
+ unit : Minutes
40
+ source_index : books
41
+ target_index : books_by_order_date
42
+ page_size : 1
43
+ delay : 0
44
+ continuous : false
45
+ dimensions :
46
+ - date_histogram :
47
+ source_field : order_date
48
+ fixed_interval : 1h
49
+ - terms :
50
+ source_field : title
51
+ metrics :
52
+ - source_field : pages
53
+ metrics :
54
+ - sum : {}
55
+ - avg : {}
56
+ response :
57
+ status : 201
58
+ payload :
59
+ _id : books
60
+ rollup :
61
+ rollup_id : books
62
+ enabled : true
63
+ - synopsis : Get an index rollup job.
64
+ path : /_plugins/_rollup/jobs/{id}
65
+ method : GET
66
+ parameters :
67
+ id : books
68
+ response :
69
+ status : 200
70
+ payload :
71
+ _id : books
72
+ rollup :
73
+ rollup_id : books
74
+ - synopsis : Create an index rollup job with target_index_settings.
75
+ version : ' >= 3.0'
27
76
path : /_plugins/_rollup/jobs/{id}
28
77
method : PUT
29
78
parameters :
@@ -69,7 +118,8 @@ chapters:
69
118
number_of_shards : ' 2'
70
119
number_of_replicas : ' 0'
71
120
codec : ' zlib'
72
- - synopsis : Get an index rollup job.
121
+ - synopsis : Get an index rollup job with target_index_settings.
122
+ version : ' >= 3.0'
73
123
path : /_plugins/_rollup/jobs/{id}
74
124
method : GET
75
125
parameters :
You can’t perform that action at this time.
0 commit comments