diff --git a/management/server/http/api/openapi.yml b/management/server/http/api/openapi.yml index 58fc3dffc..cd4efce07 100644 --- a/management/server/http/api/openapi.yml +++ b/management/server/http/api/openapi.yml @@ -1949,10 +1949,6 @@ components: NetworkTrafficEvent: type: object properties: - id: - type: string - description: "ID of the event. Unique." - example: "18e204d6-f7c6-405d-8025-70becb216add" flow_id: type: string description: "FlowID is the ID of the connection flow. Not unique because it can be the same for multiple events (e.g., start and end of the connection)." @@ -1961,11 +1957,6 @@ components: type: string description: "ID of the reporter of the event (e.g., the peer that reported the event)." example: "ch8i4ug6lnn4g9hqv7m0" - receive_timestamp: - type: string - format: date-time - description: "Timestamp when the event was received by our API." - example: "2025-03-20T16:23:58.125397Z" source: $ref: '#/components/schemas/NetworkTrafficEndpoint' destination: diff --git a/management/server/http/api/types.gen.go b/management/server/http/api/types.gen.go index e47e7735d..e0d1e43d5 100644 --- a/management/server/http/api/types.gen.go +++ b/management/server/http/api/types.gen.go @@ -856,19 +856,13 @@ type NetworkTrafficEvent struct { Events []NetworkTrafficSubEvent `json:"events"` // FlowId FlowID is the ID of the connection flow. Not unique because it can be the same for multiple events (e.g., start and end of the connection). - FlowId string `json:"flow_id"` - Icmp NetworkTrafficICMP `json:"icmp"` - - // Id ID of the event. Unique. - Id string `json:"id"` + FlowId string `json:"flow_id"` + Icmp NetworkTrafficICMP `json:"icmp"` Policy NetworkTrafficPolicy `json:"policy"` // Protocol Protocol is the protocol of the traffic (e.g. 1 = ICMP, 6 = TCP, 17 = UDP, etc.). Protocol int `json:"protocol"` - // ReceiveTimestamp Timestamp when the event was received by our API. - ReceiveTimestamp time.Time `json:"receive_timestamp"` - // ReporterId ID of the reporter of the event (e.g., the peer that reported the event). ReporterId string `json:"reporter_id"`