alarm

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: AGPL-3.0 Imports: 2 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 Notify added in v1.0.4

type Notify struct {
	TriggerType    scene.TriggerType       `json:"triggerType,omitempty"`    //触发类型(设备触发1,其他2)
	TriggerSubType scene.TriggerDeviceType `json:"triggerSubType,omitempty"` //触发子类型
	TriggerDetail  string                  `json:"triggerDetail,omitempty"`  //触发详情,json字符串
	ProductID      string                  `json:"productID,omitempty"`      //触发产品id
	DeviceName     string                  `json:"deviceName,omitempty"`     //触发设备名称
	SceneID        int64                   `json:"sceneID,omitempty"`        //场景ID
	Mode           scene.ActionAlarmMode   `json:"mode,omitempty"`           //告警模式  trigger: 触发告警  relieve: 解除告警
}

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