notifier

package
v0.0.0-...-425e462 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2019 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCmd

func NewCmd() *cobra.Command

Types

type SMS

type SMS struct {
	AlertName        string
	NotificationType string
	ServiceState     string
	Author           string
	Comment          string
	Hostname         string
}

func (*SMS) Render

func (m *SMS) Render() string

type Secret

type Secret struct {
	Namespace string `json:"namespace"`
	Token     string `json:"token"`
}

type TemplateData

type TemplateData struct {
	AlertNamespace     string
	AlertType          string
	AlertName          string
	ObjectName         string
	IcingaHostName     string
	IcingaServiceName  string
	IcingaCheckCommand string
	IcingaType         string
	IcingaState        string
	IcingaOutput       string
	Author             string
	Comment            string
	IcingaTime         time.Time
}

Jump to

Keyboard shortcuts

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