Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Alerter ¶
type Alerter struct {
// contains filtered or unexported fields
}
Alerter is the main alerter stuct
func (*Alerter) AddConditon ¶
AddConditon add an alerting condition
func (*Alerter) AddDestination ¶
func (a *Alerter) AddDestination(d *Destination) error
AddDestination adds a destination (mail group, chat root) to alerting
type Conditon ¶
type Conditon interface { Kind() string DoAlert(*msg.AlertMsg, *viper.Viper) error CheckConfig(*viper.Viper) error }
Conditon is a check if a alerting rule is triggered
type Destination ¶
type Destination struct {
// contains filtered or unexported fields
}
Destination is a endpoint for alerting (e.g. mail to a group)
type Engine ¶
type Engine interface { Kind() string Send(*msg.AlertMsg, *Rule, *Destination) error // contains filtered or unexported methods }
Engine sends out alerts
type StatusCond ¶
type StatusCond struct{}
StatusCond is a filter condtion based on the status
func (StatusCond) CheckConfig ¶
func (StatusCond) CheckConfig(cfg *viper.Viper) error
CheckConfig checks if the config is valid
type SzenarioCond ¶
type SzenarioCond struct{}
SzenarioCond is a filter condtion based on the szenario name
func (SzenarioCond) CheckConfig ¶
func (SzenarioCond) CheckConfig(cfg *viper.Viper) error
CheckConfig checks if the config is valid
Click to show internal directories.
Click to hide internal directories.