Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatsUtil ¶
type StatsUtil interface {
// GetSystemCPUUsage returns the host system's cpu usage in
// nanoseconds. An error is returned if the format of the underlying
// file does not match.
GetSystemCPUUsage() (uint64, error)
// GetNumberOnlineCPUs estimates number of available CPUs
GetNumberOnlineCPUs() (uint32, error)
// CollectNetworkStats collects network usage statistics for specified network
// interfaces in a process namespace
CollectNetworkStats(pid int, interfaces []native.NetInterface) (map[string]dockertypes.NetworkStats, error)
}
func NewStatsUtil ¶
func NewStatsUtil() StatsUtil
Click to show internal directories.
Click to hide internal directories.