Documentation ¶
Index ¶
- func DoCreate(p Provider, ctx context.Context, req *alertingv1.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 *alertingv1.TriggerAlertsRequest) (*alertingv1.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 *alertingv1.AlertCondition, ) (*corev1.Reference, error)
func DoTrigger ¶ added in v0.6.0
func DoTrigger( p Provider, ctx context.Context, req *alertingv1.TriggerAlertsRequest, ) (*alertingv1.TriggerAlertsResponse, error)
Types ¶
type Provider ¶
type Provider interface { endpoint.AlertEndpointsClient condition.AlertConditionsClient log.AlertLogsClient trigger.AlertingClient }
Provider alerting interface to be injected into the gateway
Should at least encapsulate all alerting plugin implementations
Click to show internal directories.
Click to hide internal directories.