X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=alarm%2Ftypes.go;h=14a179c5a35b6dae720e5d5fab813396b5ba9517;hb=3649fae7a06ad3ad099d0aa4e68f7ca3a2ae5a87;hp=ea6651ff5be2725e5b03b96088bd75a9bb1e7528;hpb=478720e4a200ea2d635800813abf0b14290f8f32;p=ric-plt%2Falarm-go.git diff --git a/alarm/types.go b/alarm/types.go index ea6651f..14a179c 100755 --- a/alarm/types.go +++ b/alarm/types.go @@ -68,8 +68,8 @@ type AlarmMessage struct { } type AlarmConfigParams struct { - MaxActiveAlarms int `json:"maxactivealarms"` - MaxAlarmHistory int `json:"maxalarmhistory"` + MaxActiveAlarms int `json:"maxactivealarms"` + MaxAlarmHistory int `json:"maxalarmhistory"` } // RICAlarm is an alarm instance @@ -89,22 +89,26 @@ const ( // Temp alarm constants & definitions const ( - RIC_RT_DISTRIBUTION_FAILED int = 8004 - TCP_CONNECTIVITY_LOST_TO_DBAAS int = 8005 - E2_CONNECTIVITY_LOST_TO_GNODEB int = 8006 - E2_CONNECTIVITY_LOST_TO_ENODEB int = 8007 - ACTIVE_ALARM_EXCEED_MAX_THRESHOLD int = 8008 + RIC_RT_DISTRIBUTION_FAILED int = 8004 + TCP_CONNECTIVITY_LOST_TO_DBAAS int = 8005 + E2_CONNECTIVITY_LOST_TO_GNODEB int = 8006 + E2_CONNECTIVITY_LOST_TO_ENODEB int = 8007 + ACTIVE_ALARM_EXCEED_MAX_THRESHOLD int = 8008 ALARM_HISTORY_EXCEED_MAX_THRESHOLD int = 8009 ) type AlarmDefinition struct { - AlarmId int `json:"alarmid"` - AlarmText string `json:"alarmtext"` - EventType string `json:"eventtype"` - OperationInstructions string `json:"operationinstructions"` + AlarmId int `json:"alarmId"` + AlarmText string `json:"alarmText"` + EventType string `json:"eventType"` + OperationInstructions string `json:"operationInstructions"` + RaiseDelay int `json:"raiseDelay"` + ClearDelay int `json:"clearDelay"` + TimeToLive int `json:"timeToLive"` } var RICAlarmDefinitions map[int]*AlarmDefinition +var RICPerfAlarmObjects map[int]*Alarm const ( ALARM_MANAGER_HTTP_URL string = "http://service-ricplt-alarmmanager-http.ricplt:8080"