Documentation ¶
Index ¶
- Constants
- func NewWebhookDest(url string) gadb.DestV1
- type POSTDataAlert
- type POSTDataAlertBundle
- type POSTDataAlertStatus
- type POSTDataAlertStatusBundle
- type POSTDataOnCallNotification
- type POSTDataOnCallUser
- type POSTDataTest
- type POSTDataVerification
- type Sender
- func (s *Sender) DisplayInfo(ctx context.Context, args map[string]string) (*nfydest.DisplayInfo, error)
- func (Sender) ID() string
- func (s *Sender) SendMessage(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
- func (Sender) TypeInfo(ctx context.Context) (*nfydest.TypeInfo, error)
- func (s *Sender) ValidateField(ctx context.Context, fieldID, value string) error
Constants ¶
View Source
const ( DestTypeWebhook = "builtin-webhook" FieldWebhookURL = "webhook_url" ParamBody = "body" ParamContentType = "content_type" FallbackIconURL = "builtin://webhook" )
Variables ¶
This section is empty.
Functions ¶
func NewWebhookDest ¶ added in v0.33.0
Types ¶
type POSTDataAlert ¶
type POSTDataAlert struct { AppName string Type string AlertID int Summary string Details string ServiceID string ServiceName string Meta map[string]string }
POSTDataAlert represents fields in outgoing alert notification.
type POSTDataAlertBundle ¶
type POSTDataAlertBundle struct { AppName string Type string ServiceID string ServiceName string Count int }
POSTDataAlertBundle represents fields in outgoing alert bundle notification.
type POSTDataAlertStatus ¶
POSTDataAlertStatus represents fields in outgoing alert status notification.
type POSTDataAlertStatusBundle ¶
type POSTDataAlertStatusBundle struct { AppName string Type string AlertID int LogEntry string Count int }
POSTDataAlertStatusBundle represents fields in outgoing alert status bundle notification.
type POSTDataOnCallNotification ¶ added in v0.31.0
type POSTDataOnCallNotification struct { AppName string Type string Users []POSTDataOnCallUser ScheduleID string ScheduleName string ScheduleURL string }
POSTDataOnCallNotification represents fields in outgoing on call notification.
type POSTDataOnCallUser ¶ added in v0.31.0
POSTDataOnCallUser represents User fields in outgoing on call notification.
type POSTDataTest ¶
POSTDataTest represents fields in outgoing test notification.
type POSTDataVerification ¶
POSTDataVerification represents fields in outgoing verification notification.
type Sender ¶
type Sender struct{}
func (*Sender) DisplayInfo ¶ added in v0.33.0
func (*Sender) SendMessage ¶ added in v0.33.0
func (s *Sender) SendMessage(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
Send will send an alert for the provided message type
Click to show internal directories.
Click to hide internal directories.