@@ -12,8 +12,6 @@ public struct Event: Codable, JSONEncodable {
1212 public var eventID : String
1313 /// Universally unique identifier (UUID) of a task run.
1414 public var runID : String
15- /// The parent event, the cause of this event.
16- public var parentID : String ?
1715 public var status : EventStatus
1816 public var type : IngestionEventType
1917 /// The extracted record batch size.
@@ -25,7 +23,6 @@ public struct Event: Codable, JSONEncodable {
2523 public init (
2624 eventID: String ,
2725 runID: String ,
28- parentID: String ? = nil ,
2926 status: EventStatus ,
3027 type: IngestionEventType ,
3128 batchSize: Int ,
@@ -34,7 +31,6 @@ public struct Event: Codable, JSONEncodable {
3431 ) {
3532 self . eventID = eventID
3633 self . runID = runID
37- self . parentID = parentID
3834 self . status = status
3935 self . type = type
4036 self . batchSize = batchSize
@@ -45,7 +41,6 @@ public struct Event: Codable, JSONEncodable {
4541 public enum CodingKeys : String , CodingKey , CaseIterable {
4642 case eventID
4743 case runID
48- case parentID
4944 case status
5045 case type
5146 case batchSize
@@ -59,7 +54,6 @@ public struct Event: Codable, JSONEncodable {
5954 var container = encoder. container ( keyedBy: CodingKeys . self)
6055 try container. encode ( self . eventID, forKey: . eventID)
6156 try container. encode ( self . runID, forKey: . runID)
62- try container. encodeIfPresent ( self . parentID, forKey: . parentID)
6357 try container. encode ( self . status, forKey: . status)
6458 try container. encode ( self . type, forKey: . type)
6559 try container. encode ( self . batchSize, forKey: . batchSize)
@@ -72,7 +66,6 @@ extension Event: Equatable {
7266 public static func == ( lhs: Event , rhs: Event ) -> Bool {
7367 lhs. eventID == rhs. eventID &&
7468 lhs. runID == rhs. runID &&
75- lhs. parentID == rhs. parentID &&
7669 lhs. status == rhs. status &&
7770 lhs. type == rhs. type &&
7871 lhs. batchSize == rhs. batchSize &&
@@ -85,7 +78,6 @@ extension Event: Hashable {
8578 public func hash( into hasher: inout Hasher ) {
8679 hasher. combine ( self . eventID. hashValue)
8780 hasher. combine ( self . runID. hashValue)
88- hasher. combine ( self . parentID? . hashValue)
8981 hasher. combine ( self . status. hashValue)
9082 hasher. combine ( self . type. hashValue)
9183 hasher. combine ( self . batchSize. hashValue)
0 commit comments