Versions in this module Expand all Collapse all v0 v0.8.0 Mar 24, 2026 Changes in this version + const ResourceDisk + const ResourceLoad + const ResourceMemory + const ResourceSwap + func FormatGiB(bytes uint64) string + type DiskInfo struct + Err error + Path string + Supported bool + TotalBytes uint64 + UsedBytes uint64 + type LoadInfo struct + Load1 float64 + Load15 float64 + Load5 float64 + NumCPU int + Supported bool + type MemInfo struct + Supported bool + SwapTotalBytes uint64 + SwapUsedBytes uint64 + TotalBytes uint64 + UsedBytes uint64 + type ResourceAlert struct + Message string + Resource string + Severity Severity + func Evaluate(snap Snapshot) []ResourceAlert + type Severity int + const SeverityDanger + const SeverityOK + const SeverityWarning + func MaxSeverity(alerts []ResourceAlert) Severity + func SeverityFor(alerts []ResourceAlert, resource string) Severity + func (s Severity) String() string + type Snapshot struct + Disk DiskInfo + Load LoadInfo + Memory MemInfo + func Collect() Snapshot