)
type AlarmManager struct {
- amHost string
- amBaseUrl string
- amSchemes []string
- alertInterval int
- activeAlarms []alarm.AlarmMessage
- alarmHistory []alarm.AlarmMessage
- mutex sync.Mutex
- rmrReady bool
- postClear bool
- maxActiveAlarms int
- maxAlarmHistory int
- alarmClient *alarm.RICAlarm
- exceededActiveAlarmOn bool
+ amHost string
+ amBaseUrl string
+ amSchemes []string
+ alertInterval int
+ activeAlarms []AlarmNotification
+ alarmHistory []AlarmNotification
+ uniqueAlarmId int
+ mutex sync.Mutex
+ rmrReady bool
+ postClear bool
+ maxActiveAlarms int
+ maxAlarmHistory int
+ alarmClient *alarm.RICAlarm
+ exceededActiveAlarmOn bool
exceededAlarmHistoryOn bool
+ alarmInfoPvFile string
+}
+
+type AlarmNotification struct {
+ alarm.AlarmMessage
+ alarm.AlarmDefinition
}
type AlertStatus string
type RicPerfAlarmObjects struct {
AlarmObjects []*alarm.Alarm `json:"alarmobjects"`
}
+
+type AlarmPersistentInfo struct {
+ UniqueAlarmId int `json:"uiniquealarmid"`
+ ActiveAlarms []AlarmNotification `json:"activealarms"`
+ AlarmHistory []AlarmNotification `json:"alarmhistory"`
+}