updated openapi NetworkTrafficEvent spec, regenerated types

Signed-off-by: Dmitri <dmitri.external@netbird.io>
This commit is contained in:
Dmitri
2026-06-15 13:23:52 +02:00
parent 9dc5e77ec0
commit 07c527f3fd
2 changed files with 24 additions and 3 deletions

View File

@@ -2765,6 +2765,18 @@ components:
type: integer
description: "Number of packets transmitted."
example: 5
num_of_starts:
type: integer
description: "Number of start events."
example: 3
num_of_ends:
type: integer
description: "Number of end events."
example: 4
num_of_drops:
type: integer
description: "Number of drop events."
example: 5
events:
type: array
description: "List of events that are correlated to this flow (e.g., start, end)."

View File

@@ -2857,9 +2857,18 @@ 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"`
Policy NetworkTrafficPolicy `json:"policy"`
FlowId string `json:"flow_id"`
Icmp NetworkTrafficICMP `json:"icmp"`
// NumOfDrops Number of drop events.
NumOfDrops *int `json:"num_of_drops,omitempty"`
// NumOfEnds Number of end events.
NumOfEnds *int `json:"num_of_ends,omitempty"`
// NumOfStarts Number of start events.
NumOfStarts *int `json:"num_of_starts,omitempty"`
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"`