Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AlertStatus ¶
type AlertStatus string
const ( AlertStatusResolved AlertStatus = "resolved" AlertStatusFiring AlertStatus = "firing" )
type WebhookAlert ¶
type WebhookPayload ¶
type WebhookPayload struct {
Version string `json:"version"`
GroupKey string `json:"groupKey"`
TruncatedAlerts uint64 `json:"truncatedAlerts"`
Status AlertStatus `json:"status"`
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 []WebhookAlert `json:"alerts"`
}
func (*WebhookPayload) AnnotationKeysExceptCommon ¶
func (p *WebhookPayload) AnnotationKeysExceptCommon() []string
func (*WebhookPayload) HasSkipAutoCloseAnnotation ¶ added in v0.2.0
func (p *WebhookPayload) HasSkipAutoCloseAnnotation() bool
func (*WebhookPayload) LabelKeysExceptCommon ¶
func (p *WebhookPayload) LabelKeysExceptCommon() []string
Click to show internal directories.
Click to hide internal directories.