Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadAverages ¶
LoadAverages stores the values of load averages of the last 1, 5 and 15 minutes.
type LoadMetrics ¶
type LoadMetrics struct {
// contains filtered or unexported fields
}
LoadMetrics stores the sampled load average values of the host.
func Load ¶
func Load() (*LoadMetrics, error)
Load returns CPU load information for the previous 1, 5, and 15 minute periods.
func (*LoadMetrics) Averages ¶
func (m *LoadMetrics) Averages() LoadAverages
Averages return the CPU load averages. These values should range from 0 to NumCPU.
func (*LoadMetrics) NormalizedAverages ¶
func (m *LoadMetrics) NormalizedAverages() LoadAverages
NormalizedAverages return the CPU load averages normalized by the NumCPU. These values should range from 0 to 1.
Click to show internal directories.
Click to hide internal directories.