Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
Type string `json:"type"`
Host string `json:"host"`
Service string `json:"service"`
Notify string `json:"notify"`
NotificationType string `json:"notification-type"`
State string `json:"state"`
Message string `json:"message"`
Note string `json:"note"`
}
Alert represents a Nagios alert that is to be converted to a Prometheus alert
Type: host or service Host: hostname Service: servicename Notify: notify string ** overwriten by notifyLabel if present ** Notification types:
PROBLEM / ACKNOWLEDGEMENT / RECOVERY
State:
Host states: UP / DOWN Service states: CRITICAL / WARNING / UNKNOWN / OK
Message: Optional message Note: Reference URL
type AlertMetadata ¶
type InternalAlert ¶
type InternalAlert struct {
PrometheusAlert prometheus.Alert
Metadata AlertMetadata
}
type NotificationSender ¶
type NotificationSender interface {
Send([]prometheus.Alert)
}
A function type sent to export function
Click to show internal directories.
Click to hide internal directories.