eventhandler

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SlackType = "slack"
	SMTPType  = "smtp"
	POSTType  = "post"
)

Variables

Functions

func CreateEventHandler

func CreateEventHandler(eventType string, eventHandlerReq types.AlertEventHandlerReq) (types.AlertEventHandler, error)

func DeleteEventHandler

func DeleteEventHandler(eventType string, eventHandlerName string) error

func GetEventHandler

func GetEventHandler(eventType string, eventHandlerName string) (types.AlertEventHandler, error)

func ListEventHandlers

func ListEventHandlers(eventType string) ([]types.AlertEventHandler, error)

func UpdateEventHandler

func UpdateEventHandler(eventType string, eventHandlerName string, eventHandlerReq types.AlertEventHandlerReq) (types.AlertEventHandler, error)

Types

type EventHandler

type EventHandler interface {
	ListEventHandlers() ([]types.AlertEventHandler, error)
	GetEventHandler(name string) (types.AlertEventHandler, error)
	CreateEventHandler(createOpts types.AlertEventHandlerReq) (types.AlertEventHandler, error)
	UpdateEventHandler(name string, updateOpts types.AlertEventHandlerReq) (types.AlertEventHandler, error)
	DeleteEventHandler(name string) error
}

Directories

Path Synopsis
event

Jump to

Keyboard shortcuts

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