zenduty

package
v0.9.3 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AlertTypes = []string{
	"critical",
	"acknowledged",
	"resolved",
	"error",
	"warning",
	"info",
}

Functions

This section is empty.

Types

type Zenduty

type Zenduty struct {
	// contains filtered or unexported fields
}

func NewZenduty

func NewZenduty(config map[string]interface{}, appCfg *config.App) *Zenduty

NewZenduty returns new zenduty instance

func (*Zenduty) Name

func (m *Zenduty) Name() string

Name returns name of the provider

func (*Zenduty) SendEvent

func (m *Zenduty) SendEvent(e *event.Event) error

SendEvent sends event to the provider

func (*Zenduty) SendMessage

func (m *Zenduty) SendMessage(msg string) error

SendMessage sends text message to the provider

Jump to

Keyboard shortcuts

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