load

package
v1.0.0-...-37d8908 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2016 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoadAvgStat

type LoadAvgStat struct {
	Load1  float64 `json:"load1"`
	Load5  float64 `json:"load5"`
	Load15 float64 `json:"load15"`
}

func LoadAvg

func LoadAvg() (*LoadAvgStat, error)

func (LoadAvgStat) String

func (l LoadAvgStat) String() string

type MiscStat

type MiscStat struct {
	ProcsRunning int `json:"procsRunning"`
	ProcsBlocked int `json:"procsBlocked"`
	Ctxt         int `json:"ctxt"`
}

func Misc

func Misc() (*MiscStat, error)

Misc returnes miscellaneous host-wide statistics. Note: the name should be changed near future.

func (MiscStat) String

func (m MiscStat) String() string

Jump to

Keyboard shortcuts

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