-
Notifications
You must be signed in to change notification settings - Fork 3k
/
MetadataChangeProposal.pdl
58 lines (47 loc) · 1.38 KB
/
MetadataChangeProposal.pdl
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
namespace com.linkedin.mxe
import com.linkedin.avro2pegasus.events.KafkaAuditHeader
import com.linkedin.common.Urn
import com.linkedin.events.metadata.ChangeType
/**
* Kafka event for proposing a metadata change for an entity. A corresponding MetadataChangeLog is emitted when the change is accepted and committed, otherwise a FailedMetadataChangeProposal will be emitted instead.
*/
record MetadataChangeProposal {
/**
* Kafka audit header. Currently remains unused in the open source.
*/
auditHeader: optional KafkaAuditHeader
/**
* Type of the entity being written to
*/
entityType: string
/**
* Urn of the entity being written
**/
entityUrn: optional Urn,
/**
* Key aspect of the entity being written
*/
entityKeyAspect: optional GenericAspect
/**
* Type of change being proposed
*/
changeType: ChangeType
/**
* Aspect of the entity being written to
* Not filling this out implies that the writer wants to affect the entire entity
* Note: This is only valid for CREATE, UPSERT, and DELETE operations.
**/
aspectName: optional string
/**
* The value of the new aspect.
*/
aspect: optional GenericAspect
/**
* System properties that one might want to attach to an event
**/
systemMetadata: optional SystemMetadata
/**
* Headers - intended to mimic http headers
*/
headers: optional map[string, string]
}