datadog

package
v0.0.0-...-5a438e0 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 16 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 {
	ID                 string                 `jsonapi:"primary,http_notifier_events"`
	NotificationTitle  string                 `jsonapi:"attr,notification_title"`
	NotificationType   types.NotificationType `jsonapi:"attr,notification_type"`
	EventMessage       string                 `jsonapi:"attr,event_message"`
	InvolvedObjectKind string                 `jsonapi:"attr,involved_object_kind"`
	DisruptionName     string                 `jsonapi:"attr,disruption_name"`
	Disruption         string                 `jsonapi:"attr,disruption"`
	Timestamp          int64                  `jsonapi:"attr,timestamp"`
	Cluster            string                 `jsonapi:"attr,cluster"`
	Namespace          string                 `jsonapi:"attr,namespace"`
	TargetsCount       int                    `jsonapi:"attr,targets_count"`
	Username           string                 `jsonapi:"attr,username,omitempty"`
	UserEmail          string                 `jsonapi:"attr,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

Notify 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