X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=manager%2Fcmd%2Ftypes.go;h=7a0fd90eb7510bfdea3890f4d74db453bbad1c26;hb=105030feb8fabd8b4ddff552c53e905146b2ea5f;hp=c415fdabd77e8d545533db1d5fb58966116eeb0b;hpb=6f73fa33d550b6ff5ca2590757e98cec88254812;p=ric-plt%2Falarm-go.git diff --git a/manager/cmd/types.go b/manager/cmd/types.go index c415fda..7a0fd90 100755 --- a/manager/cmd/types.go +++ b/manager/cmd/types.go @@ -27,22 +27,28 @@ 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 } +type AlarmNotification struct { + alarm.AlarmMessage + alarm.AlarmDefinition +} + type AlertStatus string const (