Versions in this module Expand all Collapse all v0 v0.0.2 Feb 5, 2024 v0.0.1 Jan 23, 2024 Changes in this version + const AlarmQueryDelay + const AlarmTypeCompare + const AlarmTypeHeartBeat + const AlarmTypeThreshold + const AlarmTypeTopN + const CompareTypeDifference + const CompareTypeRatio + const MaxCompareDays + const MaxDelayForUpdateRuleTime + const MaxTopNLimit + const UpdateCurvesInterval + const UpdateRuleInterval + type AlarmDataSource struct + Aggregation string + CompareDaysAgo int + CompareSeconds int + CompareType int + DownSample int64 + Limit int + Metric string + Sort string + Tags map[string]string + type AlarmRule struct + func (r *AlarmRule) GetAlarmRule() dbmodel.AlarmRule + func (r *AlarmRule) Parse() error + func (r *AlarmRule) Stop() + type AlarmTrigger struct + ErrorCount int + GreaterThan float64 + LessThan float64 + type BaseRule interface + GetAlarmRule func() dbmodel.AlarmRule + Parse func() error + Run func() + Start func() + Stop func() + type CompareRule struct + func (r *CompareRule) Parse() error + func (r *CompareRule) Run() + func (r *CompareRule) Start() + type HeartBeatRule struct + func (r *HeartBeatRule) Parse() error + func (r *HeartBeatRule) Run() + func (r *HeartBeatRule) Start() + type Manager struct + func NewManager() *Manager + func (m *Manager) Start() error + type ThresholdRule struct + func (r *ThresholdRule) Parse() error + func (r *ThresholdRule) Run() + func (r *ThresholdRule) Start() + type TopNRule struct + func (r *TopNRule) Parse() error + func (r *TopNRule) Run() + func (r *TopNRule) Start()