Documentation ¶
Overview ¶
Package noop provides a fallback alert engine for cases where no alert is set.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alert ¶
type Alert struct {
// contains filtered or unexported fields
}
Alert is the structure backing the noop alert
func NewNoopAlert ¶
func NewNoopAlert(actionType interfaces.ActionType) (*Alert, error)
NewNoopAlert creates a new noop alert engine
func (*Alert) Class ¶
func (a *Alert) Class() interfaces.ActionType
Class returns the action type of the noop engine
func (*Alert) Do ¶
func (a *Alert) Do( _ context.Context, _ interfaces.ActionCmd, _ models.ActionOpt, _ protoreflect.ProtoMessage, _ interfaces.ActionsParams, _ *json.RawMessage, ) (json.RawMessage, error)
Do perform the noop alert
func (*Alert) GetOnOffState ¶
GetOnOffState returns the off state of the noop engine
Click to show internal directories.
Click to hide internal directories.