File tree Expand file tree Collapse file tree 1 file changed +20
-5
lines changed
Expand file tree Collapse file tree 1 file changed +20
-5
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,12 @@ type Event struct {
3030
3131// Stats is statistical information from the runc process
3232type Stats struct {
33- Cpu Cpu `json:"cpu"` //revive:disable
34- Memory Memory `json:"memory"`
35- Pids Pids `json:"pids"`
36- Blkio Blkio `json:"blkio"`
37- Hugetlb map [string ]Hugetlb `json:"hugetlb"`
33+ Cpu Cpu `json:"cpu"` //revive:disable
34+ Memory Memory `json:"memory"`
35+ Pids Pids `json:"pids"`
36+ Blkio Blkio `json:"blkio"`
37+ Hugetlb map [string ]Hugetlb `json:"hugetlb"`
38+ NetworkInterfaces []* NetworkInterface `json:"network_interfaces"`
3839}
3940
4041// Hugetlb represents the detailed hugetlb component of the statistics data
@@ -113,3 +114,17 @@ type Memory struct {
113114 KernelTCP MemoryEntry `json:"kernelTCP,omitempty"`
114115 Raw map [string ]uint64 `json:"raw,omitempty"`
115116}
117+
118+ type NetworkInterface struct {
119+ // Name is the name of the network interface.
120+ Name string
121+
122+ RxBytes uint64
123+ RxPackets uint64
124+ RxErrors uint64
125+ RxDropped uint64
126+ TxBytes uint64
127+ TxPackets uint64
128+ TxErrors uint64
129+ TxDropped uint64
130+ }
You can’t perform that action at this time.
0 commit comments