@@ -12,8 +12,6 @@ public struct Event: Codable, JSONEncodable {
12
12
public var eventID : String
13
13
/// Universally unique identifier (UUID) of a task run.
14
14
public var runID : String
15
- /// The parent event, the cause of this event.
16
- public var parentID : String ?
17
15
public var status : EventStatus
18
16
public var type : IngestionEventType
19
17
/// The extracted record batch size.
@@ -25,7 +23,6 @@ public struct Event: Codable, JSONEncodable {
25
23
public init (
26
24
eventID: String ,
27
25
runID: String ,
28
- parentID: String ? = nil ,
29
26
status: EventStatus ,
30
27
type: IngestionEventType ,
31
28
batchSize: Int ,
@@ -34,7 +31,6 @@ public struct Event: Codable, JSONEncodable {
34
31
) {
35
32
self . eventID = eventID
36
33
self . runID = runID
37
- self . parentID = parentID
38
34
self . status = status
39
35
self . type = type
40
36
self . batchSize = batchSize
@@ -45,7 +41,6 @@ public struct Event: Codable, JSONEncodable {
45
41
public enum CodingKeys : String , CodingKey , CaseIterable {
46
42
case eventID
47
43
case runID
48
- case parentID
49
44
case status
50
45
case type
51
46
case batchSize
@@ -59,7 +54,6 @@ public struct Event: Codable, JSONEncodable {
59
54
var container = encoder. container ( keyedBy: CodingKeys . self)
60
55
try container. encode ( self . eventID, forKey: . eventID)
61
56
try container. encode ( self . runID, forKey: . runID)
62
- try container. encodeIfPresent ( self . parentID, forKey: . parentID)
63
57
try container. encode ( self . status, forKey: . status)
64
58
try container. encode ( self . type, forKey: . type)
65
59
try container. encode ( self . batchSize, forKey: . batchSize)
@@ -72,7 +66,6 @@ extension Event: Equatable {
72
66
public static func == ( lhs: Event , rhs: Event ) -> Bool {
73
67
lhs. eventID == rhs. eventID &&
74
68
lhs. runID == rhs. runID &&
75
- lhs. parentID == rhs. parentID &&
76
69
lhs. status == rhs. status &&
77
70
lhs. type == rhs. type &&
78
71
lhs. batchSize == rhs. batchSize &&
@@ -85,7 +78,6 @@ extension Event: Hashable {
85
78
public func hash( into hasher: inout Hasher ) {
86
79
hasher. combine ( self . eventID. hashValue)
87
80
hasher. combine ( self . runID. hashValue)
88
- hasher. combine ( self . parentID? . hashValue)
89
81
hasher. combine ( self . status. hashValue)
90
82
hasher. combine ( self . type. hashValue)
91
83
hasher. combine ( self . batchSize. hashValue)
0 commit comments