forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrollups._common.yaml
195 lines (194 loc) · 4.51 KB
/
rollups._common.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
openapi: 3.1.0
info:
title: Schemas of rollup._common category
description: Schemas of rollup._common category
version: 1.0.0
paths: {}
components:
schemas:
RollupEntity:
type: object
properties:
_id:
type: string
_seqNo:
type: number
_primaryTerm:
type: number
rollup:
$ref: '#/components/schemas/Rollup'
Rollup:
type: object
properties:
rollup_id:
type: string
enabled:
type: boolean
schedule:
$ref: '#/components/schemas/Schedule'
last_updated_time:
type: number
enabled_time:
type: number
description:
type: string
schema_version:
type: number
source_index:
type: string
target_index:
type: string
metadata_id:
type: string
page_size:
type: number
delay:
type: number
continuous:
type: boolean
dimensions:
type: array
items:
$ref: '#/components/schemas/DimensionsConfigItem'
metrics:
type: array
items:
$ref: '#/components/schemas/MetricsConfigItem'
error_notification:
type: string
description: 'Set up a Mustache message template for error notifications. For example, if an index rollup job fails, the system sends a message to a Slack channel.'
ExplainEntities:
type: object
properties:
item:
$ref: '#/components/schemas/Explain'
Explain:
type: object
properties:
rollup_id:
type: string
last_updated_time:
type: number
continuous:
$ref: '#/components/schemas/Continuous'
DimensionsConfigItem:
type: object
properties:
histogram:
$ref: '#/components/schemas/HistogramDimension'
date_histogram:
$ref: '#/components/schemas/DateHistogramDimension'
terms:
$ref: '#/components/schemas/TermsDimension'
minProperties: 1
maxProperties: 1
DateHistogramDimension:
type: object
properties:
fixed_interval:
type: string
calendar_interval:
type: string
timezone:
type: string
source_field:
type: string
target_field:
type: string
HistogramDimension:
type: object
properties:
source_field:
type: string
target_field:
type: string
interval:
type: string
TermsDimension:
type: object
properties:
source_field:
type: string
target_field:
type: string
MetricsConfigItem:
type: object
properties:
source_field:
type: string
target_field:
type: string
metrics:
type: array
items:
$ref: '#/components/schemas/MetricsConfigMetrics'
MetricsConfigMetrics:
type: object
properties:
avg:
type: object
sum:
type: object
max:
type: object
min:
type: object
value_count:
type: object
minProperties: 1
maxProperties: 1
Cron:
type: object
properties:
expression:
type: string
timezone:
type: string
Schedule:
type: object
properties:
interval:
$ref: '#/components/schemas/Interval'
Interval:
type: object
properties:
start_time:
type: number
period:
type: number
unit:
type: string
cron:
oneOf:
- type: array
items:
$ref: '#/components/schemas/Cron'
- $ref: '#/components/schemas/Cron'
schedule_delay:
type: number
Continuous:
type: object
properties:
next_window_start_time:
type: number
next_window_end_time:
type: number
status:
type: string
failure_reason:
type: string
stats:
$ref: '#/components/schemas/Stats'
Stats:
type: object
properties:
pages_processed:
type: number
documents_processed:
type: number
rollups_indexed:
type: number
index_time_in_ms:
type: number
search_time_in_ms:
type: number