Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCPUUsage ¶
func GetDiskUsage ¶
func GetNetworkUsage ¶
func GetNetworkUsage() ([]net.IOCountersStat, error)
func GetRAMUsage ¶
func GetRAMUsage() (*mem.VirtualMemoryStat, error)
func PrintSystemMetrics ¶
func PrintSystemMetrics(metrics *SysMetrics)
Types ¶
type SysMetrics ¶
type SysMetrics struct { CPUUsage float64 RamUsage *mem.VirtualMemoryStat DiskUsage *disk.UsageStat NetworkUsage []net.IOCountersStat }
func GetSysMetrics ¶
func GetSysMetrics() (*SysMetrics, error)
Click to show internal directories.
Click to hide internal directories.