Documentation ¶
Index ¶
- type NotificationServerComponent
- func (n *NotificationServerComponent) Healthy() bool
- func (n *NotificationServerComponent) Initialize(conf NotificationServerConfiguration)
- func (n *NotificationServerComponent) ListAlarmMessages(ctx context.Context, req *alertingv1.ListAlarmMessageRequest) (*alertingv1.ListMessageResponse, error)
- func (n *NotificationServerComponent) ListNotifications(ctx context.Context, req *alertingv1.ListNotificationRequest) (*alertingv1.ListMessageResponse, error)
- func (n *NotificationServerComponent) ListRoutingRelationships(ctx context.Context, _ *emptypb.Empty) (*alertingv1.ListRoutingRelationshipsResponse, error)
- func (n *NotificationServerComponent) Name() string
- func (n *NotificationServerComponent) PushNotification(ctx context.Context, req *alertingv1.Notification) (*emptypb.Empty, error)
- func (n *NotificationServerComponent) Ready() bool
- func (n *NotificationServerComponent) ResolveAlerts(ctx context.Context, req *alertingv1.ResolveAlertsRequest) (*alertingv1.ResolveAlertsResponse, error)
- func (n *NotificationServerComponent) SetConfig(conf server.Config)
- func (n *NotificationServerComponent) Status() server.Status
- func (n *NotificationServerComponent) Sync(_ context.Context, _ alertingSync.SyncInfo) error
- func (n *NotificationServerComponent) TestAlertEndpoint(ctx context.Context, ref *corev1.Reference) (*emptypb.Empty, error)
- func (n *NotificationServerComponent) TriggerAlerts(ctx context.Context, req *alertingv1.TriggerAlertsRequest) (*alertingv1.TriggerAlertsResponse, error)
- type NotificationServerConfiguration
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NotificationServerComponent ¶
type NotificationServerComponent struct { alertingv1.UnsafeAlertNotificationsServer util.Initializer server.Config // contains filtered or unexported fields }
func NewNotificationServerComponent ¶
func NewNotificationServerComponent( logger *slog.Logger, ) *NotificationServerComponent
func (*NotificationServerComponent) Healthy ¶ added in v0.11.0
func (n *NotificationServerComponent) Healthy() bool
func (*NotificationServerComponent) Initialize ¶
func (n *NotificationServerComponent) Initialize(conf NotificationServerConfiguration)
func (*NotificationServerComponent) ListAlarmMessages ¶
func (n *NotificationServerComponent) ListAlarmMessages(ctx context.Context, req *alertingv1.ListAlarmMessageRequest) (*alertingv1.ListMessageResponse, error)
func (*NotificationServerComponent) ListNotifications ¶
func (n *NotificationServerComponent) ListNotifications(ctx context.Context, req *alertingv1.ListNotificationRequest) (*alertingv1.ListMessageResponse, error)
func (*NotificationServerComponent) ListRoutingRelationships ¶
func (n *NotificationServerComponent) ListRoutingRelationships(ctx context.Context, _ *emptypb.Empty) (*alertingv1.ListRoutingRelationshipsResponse, error)
func (*NotificationServerComponent) Name ¶ added in v0.11.0
func (n *NotificationServerComponent) Name() string
func (*NotificationServerComponent) PushNotification ¶
func (n *NotificationServerComponent) PushNotification(ctx context.Context, req *alertingv1.Notification) (*emptypb.Empty, error)
func (*NotificationServerComponent) Ready ¶ added in v0.11.0
func (n *NotificationServerComponent) Ready() bool
func (*NotificationServerComponent) ResolveAlerts ¶
func (n *NotificationServerComponent) ResolveAlerts(ctx context.Context, req *alertingv1.ResolveAlertsRequest) (*alertingv1.ResolveAlertsResponse, error)
func (*NotificationServerComponent) SetConfig ¶
func (n *NotificationServerComponent) SetConfig(conf server.Config)
func (*NotificationServerComponent) Status ¶
func (n *NotificationServerComponent) Status() server.Status
func (*NotificationServerComponent) Sync ¶
func (n *NotificationServerComponent) Sync(_ context.Context, _ alertingSync.SyncInfo) error
func (*NotificationServerComponent) TestAlertEndpoint ¶ added in v0.11.2
func (*NotificationServerComponent) TriggerAlerts ¶
func (n *NotificationServerComponent) TriggerAlerts(ctx context.Context, req *alertingv1.TriggerAlertsRequest) (*alertingv1.TriggerAlertsResponse, error)
type NotificationServerConfiguration ¶
type NotificationServerConfiguration struct { spec.ConditionStorage spec.EndpointStorage }
Click to show internal directories.
Click to hide internal directories.