gopsutil.v1: gopkg.in/shirou/gopsutil.v1/load Index | Files

package load

import "gopkg.in/shirou/gopsutil.v1/load"

Index

Package Files

load.go load_linux.go

type LoadAvgStat Uses

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

func LoadAvg Uses

func LoadAvg() (*LoadAvgStat, error)

func (LoadAvgStat) String Uses

func (l LoadAvgStat) String() string

type MiscStat Uses

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

func Misc Uses

func Misc() (*MiscStat, error)

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

func (MiscStat) String Uses

func (m MiscStat) String() string

Package load imports 5 packages (graph). Updated 2016-07-18. Refresh now. Tools for package owners.