alert

package
v2.2.4-rc5+incompatible Latest Latest
Warning

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

Go to latest
Published: May 16, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterAlertRuleValidator

func ClusterAlertRuleValidator(resquest *types.APIContext, schema *types.Schema, data map[string]interface{}) error

func GroupFormatter

func GroupFormatter(apiContext *types.APIContext, resource *types.RawResource)

func NotifierCollectionFormatter

func NotifierCollectionFormatter(apiContext *types.APIContext, collection *types.GenericCollection)

func NotifierFormatter

func NotifierFormatter(apiContext *types.APIContext, resource *types.RawResource)

func ProjectAlertRuleValidator

func ProjectAlertRuleValidator(resquest *types.APIContext, schema *types.Schema, data map[string]interface{}) error

func RuleFormatter

func RuleFormatter(apiContext *types.APIContext, resource *types.RawResource)

Types

type Handler

type Handler struct {
	ClusterAlertRule v3.ClusterAlertRuleInterface
	ProjectAlertRule v3.ProjectAlertRuleInterface
	Notifiers        v3.NotifierInterface
}

func (*Handler) ClusterAlertRuleActionHandler

func (h *Handler) ClusterAlertRuleActionHandler(actionName string, action *types.Action, request *types.APIContext) error

func (*Handler) NotifierActionHandler

func (h *Handler) NotifierActionHandler(actionName string, action *types.Action, apiContext *types.APIContext) error

func (*Handler) ProjectAlertRuleActionHandler

func (h *Handler) ProjectAlertRuleActionHandler(actionName string, action *types.Action, request *types.APIContext) error

Jump to

Keyboard shortcuts

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