Remove utils module
[ric-plt/alarm-go.git] / manager / cmd / types.go
index 7af8ec6..27376e9 100755 (executable)
@@ -31,8 +31,8 @@ type AlarmManager struct {
        amBaseUrl              string
        amSchemes              []string
        alertInterval          int
-       activeAlarms           []AlarmInformation
-       alarmHistory           []AlarmInformation
+       activeAlarms           []AlarmNotification
+       alarmHistory           []AlarmNotification
        uniqueAlarmId          int
        mutex                  sync.Mutex
        rmrReady               bool
@@ -42,9 +42,10 @@ type AlarmManager struct {
        alarmClient            *alarm.RICAlarm
        exceededActiveAlarmOn  bool
        exceededAlarmHistoryOn bool
+       alarmInfoPvFile        string
 }
 
-type AlarmInformation struct {
+type AlarmNotification struct {
        alarm.AlarmMessage
        alarm.AlarmDefinition
 }
@@ -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"`
+}