Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupPreCpuMap ¶
func CleanupPreCpuMap()
Types ¶
type CpuInfo ¶
type CpuInfo struct { User float32 `json:"user"` Nice float32 `json:"nice"` System float32 `json:"system"` Idle float32 `json:"idle"` IoWait float32 `json:"ioWait"` Irq float32 `json:"irq"` SoftIrq float32 `json:"softIrq"` Steal float32 `json:"steal"` Guest float32 `json:"guest"` CoreNum int `json:"coreNum"` }
type Stat ¶
type Stat struct { Uptime int64 `json:"uptime"` Hostname string `json:"hostname"` Load1 string `json:"load1"` Load5 string `json:"load5"` Load10 string `json:"load10"` RunningProcess string `json:"runningProcess"` TotalProcess string `json:"totalProcess"` MemTotal int64 `json:"memTotal"` MemFree int64 `json:"memFree"` MemBuffers int64 `json:"memBuffers"` MemAvailable int64 `json:"memAvailable"` MemCached int64 `json:"memCached"` SwapTotal int64 `json:"swapTotal"` SwapFree int64 `json:"swapFree"` FsInfos []FsInfo `json:"fsInfos"` Network map[string]Network `json:"network"` Cpu CpuInfo `json:"cpu"` }
Click to show internal directories.
Click to hide internal directories.