Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MaskURLPass ¶
MaskURLPass will mask the password (if any) in the URL.
Types ¶
type POSTDataAlert ¶
type POSTDataAlert struct { AppName string Type string AlertID int Summary string Details string ServiceID string ServiceName 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) FriendlyValue ¶
FriendlyValue will return a display-ready version of the URL with the password masked, query removed, and the path truncated to 15 chars.
func (*Sender) Send ¶
func (s *Sender) Send(ctx context.Context, msg notification.Message) (*notification.SentMessage, error)
Send will send an alert for the provided message type