Documentation ¶ Index ¶ type Data type Template func New(input string) *Template func (self *Template) ConvertAlert(alert *alertmanager.Alert) *Data func (self *Template) Render(alert *alertmanager.Alert) (io.Reader, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Data ¶ type Data struct { Status string AlertName string Instance string Severity string Summary string Description string Labels map[string]string Annotations map[string]string } type Template ¶ type Template struct { Input string } func New ¶ func New(input string) *Template func (*Template) ConvertAlert ¶ func (self *Template) ConvertAlert(alert *alertmanager.Alert) *Data func (*Template) Render ¶ func (self *Template) Render(alert *alertmanager.Alert) (io.Reader, error) Source Files ¶ View all Source files message.go Click to show internal directories. Click to hide internal directories.