2015-02-10 07:16:27 +08:00
|
|
|
package libcontainer
|
|
|
|
|
|
|
|
import "github.com/docker/libcontainer/cgroups"
|
|
|
|
|
2015-02-12 09:12:03 +08:00
|
|
|
type Stats struct {
|
2015-03-04 03:04:42 +08:00
|
|
|
Interfaces []*NetworkInterface
|
2015-02-12 09:12:03 +08:00
|
|
|
CgroupStats *cgroups.Stats
|
|
|
|
}
|
|
|
|
|
2015-03-04 03:04:42 +08:00
|
|
|
type NetworkInterface struct {
|
2015-02-10 07:16:27 +08:00
|
|
|
// 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
|
|
|
|
}
|