Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultRoutes = "*/warning/*;*/critical/*;*/resolved/*"
Functions ¶
This section is empty.
Types ¶
type Route ¶
type Route struct { Check string CheckLevel checks.CheckStatus Notifier string }
Routes holds the routing information for every checks, alert level combination which Notifier should be used. Routes are of the form
`check-name/check-result/notifier-name`
Ex. min-healthy/warning/slack The default Route(s) are of the form
`*/warning/*` and `*/critical/*` and `*/resolved/*`
func ParseRoutes ¶
func (*Route) MatchCheckResult ¶ added in v0.3.1
func (r *Route) MatchCheckResult(level checks.CheckStatus) bool
func (*Route) MatchNotifier ¶
Click to show internal directories.
Click to hide internal directories.