Documentation ¶
Overview ¶
Package alerting implements alerting functionality in Cloudprober.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StatusHTML ¶
Types ¶
type AlertHandler ¶
type AlertHandler struct {
// contains filtered or unexported fields
}
AlertHandler is responsible for handling alerts. It keeps track of the health of targets and notifies the user if there is a failure.
func NewAlertHandler ¶
func NewAlertHandler(conf *configpb.AlertConf, probeName string, l *logger.Logger) (*AlertHandler, error)
NewAlertHandler creates a new AlertHandler from the given config. If the config is invalid, an error is returned.
func (*AlertHandler) Record ¶
func (ah *AlertHandler) Record(ep endpoint.Endpoint, em *metrics.EventMetrics)
Directories ¶
Path | Synopsis |
---|---|
Package alertinfo implements AlertInfo struct for sharing alert data across modules.
|
Package alertinfo implements AlertInfo struct for sharing alert data across modules. |
Package notifier implements notifications related functionality.
|
Package notifier implements notifications related functionality. |
opsgenie
Package opsgenie implements Opsgenie notifications for Cloudprober alert events.
|
Package opsgenie implements Opsgenie notifications for Cloudprober alert events. |
pagerduty
Package pagerduty implements pagerduty notifications for Cloudprober alert events.
|
Package pagerduty implements pagerduty notifications for Cloudprober alert events. |
slack
Package slack implements slack notifications for Cloudprober alert events.
|
Package slack implements slack notifications for Cloudprober alert events. |
Click to show internal directories.
Click to hide internal directories.