v1

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardUsage added in v0.6.0

type DashboardUsage struct {
	ID   string `json:"uid"`
	Name string `json:"title"`
	URL  string `json:"url"`
}

type LogError added in v0.4.0

type LogError struct {
	Message string
	Warning error
	Error   error
}

func (*LogError) Log added in v0.4.0

func (l *LogError) Log(logger *logrus.Entry)

type Metric

type Metric struct {
	Labels set.Set[string] `json:"labels,omitempty"`
	Usage  *MetricUsage    `json:"usage,omitempty"`
}

type MetricUsage

type MetricUsage struct {
	Dashboards     set.Set[DashboardUsage] `json:"dashboards,omitempty"`
	RecordingRules set.Set[RuleUsage]      `json:"recordingRules,omitempty"`
	AlertRules     set.Set[RuleUsage]      `json:"alertRules,omitempty"`
}

func MergeUsage added in v0.5.0

func MergeUsage(old, new *MetricUsage) *MetricUsage

type PartialMetric added in v0.5.0

type PartialMetric struct {
	Usage           *MetricUsage    `json:"usage,omitempty"`
	MatchingMetrics set.Set[string] `json:"matchingMetrics,omitempty"`
	MatchingRegexp  *common.Regexp  `json:"matchingRegexp,omitempty"`
}

type RuleUsage

type RuleUsage struct {
	PromLink   string `json:"prom_link"`
	GroupName  string `json:"group_name"`
	Name       string `json:"name"`
	Expression string `json:"expression"`
}

Jump to

Keyboard shortcuts

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