)
type AlarmManager struct {
- amHost string
- amBaseUrl string
- amSchemes []string
- alertInterval int
- activeAlarms []alarm.AlarmMessage
- alarmHistory []alarm.AlarmMessage
- mutex sync.Mutex
- rmrReady bool
- postClear bool
+ 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
}
type AlertStatus string
var Version string
var Hash string
+
+type RicAlarmDefinitions struct {
+ AlarmDefinitions []*alarm.AlarmDefinition `json:"alarmdefinitions"`
+}