psi

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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