From 1294aa9e4ec3833d512294a580f89acd446b8db7 Mon Sep 17 00:00:00 2001 From: Josh De Winne Date: Thu, 18 Sep 2025 18:28:41 -0700 Subject: [PATCH] Add source and destination pod --- pkg/types/network.go | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkg/types/network.go b/pkg/types/network.go index bc1b31d8..2db786c6 100644 --- a/pkg/types/network.go +++ b/pkg/types/network.go @@ -41,14 +41,16 @@ type NetworkReport struct { } type NetworkEventData struct { - Timestamp string `json:"timestamp"` - SrcIP string `json:"srcIp"` - DstIP string `json:"dstIp"` - SrcPort int `json:"srcPort"` - DstPort int `json:"dstPort"` - Protocol string `json:"proto"` - Command string `json:"comm"` - PID int `json:"pid"` - LikelyService string `json:"likelyService"` - DNSQueryName string `json:"dnsQueryName"` + Timestamp string `json:"timestamp,omitempty"` + SrcIP string `json:"srcIp,omitempty"` + DstIP string `json:"dstIp,omitempty"` + SrcPort int `json:"srcPort,omitempty"` + DstPort int `json:"dstPort,omitempty"` + SourcePod string `json:"sourcePod,omitempty"` + DestinationPod string `json:"dstPod,omitempty"` + Protocol string `json:"proto,omitempty"` + Command string `json:"comm,omitempty"` + PID int `json:"pid,omitempty"` + LikelyService string `json:"likelyService,omitempty"` + DNSQueryName string `json:"dnsQueryName,omitempty"` }