-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcdc.yaml
59 lines (59 loc) · 1.23 KB
/
cdc.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
type: object
x-collection: system_cdc
x-immutable: true
x-read-only: true
required:
- _id
- collection
- action
properties:
_id:
type: string
description: The cdc entry id.
x-primary: true
collection:
type: string
description: The collection the document belongs to
x-index:
collection_document_idx:
enabled: true
additional_fields:
- documentID
action:
type: string
description: The action taken upon the document
enum:
- create
- update
- delete
- set
documentID:
type: string
description: The id of the document being changed
x-index:
document_id_idx:
enabled: true
diff:
type: array
description: An array of changes made to a document
items:
type: object
properties:
op:
type: string
enum:
- replace
- add
- remove
path:
type: string
value: { }
timestamp:
type: integer
description: The unix nanosecond timestamp when the change was commited
x-index:
timestamp_idx:
enabled: true
metadata:
type: object
description: The context metadata when the change was commited