Versions in this module Expand all Collapse all v0 v0.5.0 Feb 8, 2022 Changes in this version + type CPUAverage struct + GuestPct float64 + IdlePct float64 + IowaitPct float64 + IrqPct float64 + NicePct float64 + Seconds float64 + SoftIrqPct float64 + StealPct float64 + SystemPct float64 + Time time.Time + UserPct float64 + func GetCPUAverage(first CPUSample, second CPUSample) CPUAverage + type CPUSample struct + Guest uint64 + Idle uint64 + Iowait uint64 + Irq uint64 + Name string + Nice uint64 + SoftIrq uint64 + Steal uint64 + System uint64 + Time time.Time + Total uint64 + User uint64 + func GetCPUSample() (samp CPUSample) + type LoadAvgSample struct + Fifteen float64 + Five float64 + One float64 + Time time.Time + func GetLoadAvgSample() (samp LoadAvgSample) + type MemSample struct + Buffers uint64 + Cached uint64 + MemFree uint64 + MemTotal uint64 + MemUsed uint64 + SwapFree uint64 + SwapTotal uint64 + SwapUsed uint64 + Time time.Time + func GetMemSample() (samp MemSample) + type ProcCPUAverage struct + CumulativeTotalPct float64 + PossiblePct float64 + Seconds float64 + SystemPct float64 + Time time.Time + TotalPct float64 + UserPct float64 + func GetProcCPUAverage(first ProcCPUSample, second ProcCPUSample, procUptime float64) (avg ProcCPUAverage) + type ProcCPUSample struct + ProcMemUsedK int64 + System float64 + Time time.Time + Total float64 + User float64 + func GetProcCPUSample() (samp ProcCPUSample) + type SimpleCPUAverage struct + BusyPct float64 + IdlePct float64 + func GetSimpleCPUAverage(first CPUSample, second CPUSample) SimpleCPUAverage + type UptimeSample struct + Time time.Time + Uptime float64 + func GetUptime() (samp UptimeSample)