load

package
v4.24.10 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 19

Documentation

Overview

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AvgStat

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

func Avg

func Avg() (*AvgStat, error)

func AvgWithContext

func AvgWithContext(ctx context.Context) (*AvgStat, error)

func (AvgStat) String

func (l AvgStat) String() 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

func Misc() (*MiscStat, error)

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

func MiscWithContext

func MiscWithContext(ctx context.Context) (*MiscStat, error)

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