alertingmock

package
v1.11.0-community Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetQuery

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

func GetRules

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

func GetSilences

func GetSilences() 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

type RecordingRule

type RecordingRule struct {
	Name   string         `json:"name"`
	Query  string         `json:"query"`
	Labels model.LabelSet `json:"labels"`
}

Jump to

Keyboard shortcuts

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