message

package
v1.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL