X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=manager%2Fcmd%2Ftypes.go;h=27376e9a359b71b46b5326e3113adb95416be559;hb=bd09e69f279ab1566cd92a8d6d7b5ab58418b18f;hp=c415fdabd77e8d545533db1d5fb58966116eeb0b;hpb=6f73fa33d550b6ff5ca2590757e98cec88254812;p=ric-plt%2Falarm-go.git diff --git a/manager/cmd/types.go b/manager/cmd/types.go index c415fda..27376e9 100755 --- a/manager/cmd/types.go +++ b/manager/cmd/types.go @@ -27,20 +27,27 @@ import ( ) 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 @@ -60,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"` +}