constant

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseCasePanel = "Panel"
	UseCaseAlert = "Alert"
)

用例类型

View Source
const (
	DetectTypeOutlier     = "outlier"
	DetectTypeForecast    = "forecast"
	DetectTypeChangePoint = "changepoint"
)

检测类型

View Source
const (
	SupportDetectTypeBaseline = "baseline"
	SupportDetectTypeML       = "machine_learning"
)

支持的检测类型

View Source
const (
	GF_FRAME_RESULT_NAME_ANOMALY     = "Anomaly"
	GF_FRAME_RESULT_NAME_BASELINE    = "Baseline"
	GF_FRAME_RESULT_NAME_TIME        = "Time"
	GF_FRAME_RESULT_NAME_LOWER_BOUND = "lower_bound"
	GF_FRAME_RESULT_NAME_UPPER_BOUND = "upper_bound"
	GF_FRAME_RESULT_NAME_FORECAST    = "Pred"
)
View Source
const (
	DefaultRsodPeriods   = ""
	DefaultRsodModelName = "rsod_model"
	DefaultRsodDBPath    = "rsod_sqlite.db"
)

RSOD 算法默认值

View Source
const (
	DefaultTimeRangeFrom = 300
	DefaultTimeRangeTo   = 0
)

默认时间范围(秒)

View Source
const (
	BaselineDetectTypeDynamics = "dynamics"
)

基线检测类型

View Source
const (
	PluginDatasourceType = "ibumblebee-alert4ml-datasource"
)

Variables

View Source
var SUPPORT_DETECT_OPTIONS = []SupportDetectOption{
	{
		CommKV: CommKV{
			Label: SupportDetectTypeBaseline,
			Value: SupportDetectTypeBaseline,
		},
		DetectTypes: []CommKV{
			{Label: BaselineDetectTypeDynamics, Value: BaselineDetectTypeDynamics},
		},
	},
	{
		CommKV: CommKV{
			Label: SupportDetectTypeML,
			Value: SupportDetectTypeML,
		},
		DetectTypes: []CommKV{
			{Label: DetectTypeOutlier, Value: DetectTypeOutlier},
			{Label: DetectTypeChangePoint, Value: DetectTypeChangePoint},
			{Label: DetectTypeForecast, Value: DetectTypeForecast},
		},
	},
}

Functions

func IsBaselineDetectType added in v0.2.4

func IsBaselineDetectType(detectType string) bool

IsBaselineDetectType 判断 detectType 是否为 Baseline 子类型

Types

type CommKV

type CommKV struct {
	Label string
	Value string
}

type SupportDetectOption

type SupportDetectOption struct {
	CommKV
	DetectTypes []CommKV
}

Jump to

Keyboard shortcuts

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