mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-29 07:49:14 +01:00
Remove id and received timestamp from correlated event
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
@@ -1949,10 +1949,6 @@ components:
|
|||||||
NetworkTrafficEvent:
|
NetworkTrafficEvent:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
id:
|
|
||||||
type: string
|
|
||||||
description: "ID of the event. Unique."
|
|
||||||
example: "18e204d6-f7c6-405d-8025-70becb216add"
|
|
||||||
flow_id:
|
flow_id:
|
||||||
type: string
|
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)."
|
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
|
type: string
|
||||||
description: "ID of the reporter of the event (e.g., the peer that reported the event)."
|
description: "ID of the reporter of the event (e.g., the peer that reported the event)."
|
||||||
example: "ch8i4ug6lnn4g9hqv7m0"
|
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:
|
source:
|
||||||
$ref: '#/components/schemas/NetworkTrafficEndpoint'
|
$ref: '#/components/schemas/NetworkTrafficEndpoint'
|
||||||
destination:
|
destination:
|
||||||
|
|||||||
@@ -856,19 +856,13 @@ type NetworkTrafficEvent struct {
|
|||||||
Events []NetworkTrafficSubEvent `json:"events"`
|
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 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"`
|
FlowId string `json:"flow_id"`
|
||||||
Icmp NetworkTrafficICMP `json:"icmp"`
|
Icmp NetworkTrafficICMP `json:"icmp"`
|
||||||
|
|
||||||
// Id ID of the event. Unique.
|
|
||||||
Id string `json:"id"`
|
|
||||||
Policy NetworkTrafficPolicy `json:"policy"`
|
Policy NetworkTrafficPolicy `json:"policy"`
|
||||||
|
|
||||||
// Protocol Protocol is the protocol of the traffic (e.g. 1 = ICMP, 6 = TCP, 17 = UDP, etc.).
|
// Protocol Protocol is the protocol of the traffic (e.g. 1 = ICMP, 6 = TCP, 17 = UDP, etc.).
|
||||||
Protocol int `json:"protocol"`
|
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 ID of the reporter of the event (e.g., the peer that reported the event).
|
||||||
ReporterId string `json:"reporter_id"`
|
ReporterId string `json:"reporter_id"`
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user