Documentation ¶
Index ¶
Constants ¶
View Source
const FATAL = "fatal"
FATAL represents fatal severity
View Source
const INFO = "info"
INFO represents info severity
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // Threshold is the percentage disk usage required to driver an alert Threshold int // alert interface Alert alert.Alert // State interface State backend.State // Host is the system being managed by this config Host System }
Config type represents the configuration for disk-usage checking and alerting
func (Config) WriteState ¶
type Device ¶
type Device struct { Name string `json:"name"` MountPoint string `json:"mountpoint"` Type string `json:"type"` UsagePercent int `json:"usage_percent"` Healthy bool `json:"healthy"` }
Device represents a device attached to the system
Click to show internal directories.
Click to hide internal directories.