mirror of
https://github.com/netbirdio/netbird.git
synced 2025-06-20 09:47:49 +02:00
[management] add receive timestamp to traffic event (#3559)
This commit is contained in:
parent
d9d051cb1e
commit
8d7c92c661
@ -1899,7 +1899,12 @@ components:
|
|||||||
timestamp:
|
timestamp:
|
||||||
type: string
|
type: string
|
||||||
format: date-time
|
format: date-time
|
||||||
description: "Timestamp of the event."
|
description: "Timestamp of the event. Send by the peer."
|
||||||
|
example: "2025-03-20T16:23:58.125397Z"
|
||||||
|
receive_timestamp:
|
||||||
|
type: string
|
||||||
|
format: date-time
|
||||||
|
description: "Timestamp when the event was received by our API."
|
||||||
example: "2025-03-20T16:23:58.125397Z"
|
example: "2025-03-20T16:23:58.125397Z"
|
||||||
source:
|
source:
|
||||||
$ref: '#/components/schemas/NetworkTrafficEndpoint'
|
$ref: '#/components/schemas/NetworkTrafficEndpoint'
|
||||||
@ -1969,6 +1974,7 @@ components:
|
|||||||
- flow_id
|
- flow_id
|
||||||
- reporter_id
|
- reporter_id
|
||||||
- timestamp
|
- timestamp
|
||||||
|
- receive_timestamp
|
||||||
- source
|
- source
|
||||||
- user_id
|
- user_id
|
||||||
- user_email
|
- user_email
|
||||||
|
@ -873,6 +873,9 @@ type NetworkTrafficEvent struct {
|
|||||||
// 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"`
|
||||||
|
|
||||||
@ -883,7 +886,7 @@ type NetworkTrafficEvent struct {
|
|||||||
RxPackets int `json:"rx_packets"`
|
RxPackets int `json:"rx_packets"`
|
||||||
Source NetworkTrafficEndpoint `json:"source"`
|
Source NetworkTrafficEndpoint `json:"source"`
|
||||||
|
|
||||||
// Timestamp Timestamp of the event.
|
// Timestamp Timestamp of the event. Send by the peer.
|
||||||
Timestamp time.Time `json:"timestamp"`
|
Timestamp time.Time `json:"timestamp"`
|
||||||
|
|
||||||
// TxBytes Number of bytes transmitted.
|
// TxBytes Number of bytes transmitted.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user