Documentation ¶
Index ¶
Constants ¶
View Source
const (
TagLabel = "tag"
)
Variables ¶
View Source
var ( CanaryFiringTemplate = template.Must(template. New("canaryFiringAlerts"). Parse(`sum by({{.TagLabel}},app,alertname)(ALERTS{ {{.TagLabel}}="{{.Tag}}",canary="true",alertstate="{{.AlertState}}"})`)) SLOFiringTemplate = template.Must(template. New("sloFiringAlerts"). Parse(`sum by({{.TagLabel}},app,alertname)(ALERTS{slo="true",alertstate="{{.AlertState}}"})`)) )
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
type AlertQuery ¶
func NewAlertQuery ¶
func NewAlertQuery(app, tag string) AlertQuery
Click to show internal directories.
Click to hide internal directories.