Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AllStats ¶
type AllStats struct { Scope string Name string CPU float64 RAM float64 LastUpdate time.Time Data []Stats }
AllStats -
type App ¶
App -
type IOCount ¶
IOCount -
type Stat ¶
type Stat struct {
// contains filtered or unexported fields
}
Stat will store CPU time struct
type Stats ¶
type Stats struct { Scope string Name string Pid int CPU float64 RAM float64 Path string Cmdline []string IOCount IOCount Status rates.SendStatus }
Stats -
type SysInfo ¶
SysInfo will record cpu and memory data
type System ¶
type System struct { CPU struct { Core int `json:"core"` Thread int `json:"thread"` Percent float64 `json:"percent"` } `json:"cpu"` RAM struct { Total uint64 `json:"total"` Used uint64 `json:"used"` UsedPercent float64 `json:"usedPercent"` } `json:"ram"` Host struct { BootTime time.Time `json:"bootTime"` } `json:"host"` }
System -
Click to show internal directories.
Click to hide internal directories.