diskchk

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DiskUsage

type DiskUsage struct {
	Config *DiskUsageConfig
}

DiskUsage implements the "ICheckable" interface.

func NewDiskUsage

func NewDiskUsage(cfg *DiskUsageConfig) (*DiskUsage, error)

func (*DiskUsage) Status

func (d *DiskUsage) Status() (interface{}, error)

Status is used for performing a diskusage check against a dependency; it satisfies the "ICheckable" interface.

type DiskUsageConfig

type DiskUsageConfig struct {
	Path              string
	WarningThreshold  float64
	CriticalThreshold float64
}

DiskUsageConfig is used for configuring the go-diskusage check.

"Path" is _required_; path to check directory/drive (ex. /home/user) "WarningThreshold" is _required_; set percent (more than 0 and less 100) of free space at specified path,

which triggers warning.

"CriticalThreshold" is _required_; set percent (more than 0 and less 100) of free space at specified path,

which triggers critical.

Jump to

Keyboard shortcuts

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