Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { *template.Data // The protocol version. Version string `json:"version"` GroupKey string `json:"groupKey"` TruncatedAlerts uint64 `json:"truncatedAlerts"` }
Message is the data structure of the webhook message. It is passed to the webhook server.
type Notifier ¶
type Notifier struct {
// contains filtered or unexported fields
}
Notifier email notifier
tmpl include all of receiver's template.
func New ¶
func New(cfg *profile.WebhookConfig, tmpl *template.Template, fn notify.CustomerConfigFunc[profile.WebhookConfig], ) (*Notifier, error)
New returns a new Webhook.
func (*Notifier) CustomConfig ¶
CustomConfig returns a custom config for the notifier.
func (*Notifier) SendResolved ¶
Click to show internal directories.
Click to hide internal directories.