psi

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: GPL-2.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() *perfdata.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) *perfdata.PerfdataList

Jump to

Keyboard shortcuts

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