Help us shape the future of Go! Take the 2026 Go Developer Survey

psi

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2026 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPUSomeAvg10 uint = iota
	CPUSomeAvg60
	CPUSomeAvg300
	CPUSomeTotal
	CPUFullAvg10
	CPUFullAvg60
	CPUFullAvg300
	CPUFullTotal
)
View Source
const (
	IoSomeAvg10 uint = iota
	IoSomeAvg60
	IoSomeAvg300
	IoSomeTotal
	IoFullAvg10
	IoFullAvg60
	IoFullAvg300
	IoFullTotal
)
View Source
const (
	MemorySomeAvg10 uint = iota
	MemorySomeAvg60
	MemorySomeAvg300
	MemorySomeTotal
	MemoryFullAvg10
	MemoryFullAvg60
	MemoryFullAvg300
	MemoryFullTotal
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PressureElement

type PressureElement struct {
	Some        PressureValue
	Full        PressureValue
	FullPresent bool
	Type        PressureType
}

func ReadCPUPressure

func ReadCPUPressure() (*PressureElement, error)

func ReadIoPressure

func ReadIoPressure() (*PressureElement, error)

func ReadMemoryPressure

func ReadMemoryPressure() (*PressureElement, error)

func (*PressureElement) Perfdata

func (p *PressureElement) Perfdata() *check.PerfdataList

type PressureType

type PressureType uint

type PressureValue

type PressureValue struct {
	Avg10  float64
	Avg60  float64
	Avg300 float64
	Total  uint64
}

func (*PressureValue) Perfdata

func (p *PressureValue) Perfdata(prefix string) *check.PerfdataList

Jump to

Keyboard shortcuts

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