plugin

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const RegisterFuncName = "Register"

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

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

func (Plugin) Creator

func (n Plugin) Creator(params map[string]interface{}, baseInfo config.BaseInfo) (notifiers.Notifier, error)

func (Plugin) Id

func (n Plugin) Id() string

func (Plugin) MetadataFields added in v1.3.0

func (n Plugin) MetadataFields() []models.MetadataField

func (Plugin) Name

func (n Plugin) Name() string

func (Plugin) Notify

func (n Plugin) Notify(incident models.Incident) error

func (Plugin) NotifySubscriber

func (n Plugin) NotifySubscriber(incident models.Incident, subscribers []string) error

Jump to

Keyboard shortcuts

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