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 ¶
func GenBatchTick ¶
func GenBatchTick(stat, database, retentionPolicy, measurement string, where map[string]string, period, every string, alerts map[string]string, post string) string
GenBatchTick generates a simple batch type TICKscript
Types ¶
type Alert ¶
type Alert struct { Id string `json:"id"` // id of task created (for returning to user) 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) Operator string `json:"operator"` // comparison operator used (bash style - gt, lt, le, ge, eq, ne) Threshold string `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.