Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartServer ¶
StartServer starts the baracca
Types ¶
type Alert ¶
type Alert struct { Labels map[string]string `json:"labels"` Annotations map[string]string `json:"annotations"` StartsAt Timestamp `json:"startsAt,omitempty"` EndsAt Timestamp `json:"endsAt,omitempty"` }
Alert represent a single alert
type AlertNotification ¶
type AlertNotification struct { Version string `json:"version"` GroupKey string `json:"groupKey"` Status string `json:"status"` // resolved|firing Receiver string `json:"receiver"` GroupLabels map[string]string `json:"groupLabels"` CommonLabels map[string]string `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` Alerts []Alert `json:"alerts"` }
AlertNotification is a bunch of alerts
type Timestamp ¶
Timestamp is a helper type to handle RFC3339 timestamps
func (*Timestamp) MarshalJSON ¶
MarshalJSON emits a timestamp suitable for use in json
func (*Timestamp) UnmarshalJSON ¶
UnmarshalJSON reads back data from json
Click to show internal directories.
Click to hide internal directories.