alert

package
v1.65.1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SuccessSynced is used as part of the Event 'reason' when a Alert is synced
	SuccessSynced = "Synced"

	// MessageResourceSynced is the message used for an Event fired when a Alert
	// is synced successfully
	MessageResourceSynced = "Radix Alert synced successfully"
)

Variables

This section is empty.

Functions

func NewController

func NewController(ctx context.Context,
	kubeClient kubernetes.Interface,
	radixClient radixclient.Interface,
	handler common.Handler,
	kubeInformerFactory kubeinformers.SharedInformerFactory,
	radixInformerFactory informers.SharedInformerFactory,
	recorder record.EventRecorder) *common.Controller

NewController creates a new controller that handles RadixAlerts

Types

type Handler

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

Handler Instance variables

func NewHandler

func NewHandler(kubeclient kubernetes.Interface,
	kubeutil *kube.Kube,
	radixclient radixclient.Interface,
	prometheusperatorclient monitoring.Interface,
	options ...HandlerConfigOption) *Handler

NewHandler Constructor

func (*Handler) Sync

func (t *Handler) Sync(ctx context.Context, namespace, name string, eventRecorder record.EventRecorder) error

Sync Is created on sync of resource

type HandlerConfigOption

type HandlerConfigOption func(*Handler)

HandlerConfigOption defines a configuration function used for additional configuration of Handler

func WithAlertSyncerFactory

func WithAlertSyncerFactory(factory alert.AlertSyncerFactory) HandlerConfigOption

WithAlertSyncerFactory configures the alertSyncerFactory for the Handler

Jump to

Keyboard shortcuts

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