Documentation ¶
Overview ¶
Package alarm_manager
Package alarm_manager
Package alarm_manager
Package alarm_manager
Index ¶
Constants ¶
View Source
const ( TopN = 10 AlarmManager = "[Alarm Manager]" AlarmSizeLimit = 50 // 超过50开始删除 AlarmSizeTrim = 20 // 保留最近的20条 )
Variables ¶
This section is empty.
Functions ¶
func ClearAlarmLimit ¶ added in v1.1.2
func ClearAlarmLimit() error
ClearAlarmLimit 告警清除任务 满足条件 数量大于指定条数 则删除最旧的M条
Types ¶
type Alarm ¶
type Alarm struct { mgm.DefaultModel `bson:",inline"` Title string `json:"title" bson:"title"` Level string `json:"level" bson:"level"` Message string `json:"message" bson:"message"` }
func GetAlarmInfo ¶
func (*Alarm) CollectionName ¶
Click to show internal directories.
Click to hide internal directories.