memory

package
v0.0.0-...-a534134 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FormatString = "Mem: %v%%"

	DefaultWarnThreshold = 75
	DefaultCritThreshold = 85
)
View Source
const Identifier = "memory"

Variables

This section is empty.

Functions

This section is empty.

Types

type Memory

type Memory struct {
	Name          string
	WarnThreshold int
	CritThreshold int
}

func (Memory) Generate

func (m Memory) Generate() ([]i3.Output, error)

func (Memory) IsCrit

func (m Memory) IsCrit(i int) bool

func (Memory) IsWarn

func (m Memory) IsWarn(i int) bool

type MemoryConfig

type MemoryConfig struct {
	Interval      string `json:"interval"`
	WarnThreshold int    `json:"warn_threshold"`
	CritThreshold int    `json:"crit_threshold"`
}

MemoryConfig represents the configuration for a Memory plugin in JSON format

Jump to

Keyboard shortcuts

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