package load
import "github.com/shirou/gopsutil/v3/load"
Index ¶
- type AvgStat
- func Avg() (*AvgStat, error)
- func AvgWithContext(ctx context.Context) (*AvgStat, error)
- func (l AvgStat) String() string
- type MiscStat
Types ¶
type AvgStat ¶
type AvgStat struct { Load1 float64 `json:"load1"` Load5 float64 `json:"load5"` Load15 float64 `json:"load15"` }
func Avg ¶
func AvgWithContext ¶
func (AvgStat) String ¶
type MiscStat ¶
type MiscStat struct { ProcsTotal int `json:"procsTotal"` ProcsCreated int `json:"procsCreated"` ProcsRunning int `json:"procsRunning"` ProcsBlocked int `json:"procsBlocked"` Ctxt int `json:"ctxt"` }
func Misc ¶
Misc returns miscellaneous host-wide statistics. Note: the name should be changed near future.
func MiscWithContext ¶
func (MiscStat) String ¶
Source Files ¶
- Version
- v3.24.5 (latest)
- Published
- May 28, 2024
- Platform
- linux/amd64
- Imports
- 7 packages
- Last checked
- 1 day ago –
Tools for package owners.