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