Skip to content

Commit 3ac63f7

Browse files
authored
Add source and destination pod (#586)
1 parent 641f5ad commit 3ac63f7

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

pkg/types/network.go

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ type NetworkReport struct {
4141
}
4242

4343
type NetworkEventData struct {
44-
Timestamp string `json:"timestamp"`
45-
SrcIP string `json:"srcIp"`
46-
DstIP string `json:"dstIp"`
47-
SrcPort int `json:"srcPort"`
48-
DstPort int `json:"dstPort"`
49-
Protocol string `json:"proto"`
50-
Command string `json:"comm"`
51-
PID int `json:"pid"`
52-
LikelyService string `json:"likelyService"`
53-
DNSQueryName string `json:"dnsQueryName"`
44+
Timestamp string `json:"timestamp,omitempty"`
45+
SrcIP string `json:"srcIp,omitempty"`
46+
DstIP string `json:"dstIp,omitempty"`
47+
SrcPort int `json:"srcPort,omitempty"`
48+
DstPort int `json:"dstPort,omitempty"`
49+
SourcePod string `json:"sourcePod,omitempty"`
50+
DestinationPod string `json:"dstPod,omitempty"`
51+
Protocol string `json:"proto,omitempty"`
52+
Command string `json:"comm,omitempty"`
53+
PID int `json:"pid,omitempty"`
54+
LikelyService string `json:"likelyService,omitempty"`
55+
DNSQueryName string `json:"dnsQueryName,omitempty"`
5456
}

0 commit comments

Comments
 (0)