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 Metric ¶
type Metric struct {
Labels Set[string] `json:"labels,omitempty"`
Usage *MetricUsage `json:"usage,omitempty"`
}
type MetricUsage ¶
type MetricUsage struct {
Dashboards Set[DashboardUsage] `json:"dashboards,omitempty"`
RecordingRules Set[RuleUsage] `json:"recordingRules,omitempty"`
AlertRules 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[string] `json:"matchingMetrics,omitempty"`
MatchingRegexp *common.Regexp `json:"matchingRegexp,omitempty"`
}
type Set ¶ added in v0.5.0
type Set[T comparable] map[T]struct{}
func MergeSet ¶ added in v0.5.0
func MergeSet[T comparable](old, new Set[T]) Set[T]
func NewSet ¶ added in v0.5.0
func NewSet[T comparable](vals ...T) Set[T]
func (Set[T]) MarshalJSON ¶ added in v0.5.0
func (Set[T]) TransformAsSlice ¶ added in v0.5.0
func (s Set[T]) TransformAsSlice() []T
func (*Set[T]) UnmarshalJSON ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.