Documentation ¶
Index ¶
- func DispatchAlert(ctx context.Context, r utils.Reconciler, b *notifier.Body) error
- func FiredAlert(job metav1.Object) (string, bool)
- func FiredState(expr v1alpha1.ExprState, state lifecycle.ClassifierReader) (string, bool, error)
- func ResetAlert(obj metav1.Object)
- func SetAlert(job client.Object, slo v1alpha1.ExprMetrics) error
- func UnsetAlert(obj metav1.Object)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DispatchAlert ¶
DispatchAlert informs an object about the fired alert by updating the metadata of that object.
func FiredState ¶
FiredState enforces user-driven decisions as to when the test has passed or has fail. if it has failed, it updates the workflow status and returns true to indicate that the status has been modified.
func ResetAlert ¶ added in v1.0.20
ResetAlert removes the annotations from the target object. It does not remove the Alert from Grafana.
func UnsetAlert ¶
UnsetAlert removes the annotations from the target object, and removes the Alert from Grafana.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.