You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import n "github.com/rakutentech/go-alertnotification"
//Create expandos, can keep the field value as configured by removing that field from expandos
expandos := &n.Expandos{
EmailBody: "This is the customized email body",
EmailSubject: "This is the customized email subject",
MsTeamsCardSubject: "This is the customized MS Teams card summary",
MsTeamsAlertCardSubject: "This is the customized MS Teams card title",
MsTeamsError: "This is the customized MS Teams card error message",
}
//Create New Alert
alert := n.NewAlertWithExpandos(err, ignoringErr, expandos)
//Send notification
alert.Notify()
// To remove all current throttling
alert.RemoveCurrentThrotting()
About
Go Package to notify app alerts to Email and MS teams using Webhook