Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ResourceUsage ¶
type ResourceUsage struct {
CPUCores float64
CPUPercent float64
MemoryBytes int64
MemoryPercent float64
StorageBytes int64
StoragePercent float64
}
ResourceUsage contains basic host system resource utilization
func CollectSystemStats ¶
func CollectSystemStats(dataPath string) ResourceUsage
CollectSystemStats gathers basic host system resource usage metrics similar to uptime, free -m, and df -h
Click to show internal directories.
Click to hide internal directories.