alertingmock

package
v1.10.0-community Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRules

func GetRules() func(w http.ResponseWriter, r *http.Request)

Types

type Alert

type Alert struct {
	Annotations model.LabelSet `json:"annotations"`
	Labels      model.LabelSet `json:"labels"`
	State       string         `json:"state"`
	Value       string         `json:"value"`
}

type AlertingRule

type AlertingRule struct {
	Name        string         `json:"name"`
	Labels      model.LabelSet `json:"labels"`
	Annotations model.LabelSet `json:"annotations"`
	Alerts      []*Alert       `json:"alerts"`
	State       string         `json:"state"`
}

We duplicate prom model due to missing json information

Jump to

Keyboard shortcuts

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