Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertManager ¶
type AlertManager interface {
HandleAlert(PrometheusAlertNotification) []AlertResponse
}
An AlertManager is responsible for coordinating Prometheus alerts sent to it.
func MakeAlertManager ¶
func MakeAlertManager() AlertManager
MakeAlertManager returns an alertManager.
type AlertResponse ¶
type AlertResponse struct { ID int `json:"id"` Name string `json:"name"` Status string `json:"status"` Alert Alert `json:"alert,omitempty"` }
AlertResponse is the minimal representation of an Alert typically used for listings, etc.
type PrometheusAlertNotification ¶
type PrometheusAlertNotification struct { Version string `json:"version"` Status string `json:"status"` Alert []Alert `json:"alert,omitempty"` }
PrometheusAlertNotification represents an alert notification from Prometheus.
Click to show internal directories.
Click to hide internal directories.