Documentation
¶
Index ¶
Constants ¶
View Source
const ( B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func TrafficGetInfo ¶
func TrafficGetInfo() ([]NetworkProtocol, []TrafficInfo, []TCPStates, []ListeningSocket)
Types ¶
type Collector ¶
type Collector struct {
LoadAverage LoadAverage
CPUUsage CPUUsage
DiskUsage []DiskUsage
FileSystemUsage []FileSystemUsage
NetworkProtocol []NetworkProtocol
TrafficInfo []TrafficInfo
TCPStates []TCPStates
ListeningSocket []ListeningSocket
}
type DiskParams ¶
type DiskParams struct {
// contains filtered or unexported fields
}
type FileSystemUsage ¶
type FileSystemUsage struct {
FileSystem string
UsedMB float64
UsedPercent float64
UsedInode float64
InodePercent float64
}
func FsStat ¶
func FsStat() []FileSystemUsage
type ListeningSocket ¶
type LoadAverage ¶
func LoadAvg ¶
func LoadAvg() (LoadAverage, error)
type NetworkProtocol ¶
Click to show internal directories.
Click to hide internal directories.