Documentation ¶
Index ¶
Constants ¶
View Source
const ( STATE_OK = "ok" STATE_WARN = "warn" STATE_PROBLEM = "problem" STATE_CRITICAL = "critical" )
Variables ¶
View Source
var ErrBadServiceName = errors.New("Service name contains disallowed symbols")
View Source
var ErrHostNotSet = errors.New("Host field is mandatory and must be set")
View Source
var ErrServiceNotSet = errors.New("Service field is mandatory and must be set")
View Source
var ErrStateNotSet = errors.New("State field is mandatory and must be set")
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Service string `json:"service"` Host string `json:"host"` TTL int `json:"ttl"` State string `json:"state"` Desc string `json:"description"` }
Alert contains alert data
Click to show internal directories.
Click to hide internal directories.