Documentation ¶
Index ¶
- func DoCreate(p Provider, ctx context.Context, req *alertingv1alpha.AlertCondition) (*corev1.Reference, error)
- func DoDelete(p Provider, ctx context.Context, req *corev1.Reference) (*emptypb.Empty, error)
- func DoTrigger(p Provider, ctx context.Context, req *alertingv1alpha.TriggerAlertsRequest) (*alertingv1alpha.TriggerAlertsResponse, error)
- func IsNil(p *Provider) bool
- type Provider
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoCreate ¶ added in v0.6.0
func DoCreate( p Provider, ctx context.Context, req *alertingv1alpha.AlertCondition, ) (*corev1.Reference, error)
func DoTrigger ¶ added in v0.6.0
func DoTrigger( p Provider, ctx context.Context, req *alertingv1alpha.TriggerAlertsRequest, ) (*alertingv1alpha.TriggerAlertsResponse, error)
Types ¶
type Provider ¶
type Provider interface { alertingv1alpha.AlertingClient }
Provider alerting interface to be injected into the gateway
Should at least encapsulate all alerting plugin implementations
Directories ¶
Path | Synopsis |
---|---|
Building promethues / cortex alerting rules
|
Building promethues / cortex alerting rules |
Module implements a noop alerting model, in case the alerting plugin is not loaded
|
Module implements a noop alerting model, in case the alerting plugin is not loaded |
Shared definitions (constants & errors) for opni alerting
|
Shared definitions (constants & errors) for opni alerting |
Click to show internal directories.
Click to hide internal directories.