-
Notifications
You must be signed in to change notification settings - Fork 75
/
Copy pathmanifest.spec.yml
320 lines (320 loc) · 10.1 KB
/
manifest.spec.yml
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
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
##
## Describes the specification for a data stream's manifest.yml file
##
spec:
# Everything under here follows JSON schema (https://json-schema.org/), written as YAML for readability
type: object
additionalProperties: false
definitions:
# Would like to use `null` type for an empty array which is a valid value
# Need to use `"null"` to workaround a bug in the YAML parser implementation (`[]interface(nil)` is just `nil`)
# For reference: https://github.com/xeipuuv/gojsonschema/issues/141
input_variable_value:
anyOf:
- type:
- string
- integer
- boolean
- "null"
- type: array
items:
$ref: "#/definitions/input_variable_value"
examples:
- "null"
- ""
- some string
- 1234
- true
- - 3
- mixed
- true
- - - array
- 1
- - array
- 2
vars:
description: Input variables.
type: array
items:
type: object
additionalProperties: false
properties:
name:
description: Variable name.
type: string
examples:
- hosts
type:
description: Data type of variable.
type: string
enum:
- bool
- email
- integer
- password
- select
- text
- textarea
- time_zone
- url
- yaml
examples:
- text
title:
description: Title of variable.
type: string
examples:
- Hosts
description:
description: Short description of variable.
type: string
examples:
- "Hosts of integration service to connect to"
multi:
description: Can variable contain multiple values?
type: boolean
default: false
examples:
- true
options: true # This allows options to be required when type is select.
required:
description: Is variable required?
type: boolean
default: false
examples:
- true
show_user:
description: Should this variable be shown to the user by default?
type: boolean
default: true
examples:
- false
url_allowed_schemes:
description: >
List of allowed URL schemes for the url type. If empty, any scheme is allowed.
An empty string can be used to indicate that the scheme is not mandatory.
type: array
items:
type: string
default: []
examples:
- ['http', 'https']
- ['redis', 'rediss']
- ['', 'mysql']
default:
description: Default value(s) for variable
$ref: "#/definitions/input_variable_value"
if:
properties:
type:
const: select
then:
required:
- options
properties:
options:
description: List of options for select type
type: array
items:
type: object
additionalProperties: false
properties:
value:
type: string
examples:
- node
- cluster
text:
type: string
examples:
- node
- cluster
required:
- value
- text
min_items: 1
else:
not:
required:
- options
required:
- name
- type
elasticsearch_index_template:
description: Index template definition
type: object
additionalProperties: false
properties:
settings:
description: Settings section of index template
type: object
mappings:
description: Mappings section of index template
type: object
ingest_pipeline:
description: Elasticsearch ingest pipeline settings
type: object
additionalProperties: false
properties:
name:
description: Ingest pipeline name
type: string
required:
- name
data_stream:
description: Data stream section of index template
type: object
additionalProperties: false
properties:
hidden:
description: Makes the data stream hidden
type: boolean
properties:
dataset:
description: Name of data set.
type: string
title:
description: >
Title of data stream. It should include the source of the data that is
being collected, and the kind of data collected such as logs or metrics.
Words should be uppercased.
type: string
examples:
- AWS Billing Metrics
- Linux Metrics
- User Activity Logs
release:
description: Stability of data stream.
type: string
enum:
- experimental
- beta
examples:
- beta
ilm_policy:
description: The name of an existing ILM (Index Lifecycle Management) policy
type: string
examples:
- diagnostics
dataset_is_prefix:
description: if true, the index pattern in the ES template will contain the dataset as a prefix only
type: boolean
default: false
type:
description: Type of data stream
type: string
enum:
- metrics
- logs
- synthetics
- traces
- profiling # Technical preview.
examples:
- metrics
hidden:
description: >
Specifies if a data stream is hidden, resulting in dot prefixed system indices.
To set the data stream hidden without those dot prefixed indices, check `elasticsearch.index_template.data_stream.hidden` flag.
type: boolean
deprecated: true # https://github.com/elastic/package-spec/issues/464
streams:
description: Streams offered by data stream.
type: array
items:
type: object
additionalProperties: false
properties:
input:
type: string
examples:
- aws/metrics
- s3
- file
title:
description: >
Title of the stream. It should include the source of the data that is
being collected, and the kind of data collected such as logs or metrics.
Words should be uppercased.
type: string
examples:
- AWS Billing Metrics
- Linux Metrics
- User Activity Logs
description:
description: >
Description of the stream. It should describe what is being collected and
with what collector, following the structure "Collect X from Y with X".
type: string
examples:
- Collect Metrics from AWS Billing service using Elastic Agent.
- Collect Metrics from Linux servers with Elastic Agent.
- Collect Logs from Apache Web Server using Elastic Agent.
template_path:
description: "Path to Elasticsearch index template for stream."
type: string
vars:
$ref: "#/definitions/vars"
enabled:
description: Is stream enabled?
type: boolean
required:
- title
- description
- input
elasticsearch:
description: Elasticsearch asset definitions
type: object
additionalProperties: false
properties:
index_mode:
description: |-
Index mode to use. Index mode can be used to enable use case specific functionalities.
This setting must be installed in the composable index template, not in the package component templates.
type: string
enum:
- "time_series" # Enables time series data streams https://www.elastic.co/guide/en/elasticsearch/reference/master/tsds.html
examples:
- "time_series"
index_template:
$ref: "#/definitions/elasticsearch_index_template"
privileges:
description: Elasticsearch privilege requirements
type: object
additionalProperties: false
properties:
indices:
description: Elasticsearch index privilege requirements
type: array
items:
type: string
source_mode:
description: |-
Source mode to use. This configures how the document source (`_source`) is stored
for this data stream.
If configured as `default`, this mode is not configured and it uses Elasticsearch defaults.
If configured as `synthetic`, it enables [synthetic source](https://www.elastic.co/guide/en/elasticsearch/reference/8.4/mapping-source-field.html#synthetic-source),
that doesn't store the source, but tries to rebuild it from the indexed fields when queried.
If no configured or set to `synthetic`, users may override the setting from Fleet UI.
type: string
enum:
- "default"
- "synthetic"
examples:
- "synthetic"
dynamic_dataset:
description: When set to true, agents running this integration are granted data stream privileges for all datasets of its type
type: boolean
dynamic_namespace:
description: When set to true, agents running this integration are granted data stream privileges for all namespaces of its type
type: boolean
required:
- title
versions:
- before: 2.6.0
patch:
- op: remove
path: /definitions/vars/items/properties/type/enum/4
- before: 2.7.0
patch:
- op: remove
path: /properties/type/enum/4