Documentation ¶
Index ¶
Constants ¶
View Source
const (
// AlertPath is the path to post alarms to
AlertPath = "/api/v1/alerts"
)
Variables ¶
View Source
var ( // AlertPathURL holds the base URL to the AlertPathURL *url.URL )
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Labels Labels `json:"labels"` Annotations Annotations `json:"annotations"` StartsAt time.Time `json:"startsAt"` EndsAt time.Time `json:"endsAt"` GeneratorURL string `json:"generatorUrl"` }
Alert defines an alertmanager alarm
type AlertManager ¶
AlertManager client
func (AlertManager) Trigger ¶
func (am AlertManager) Trigger(a Alerter) error
Trigger sends the Alert to the AlertManager
type Annotations ¶
Annotations holds additional information for an alarm
Click to show internal directories.
Click to hide internal directories.