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 ¶
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
Click to show internal directories.
Click to hide internal directories.