threshold

package
v0.5.38 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScopeMetricThreshold = "metric-threshold"
)

Variables

View Source
var Min = 0.4

Functions

func ExpandThresholds

func ExpandThresholds(thresholds map[string]float64, expandFactor float64) map[string]float64

func GetMetricThreshold

func GetMetricThreshold(thresholdName string, metaServer *metaserver.MetaServer,
	globalThresholds map[string]map[bool]map[string]float64,
) *float64

GetMetricThreshold get threshold from npd and config

func GetMetricThresholds

func GetMetricThresholds(thresholdNames []string, metaServer *metaserver.MetaServer,
	globalThresholds map[string]map[bool]map[string]float64,
) map[string]float64

GetMetricThresholds get valid thresholds from npd and config

func GetMetricThresholdsAll

func GetMetricThresholdsAll(metaServer *metaserver.MetaServer,
	globalThresholds map[string]map[bool]map[string]float64,
) map[string]float64

GetMetricThresholdsAll get all valid thresholds from npd and config

Types

This section is empty.

Jump to

Keyboard shortcuts

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