Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct { Status string `json:"status"` Labels Label `json:"labels"` Annotations Annotation `json:"annotations"` StartsAt time.Time `json:"startsAt"` EndsAt time.Time `json:"endsAt"` GeneratorURL string `json:"generatorURL"` }
Alert describes an alert
type Annotation ¶
Annotation describes an alert
type GroupLabel ¶
type GroupLabel struct { AlertName string `json:"alertname"` Application string `json:"application"` }
GroupLabel describes a group label
type Label ¶
type Label struct { AlertName string `json:"alertname"` Application string `json:"application"` ApplicationID string `json:"application_id"` BrokerID string `json:"broker_id"` Deployment string `json:"deployment"` Instance string `json:"instance"` Job string `json:"job"` Organization string `json:"organization"` OrganizationID string `json:"organization_id"` Region string `json:"region"` Severity string `json:"severity"` Space string `json:"space"` SpaceID string `json:"space_id"` }
Label describes a label
type Payload ¶
type Payload struct { Receiver string `json:"receiver"` Status string `json:"status"` Alerts []Alert `json:"alerts"` GroupLabels GroupLabel `json:"groupLabels"` CommonLabels Label `json:"commonLabels"` CommonAnnotations Annotation `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` Version string `json:"version"` GroupKey string `json:"groupKey"` }
Payload is the JSON format of HSDP Metrics webhook alerts
Click to show internal directories.
Click to hide internal directories.