manager

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Methods added in v0.4.0

func Methods() []string

Methods returns the list of methods of the alert manager

func ModuleName added in v0.4.0

func ModuleName() string

ModuleName returns a lua module name for the alert manager

Types

type Manager

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

Manager represents the Alert manager struct

func New

func New(engine coreStorage.CoreStorage, logger *zap.Logger) *Manager

New returns new Alert manager instance

func (*Manager) GetLoader

func (m *Manager) GetLoader(s *script.Script) lua.LGFunction

GetLoader implements Modules/Module.GetLoader

func (*Manager) Init

func (m *Manager) Init(cfg *config.Channels) error

Init the Alert manager

func (*Manager) Name

func (m *Manager) Name() string

Name returns the alert manager name

func (*Manager) Send

func (m *Manager) Send(level, alertName, text string, channels, fields []string, image string)

Send a message

func (*Manager) Stop

func (m *Manager) Stop() error

Stop the alert manager

Jump to

Keyboard shortcuts

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