alerts

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrometheusRuleSpec

func NewPrometheusRuleSpec() *monitoringv1.PrometheusRuleSpec

NewPrometheusRuleSpec creates PrometheusRuleSpec for alert rules

Types

type AlertRuleReconciler

type AlertRuleReconciler struct {
	// contains filtered or unexported fields
}

func NewAlertRuleReconciler

func NewAlertRuleReconciler(cl client.Client, ci hcoutil.ClusterInfo, ee hcoutil.EventEmitter, scheme *runtime.Scheme) *AlertRuleReconciler

NewAlertRuleReconciler creates new AlertRuleReconciler instance and returns a pointer to it.

func (*AlertRuleReconciler) Reconcile

func (r *AlertRuleReconciler) Reconcile(req *common.HcoRequest) error

Reconcile makes sure that the required PrometheusRule resource is present with the required fields

func (*AlertRuleReconciler) UpdateRelatedObjects

func (r *AlertRuleReconciler) UpdateRelatedObjects(req *common.HcoRequest) error

Jump to

Keyboard shortcuts

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