-
Notifications
You must be signed in to change notification settings - Fork 59
Expand file tree
/
Copy pathMetadataAuditEvent.rythm
More file actions
59 lines (49 loc) · 1.76 KB
/
MetadataAuditEvent.rythm
File metadata and controls
59 lines (49 loc) · 1.76 KB
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
@import com.linkedin.metadata.generator.SingleAspectEventSpec;
@import com.linkedin.metadata.generator.SchemaGeneratorUtil;
@args SingleAspectEventSpec eventSpec
namespace @(eventSpec.getNamespace())
import com.linkedin.avro2pegasus.events.KafkaAuditHeader
import com.linkedin.metadata.events.ChangeType
import com.linkedin.metadata.events.IngestionTrackingContext
import com.linkedin.metadata.events.IngestionMode
import com.linkedin.metadata.events.MetadataAuditStamp
import @eventSpec.getUrnType()
import @eventSpec.getFullValueType()
/**
* MetadataAuditEvent for the @(eventSpec.getShortUrn()) with @(eventSpec.getShortValueType()) aspect.
*/
@@MetadataAuditEvent
record MetadataAuditEvent {
/**
* Kafka audit header for the MetadataAuditEvent.
*/
auditHeader: optional KafkaAuditHeader
/**
* @(eventSpec.getShortUrn()) as the key for the MetadataAuditEvent.
*/
urn: @(eventSpec.getShortUrn())
/**
* Aspect of the @eventSpec.getShortValueType() before the update.
*/
oldValue: optional @eventSpec.getShortValueType()
/**
* Aspect of the @eventSpec.getShortValueType() after the update.
*/
newValue: @eventSpec.getShortValueType()
/**
* Change type.
*/
changeType: optional union[null, ChangeType] = null
/**
* Tracking context to identify the lifecycle of the trackable ingestion item.
*/
ingestionTrackingContext: optional union[null, IngestionTrackingContext] = null
/**
* Audit info (i.e. createdon, createdby, createdfor) to track the version history of metadata changes.
*/
auditStamp: union[null, MetadataAuditStamp] = null
/**
* Type of the ingestion. Allow null for backward compatibility. Downstream should treat null as live ingestion.
*/
ingestionMode: optional union[null, IngestionMode] = null
}