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
IsBaselineDetectType 判断 detectType 是否为 Baseline 子类型
Types ¶
type SupportDetectOption ¶
Click to show internal directories.
Click to hide internal directories.