enabled persistence storage for active alarms and alarm history
[ric-plt/alarm-go.git] / manager / cmd / types.go
index 7a0fd90..27376e9 100755 (executable)
@@ -42,6 +42,7 @@ type AlarmManager struct {
        alarmClient            *alarm.RICAlarm
        exceededActiveAlarmOn  bool
        exceededAlarmHistoryOn bool
+       alarmInfoPvFile        string
 }
 
 type AlarmNotification struct {
@@ -66,3 +67,9 @@ type RicAlarmDefinitions struct {
 type RicPerfAlarmObjects struct {
        AlarmObjects []*alarm.Alarm `json:"alarmobjects"`
 }
+
+type AlarmPersistentInfo struct {
+       UniqueAlarmId int                 `json:"uiniquealarmid"`
+       ActiveAlarms  []AlarmNotification `json:"activealarms"`
+       AlarmHistory  []AlarmNotification `json:"alarmhistory"`
+}