datadog

package
v0.0.0-...-e050086 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPNotifierEvent

type HTTPNotifierEvent struct {
	NotificationTitle  string                 `json:"notification-title"`
	NotificationType   types.NotificationType `json:"notification-type"`
	EventMessage       string                 `json:"event-message"`
	InvolvedObjectKind string                 `json:"involved-object-kind"`
	DisruptionName     string                 `json:"disruption-name"`
	Cluster            string                 `json:"cluster"`
	Namespace          string                 `json:"namespace"`
	TargetsCount       int                    `json:"targets-count"`
	Username           string                 `json:"username,omitempty"`
	UserEmail          string                 `json:"user-email,omitempty"`
}

type Notifier

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

Notifier describes a HTTP notifier

func New

func New(commonConfig types.NotifiersCommonConfig, httpConfig NotifierHTTPConfig, logger *zap.SugaredLogger) (*Notifier, error)

New HTTP Notifier

func (*Notifier) GetNotifierName

func (n *Notifier) GetNotifierName() string

GetNotifierName returns the driver's name

func (*Notifier) Notify

func (n *Notifier) Notify(dis v1beta1.Disruption, event corev1.Event, notifType types.NotificationType) error

NotifyWarning generates a notification for generic k8s Warning events

type NotifierHTTPConfig

type NotifierHTTPConfig struct {
	Enabled         bool
	URL             string
	Headers         []string
	HeadersFilepath string
}

Jump to

Keyboard shortcuts

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