forked from opensearch-project/opensearch-api-specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingest.simulate.yaml
70 lines (70 loc) · 1.91 KB
/
ingest.simulate.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
openapi: 3.1.0
info:
title: Schemas of ingest.simulate category
description: Schemas of ingest.simulate category
version: 1.0.0
paths: {}
components:
schemas:
Document:
type: object
properties:
_id:
$ref: '_common.yaml#/components/schemas/Id'
_index:
$ref: '_common.yaml#/components/schemas/IndexName'
_source:
description: JSON body for the document.
type: object
required:
- _source
PipelineSimulation:
type: object
properties:
doc:
$ref: '#/components/schemas/DocumentSimulation'
processor_results:
type: array
items:
$ref: '#/components/schemas/PipelineSimulation'
tag:
type: string
processor_type:
type: string
status:
$ref: '_common.yaml#/components/schemas/ActionStatusOptions'
DocumentSimulation:
type: object
properties:
_id:
$ref: '_common.yaml#/components/schemas/Id'
_index:
$ref: '_common.yaml#/components/schemas/IndexName'
_ingest:
$ref: '#/components/schemas/Ingest'
_routing:
description: Value used to send the document to a specific primary shard.
type: string
_source:
description: JSON body for the document.
type: object
additionalProperties:
type: object
_version:
$ref: '_common.yaml#/components/schemas/StringifiedVersionNumber'
_version_type:
$ref: '_common.yaml#/components/schemas/VersionType'
required:
- _id
- _index
- _ingest
- _source
Ingest:
type: object
properties:
timestamp:
$ref: '_common.yaml#/components/schemas/DateTime'
pipeline:
$ref: '_common.yaml#/components/schemas/Name'
required:
- timestamp