types

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlertSinker

type AlertSinker interface {
	SinkAlerts(ctx context.Context, evtAlerts []*EventAlert) error
}

type Event

type Event struct {
	Event *corev1.Event

	AlertEvaluated        bool
	NotificationEvaluated bool
	// contains filtered or unexported fields
}

func (*Event) EvalByRule

func (evt *Event) EvalByRule(rule *eventsv1alpha1.EventRule) (ok bool, err error)

func (*Event) EvalToAlert

func (evt *Event) EvalToAlert(evtRules []*eventsv1alpha1.Rule) (*EventAlert, error)

func (*Event) EvalToNotification

func (evt *Event) EvalToNotification(evtRules []*eventsv1alpha1.Rule) (*EventNotification, error)

func (*Event) Flat

func (evt *Event) Flat() map[string]interface{}

type EventAlert

type EventAlert struct {
	Alert *amkit.RawAlert
}

type EventNotification

type EventNotification struct {
	Event *corev1.Event
}

type EventSource

type EventSource interface {
	Events() <-chan *Event
}

type NotificationSinker

type NotificationSinker interface {
	SinkNotifications(ctx context.Context, evtNotifications []*EventNotification) error
}

Jump to

Keyboard shortcuts

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