Documentation ¶
Index ¶
- type AlertSinker
- type Event
- func (evt *Event) EvalByRule(rule *eventsv1alpha1.EventRule) (ok bool, err error)
- func (evt *Event) EvalToAlert(evtRules []*eventsv1alpha1.Rule) (*EventAlert, error)
- func (evt *Event) EvalToNotification(evtRules []*eventsv1alpha1.Rule) (*EventNotification, error)
- func (evt *Event) Flat() map[string]interface{}
- type EventAlert
- type EventNotification
- type EventSource
- type NotificationSinker
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)
type EventAlert ¶
type EventNotification ¶
type EventSource ¶
type EventSource interface {
Events() <-chan *Event
}
type NotificationSinker ¶
type NotificationSinker interface {
SinkNotifications(ctx context.Context, evtNotifications []*EventNotification) error
}
Click to show internal directories.
Click to hide internal directories.