Documentation
¶
Overview ¶
Package load is the load behavior: the load averages of the host.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Behavior = behavior.Register(behavior.Define( "load", "Get the load averages of target hosts", behavior.Node, behavior.API, behavior.Area(area.Node), behavior.CLI, behavior.Platform(behavior.PlatformLinux, newReader), behavior.Platform(behavior.PlatformDarwin, newReader), behavior.RunsOnPlatform(behavior.PlatformDarwin, "sysctl"), behavior.Read("get", Get). Describe("Get the load averages of the host"). Explain("Reads the averages of the run queue over 1, 5 and 15 minutes."). Example("A host under a light load", GetInput{}, Entry{LoadAverage: Averages{One: 0.32, Five: 0.28, Fifteen: 0.25}}, behavior.Exists("/proc/loadavg", "0.32 0.28 0.25 1/412 12345\n"), behavior.Prints("sysctl -n vm.loadavg", "{ 0.32 0.28 0.25 }\n"), ), ))
Behavior is the load definition.
Functions ¶
This section is empty.
Types ¶
type Averages ¶
type Averages struct {
One float64 `json:"1min" label:"1 min" doc:"The load average over 1 minute"`
Five float64 `json:"5min" label:"5 min" doc:"The load average over 5 minutes"`
Fifteen float64 `json:"15min" label:"15 min" doc:"The load average over 15 minutes"`
}
Averages are the load averages over 1, 5 and 15 minutes.
Click to show internal directories.
Click to hide internal directories.