Code Review
/
ric-plt
/
alarm-go.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Increasing UT for Alarm-go
[ric-plt/alarm-go.git]
/
manager
/
cmd
/
types.go
diff --git
a/manager/cmd/types.go
b/manager/cmd/types.go
index
c415fda
..
27376e9
100755
(executable)
--- a/
manager/cmd/types.go
+++ b/
manager/cmd/types.go
@@
-27,20
+27,27
@@
import (
)
type AlarmManager struct {
)
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
exceededAlarmHistoryOn bool
+ alarmInfoPvFile string
+}
+
+type AlarmNotification struct {
+ alarm.AlarmMessage
+ alarm.AlarmDefinition
}
type AlertStatus string
}
type AlertStatus string
@@
-60,3
+67,9
@@
type RicAlarmDefinitions struct {
type RicPerfAlarmObjects struct {
AlarmObjects []*alarm.Alarm `json:"alarmobjects"`
}
type RicPerfAlarmObjects struct {
AlarmObjects []*alarm.Alarm `json:"alarmobjects"`
}
+
+type AlarmPersistentInfo struct {
+ UniqueAlarmId int `json:"uiniquealarmid"`
+ ActiveAlarms []AlarmNotification `json:"activealarms"`
+ AlarmHistory []AlarmNotification `json:"alarmhistory"`
+}