notifiers

package
v1.141.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddNotifier

func AddNotifier(name string, params map[string]interface{}, forComp config.ForComponent, baseInfo config.BaseInfo) error

func ListAll added in v1.6.1

func ListAll() map[string][]Notifier

func MetadataFields added in v1.6.1

func MetadataFields() models.MetadataFields

func Notify

func Notify(store storages.Store)

func RegisterNotifier

func RegisterNotifier(notifier Notifier)

Types

type Notifier

type Notifier interface {
	Creator(params map[string]interface{}, baseInfo config.BaseInfo) (Notifier, error)
	Name() string
	Description() string
	Id() string
	Notify(notifyRequest *models.NotifyRequest) error
}

type NotifierAllInOne added in v1.6.1

type NotifierAllInOne interface {
	Notifier
	NotifierMetadataField
	NotifierPreCheck
}

special interface for creating a moke

type NotifierMetadataField added in v1.3.0

type NotifierMetadataField interface {
	MetadataFields() []models.MetadataField
}

type NotifierPreCheck added in v1.6.1

type NotifierPreCheck interface {
	PreCheck(incident models.Incident) error
}

func PreCheckers added in v1.6.1

func PreCheckers(components models.Components) []NotifierPreCheck

type ToNotifie

type ToNotifie struct {
	Notifier Notifier
	For      config.ForComponent
}

Directories

Path Synopsis
emailfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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