Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromAPIRules ¶ added in v0.0.1
func FromAPIRules(groups []monitoringv1alpha1.RuleGroup) (result rulefmt.RuleGroups, err error)
FromAPIRules constructs rule groups from a list of rule groups in the resource API format.
func Scope ¶ added in v0.0.1
func Scope(groups *rulefmt.RuleGroups, lset map[string]string) error
Scope all rules in the given groups to the given labels. All metric selectors check for equality on the labels and all rule results are annotated with them again. This ensures that the scope is preserved in output data, even if the given label keys are aggregated away. An error is returned if metric selectors have a conflicting selector set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.