alert

package
v0.0.0-...-15e1e2d Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TemplateForPrometheusRuleResource

func TemplateForPrometheusRuleResource(url, percent string, namespacedName types.NamespacedName) monitoringv1.PrometheusRule

TemplateForPrometheusRuleResource returns a PrometheusRule

Types

type PrometheusRule

type PrometheusRule struct {
	Client   client.Client
	Ctx      context.Context
	Comparer util.ResourceComparerInterface
}

func NewPrometheusRule

func NewPrometheusRule(ctx context.Context, c client.Client) *PrometheusRule

func (*PrometheusRule) DeletePrometheusRuleDeployment

func (u *PrometheusRule) DeletePrometheusRuleDeployment(prometheusRuleRef v1alpha1.NamespacedName) error

func (*PrometheusRule) UpdatePrometheusRuleDeployment

func (u *PrometheusRule) UpdatePrometheusRuleDeployment(template monitoringv1.PrometheusRule) error

Creates or Updates PrometheusRule Deployment according to the template

Jump to

Keyboard shortcuts

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