Documentation
¶
Index ¶
- Constants
- Variables
- func ExpandThresholds(thresholds map[string]float64, expandFactor float64) map[string]float64
- func GetMetricThreshold(thresholdName string, metaServer *metaserver.MetaServer, ...) *float64
- func GetMetricThresholds(thresholdNames []string, metaServer *metaserver.MetaServer, ...) map[string]float64
- func GetMetricThresholdsAll(metaServer *metaserver.MetaServer, ...) map[string]float64
Constants ¶
View Source
const (
ScopeMetricThreshold = "metric-threshold"
)
Variables ¶
View Source
var Min = 0.4
Functions ¶
func ExpandThresholds ¶
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.
Click to show internal directories.
Click to hide internal directories.