Documentation ¶
Overview ¶
Package kapacitor provides the means for alerting if a stat exceeds a threshold.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alert ¶
type Alert struct { Tags map[string]string `json:"tags,omitempty"` // populates the WHERE Metric string `json:"metric"` // the stat to track Level string `json:"level,omitempty"` // the alert level (info, warn, crit) Threshold int `json:"threshold"` // limit that alert is triggered Duration string `json:"duration"` // how far back to average (5m) Post string `json:"post"` // api to hit when alert is triggered }
Alert is an object to simplify creating tasks
Click to show internal directories.
Click to hide internal directories.