X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=alarm%2Ftypes.go;h=dc77d437de6c2296b9500baa8f8e351005f012c3;hb=121e8b6026904eb245c6f8ac805efa7c3dad3ae5;hp=54a681b2ba16eaa14157387cf39e52c6408b4777;hpb=af0c57085f6f34c609d63facc4d224e2d733c538;p=ric-plt%2Falarm-go.git diff --git a/alarm/types.go b/alarm/types.go index 54a681b..dc77d43 100755 --- a/alarm/types.go +++ b/alarm/types.go @@ -69,10 +69,12 @@ type AlarmMessage struct { // RICAlarm is an alarm instance type RICAlarm struct { - moId string - appId string - rmrCtx unsafe.Pointer - mutex sync.Mutex + moId string + appId string + managerUrl string + rmrCtx unsafe.Pointer + rmrReady bool + mutex sync.Mutex } const ( @@ -96,28 +98,33 @@ type AlarmDefinition struct { } var RICAlarmDefinitions = map[int]AlarmDefinition{ - RIC_RT_DISTRIBUTION_FAILED: AlarmDefinition{ + RIC_RT_DISTRIBUTION_FAILED: { AlarmId: RIC_RT_DISTRIBUTION_FAILED, AlarmText: "RIC ROUTING TABLE DISTRIBUTION FAILED", EventType: "Processing error", OperationInstructions: "Not defined", }, - TCP_CONNECTIVITY_LOST_TO_DBAAS: AlarmDefinition{ + TCP_CONNECTIVITY_LOST_TO_DBAAS: { AlarmId: TCP_CONNECTIVITY_LOST_TO_DBAAS, AlarmText: "TCP CONNECTIVITY LOST TO DBAAS", EventType: "Communication error", OperationInstructions: "Not defined", }, - E2_CONNECTIVITY_LOST_TO_GNODEB: AlarmDefinition{ + E2_CONNECTIVITY_LOST_TO_GNODEB: { AlarmId: E2_CONNECTIVITY_LOST_TO_GNODEB, AlarmText: "E2 CONNECTIVITY LOST TO G-NODEB", EventType: "Communication error", OperationInstructions: "Not defined", }, - E2_CONNECTIVITY_LOST_TO_ENODEB: AlarmDefinition{ + E2_CONNECTIVITY_LOST_TO_ENODEB: { AlarmId: E2_CONNECTIVITY_LOST_TO_ENODEB, AlarmText: "E2 CONNECTIVITY LOST TO E-NODEB", EventType: "Communication error", OperationInstructions: "Not defined", }, } + +const ( + ALARM_MANAGER_HTTP_URL string = "http://service-ricplt-alarmmanager-http.ricplt:8080" + ALARM_MANAGER_RMR_URL string = "service-ricplt-alarmmanager-rmr.ricplt:4560" +)