runc/stats.go

23 lines
393 B
Go
Raw Normal View History

package libcontainer
import "github.com/docker/libcontainer/cgroups"
type NetworkInterface struct {
// Name is the name of the network interface.
Name string
RxBytes uint64
RxPackets uint64
RxErrors uint64
RxDropped uint64
TxBytes uint64
TxPackets uint64
TxErrors uint64
TxDropped uint64
}
type Stats struct {
Interfaces []*NetworkInterface
CgroupStats *cgroups.Stats
}