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 InfoFilter ¶
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 ¶
Click to show internal directories.
Click to hide internal directories.