Skip to content

Commit 5da44bb

Browse files
committed
Fix version compatibles
Signed-off-by: Aleksandr Tuliakov <[email protected]>
1 parent 33970f4 commit 5da44bb

File tree

2 files changed

+52
-1
lines changed

2 files changed

+52
-1
lines changed

spec/schemas/rollups._common.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ components:
5454
type: string
5555
description: The target index where rollup results are stored.
5656
target_index_settings:
57+
x-version-added: 3.0.0
5758
$ref: 'indices._common.yaml#/components/schemas/IndexSettings'
5859
metadata_id:
5960
type: ['null', string]

tests/default/rollup/jobs.yaml

Lines changed: 51 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,55 @@ epilogues:
2424
status: [200, 404]
2525
chapters:
2626
- 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'
2776
path: /_plugins/_rollup/jobs/{id}
2877
method: PUT
2978
parameters:
@@ -69,7 +118,8 @@ chapters:
69118
number_of_shards: '2'
70119
number_of_replicas: '0'
71120
codec: 'zlib'
72-
- synopsis: Get an index rollup job.
121+
- synopsis: Get an index rollup job with target_index_settings.
122+
version: '>= 3.0'
73123
path: /_plugins/_rollup/jobs/{id}
74124
method: GET
75125
parameters:

0 commit comments

Comments
 (0)