Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetLoadAverages ¶
func GetMemoryUsage ¶
func GetMemoryUsage() (memory *mem.VirtualMemoryStat, err error)
func GetSwapUsage ¶
func GetSwapUsage() (swap *mem.SwapMemoryStat, err error)
Types ¶
type DiskUsageData ¶
type DiskUsageData struct { DeviceName string `json:"device"` MountPoint string `json:"mount_point"` FileSystemType string `json:"fs_type"` FileSystemOptions string `json:"fs_options"` Total uint64 `json:"total"` Free uint64 `json:"free"` Used uint64 `json:"used"` UsedPercent float64 `json:"used_percent"` FreePercent float64 `json:"free_percent"` }
func GetDiskUsage ¶
func GetDiskUsage() (disks []DiskUsageData, err error)
type HostInformation ¶ added in v0.2.0
type HostInformation struct { Information *host.InfoStat `json:"information"` Temperatures []host.TemperatureStat `json:"temperatures"` Users []host.UserStat `json:"users"` }
func GetHostInformation ¶ added in v0.2.0
func GetHostInformation() (hostInformation HostInformation, err error)
type PercentStat ¶
type PercentStat struct { CPU string `json:"cpu"` User float64 `json:"user"` System float64 `json:"system"` Idle float64 `json:"idle"` Nice float64 `json:"nice"` Iowait float64 `json:"iowait"` Irq float64 `json:"irq"` Softirq float64 `json:"softirq"` Steal float64 `json:"steal"` Guest float64 `json:"guest"` GuestNice float64 `json:"guestNice"` }
func GetCpuPercent ¶
func GetCpuPercent(perCpu bool) ([]PercentStat, error)
Click to show internal directories.
Click to hide internal directories.