Documentation ¶ Index ¶ type Alert type Alerter func NewAlerter() *Alerter func (a *Alerter) IsResourceIgnored(res resource.Resource) bool func (a *Alerter) Retrieve() Alerts func (a *Alerter) SendAlert(key string, alert Alert) func (a *Alerter) SetAlerts(alerts Alerts) type AlerterInterface type Alerts Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Alert ¶ type Alert struct { Message string `json:"message"` ShouldIgnoreResource bool `json:"-"` } type Alerter ¶ type Alerter struct { // contains filtered or unexported fields } func NewAlerter ¶ func NewAlerter() *Alerter func (*Alerter) IsResourceIgnored ¶ func (a *Alerter) IsResourceIgnored(res resource.Resource) bool func (*Alerter) Retrieve ¶ func (a *Alerter) Retrieve() Alerts func (*Alerter) SendAlert ¶ func (a *Alerter) SendAlert(key string, alert Alert) func (*Alerter) SetAlerts ¶ func (a *Alerter) SetAlerts(alerts Alerts) type AlerterInterface ¶ added in v0.4.0 type AlerterInterface interface { SendAlert(key string, alert Alert) } type Alerts ¶ type Alerts map[string][]Alert Source Files ¶ View all Source files alert.go alerter.go Click to show internal directories. Click to hide internal directories.