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)
type DiskUsageConfig ¶
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.
Click to show internal directories.
Click to hide internal directories.