expressions

package
v1.0.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 25, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DispatchAlert

func DispatchAlert(ctx context.Context, r utils.Reconciler, b *notifier.Body) error

DispatchAlert informs an object about the fired alert by updating the metadata of that object.

func FiredAlert

func FiredAlert(job metav1.Object) (string, bool)

func FiredState

func FiredState(expr v1alpha1.ExprState, state lifecycle.ClassifierReader) (string, bool, error)

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

func ResetAlert(obj metav1.Object)

ResetAlert removes the annotations from the target object. It does not remove the Alert from Grafana.

func SetAlert

func SetAlert(job client.Object, slo v1alpha1.ExprMetrics) error

func UnsetAlert

func UnsetAlert(obj metav1.Object)

UnsetAlert removes the annotations from the target object, and removes the Alert from Grafana.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL