Documentation
¶
Index ¶
Constants ¶
View Source
const DSNVar = "ALERTSNITCH_DSN"
DSNVar Environment variable in which the DSN is stored
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Status string `json:"status"` Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` StartsAt time.Time `json:"startsAt"` EndsAt time.Time `json:"endsAt"` GeneratorURL string `json:"generatorURL"` Fingerprint string `json:"fingerprint"` ValueString string `json:"valueString"` }
Alert holds one alert for notification templates.
type AlertGroup ¶
type AlertGroup struct { Version string `json:"version"` GroupKey string `json:"groupKey"` Receiver string `json:"receiver"` Status string `json:"status"` Alerts Alerts `json:"alerts"` GroupLabels map[string]string `json:"groupLabels"` CommonLabels map[string]string `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` }
AlertGroup is the data read from a webhook call
Click to show internal directories.
Click to hide internal directories.