Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
func StartServer(bearerToken string)
Types ¶
type Alert ¶
type Alert struct {
Status string `json:"status"`
Labels map[string]string `json:"labels"`
Annotations map[string]string `json:"annotations"`
StartsAt string `json:"startsAt"`
EndsAt string `json:"endsAt"`
GeneratorURL string `json:"generatorURL"`
} // Alert represents a single alert from Alertmanager
Alertmanager - https://prometheus.io/docs/alerting/latest/configuration/#webhook_config
type AlertmanagerWebhook ¶
type AlertmanagerWebhook struct {
Status string `json:"status"`
Version string `json:"version"`
GroupKey string `json:"groupKey"`
Receiver string `json:"receiver"`
GroupLabels struct{} `json:"groupLabels"`
CommonLabels struct{} `json:"commonLabels"`
CommonAnnotations struct{} `json:"commonAnnotations"`
ExternalURL string `json:"externalURL"`
Alerts []Alert `json:"alerts"`
} // AlertmanagerWebhook represents the structure of an Alertmanager webhook payload
type PushbulletNote ¶
type PushbulletNote struct {
Body string `json:"body"`
Title string `json:"title"`
Type string `json:"type"`
}
Pushbullet note - https://docs.pushbullet.com/#parameters-for-different-types-of-pushes
Click to show internal directories.
Click to hide internal directories.