loadavg

package
v0.0.0-...-d990f74 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 30, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadAvg

type LoadAvg struct {
	Last1Min  float64
	Last5Min  float64
	Last15Min float64
}

func GetLoadAvg

func GetLoadAvg() (*LoadAvg, error)

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

Plugin watches the load of a machine.

func NewPlugin

func NewPlugin() (*Plugin, error)

NewPlugin initializes a new Plugin to watch the load of a machine.

func (*Plugin) Name

func (p *Plugin) Name() string

Name is the name of the plugin.

func (*Plugin) Snapshot

func (p *Plugin) Snapshot() (interface{}, error)

Snapshot returns a snapshot of the current load.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL