Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomReq ¶
type CustomReq struct { BaseReq Body WebhookBody }
type Data ¶
type Data struct { Receiver string `json:"receiver"` Status string `json:"status"` Alerts []Alert `json:"alerts"` GroupLabels map[string]string `json:"groupLabels"` CommonLabels map[string]string `json:"commonLabels"` CommonAnnotations map[string]string `json:"commonAnnotations"` ExternalURL string `json:"externalURL"` }
type FeishuReq ¶
type FeishuReq struct { BaseReq WebhookBody }
type WebhookBody ¶
type WebhookBody struct { *Data // The protocol version. Version string `json:"version"` GroupKey string `json:"groupKey"` TruncatedAlerts uint64 `json:"truncatedAlerts"` }
WebhookBody defines the JSON object send to webhook endpoints.
type WelcomeReq ¶
type WelcomeReq struct { }
type WelcomeRes ¶
type WelcomeRes struct { }
Click to show internal directories.
Click to hide internal directories.