alarm

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DealTypeHuman  = 1 //人工处理
	DealTypeSystem = 2 //系统处理
)
View Source
const (
	DealStateNone     = 1 //无告警
	DealStateAlarming = 2 //告警中
	DealStateAlarmed  = 3 //已处理
)

告警记录状态

View Source
const (
	LevelInfo     = 1 //提醒
	LevelNormal   = 1 //一般
	LevelBad      = 1 //严重
	LevelUrgent   = 1 //紧急
	LevelSpUrgent = 1 //超级紧急
)

告警配置级别

Variables

This section is empty.

Functions

This section is empty.

Types

type DealRecordFilter

type DealRecordFilter struct {
	AlarmRecordID int64 //告警配置ID
	Time          def.TimeRange
}

type InfoFilter

type InfoFilter struct {
	Name     string //名字
	SceneID  int64  // 场景ID
	AlarmIDs []int64
}

type LogFilter

type LogFilter struct {
	AlarmRecordID int64 //告警配置ID
	Time          def.TimeRange
}

type RecordFilter

type RecordFilter struct {
	AlarmID     int64 // 告警配置ID
	TriggerType int64
	ProductID   string
	DeviceName  string
	Time        def.TimeRange
}

type SceneFilter

type SceneFilter struct {
	AlarmID int64 // 告警配置ID
	SceneID int64 // 场景ID
}

Jump to

Keyboard shortcuts

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