memory

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Mem

type Mem struct {
	VirtMem *mem.VirtualMemoryStat
	// MemUsedPercentage      float64 // already in VirtMem
	MemAvailablePercentage float64

	SwapInfo *mem.SwapMemoryStat
}

func LoadMemStat

func LoadMemStat() (m *Mem, err error)

type MemConfig

type MemConfig struct {
	MemAvailable           thresholds.Thresholds
	MemUsed                thresholds.Thresholds
	MemFree                thresholds.Thresholds
	MemAvailablePercentage thresholds.Thresholds
	MemUsedPercentage      thresholds.Thresholds
	MemFreePercentage      thresholds.Thresholds

	SwapUsed           thresholds.Thresholds
	SwapFree           thresholds.Thresholds
	SwapUsedPercentage thresholds.Thresholds
	SwapFreePercentage thresholds.Thresholds

	Verbose              bool
	PercentageInPerfdata bool
}

Jump to

Keyboard shortcuts

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