aboutsummaryrefslogtreecommitdiffstats
path: root/sdnr/wt
diff options
context:
space:
mode:
authorRavi Pendurty <ravi.pendurty@highstreet-technologies.com>2023-10-09 15:42:58 +0530
committerRavi Pendurty <ravi.pendurty@highstreet-technologies.com>2023-10-09 15:43:15 +0530
commitd3fc33134c81901ae9582e3b66108639ab3a7e70 (patch)
tree882fbe577e8f9a13ec6ee5876b58dcb18d4ef11b /sdnr/wt
parent3ca93f9ff6f6a3b7319ef1733476b2cad083fc1c (diff)
Update 3GPP alarm mapping
Cleared alarms severity should be set to NonAlarmed New Alarms and cleared alarms Alarm Type should be mapped to probableCause Issue-ID: CCSDK-3939 Change-Id: I59aa7cc97d7be430e18998a87378aa029afcf61f Signed-off-by: Ravi Pendurty <ravi.pendurty@highstreet-technologies.com>
Diffstat (limited to 'sdnr/wt')
-rw-r--r--sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java
index 648809722..625537c90 100644
--- a/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java
+++ b/sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java
@@ -92,9 +92,8 @@ public class StrimziKafkaStndDefinedFaultVESMsgConsumer extends StrimziKafkaVESM
.atZone(ZoneId.of("Z")).toString();
int faultSequence = rootNode.at("/event/commonEventHeader/sequence").intValue();
String faultObjectId = rootNode.at("/event/stndDefinedFields/data/alarmId").textValue();
- String faultReason = rootNode.at("/event/stndDefinedFields/data/specificProblem").textValue();
- String faultSeverity =
- getSDNRSeverityType(rootNode.at("/event/stndDefinedFields/data/perceivedSeverity").textValue());
+ String faultReason = rootNode.at("/event/stndDefinedFields/data/probableCause").textValue();
+ String faultSeverity = SeverityType.NonAlarmed.toString();
payloadMapMessage = FaultNotificationClient.createFaultNotificationPayloadMap(faultNodeId,
Integer.toString(faultSequence), faultOccurrenceTime, faultObjectId, faultReason, faultSeverity);
@@ -107,7 +106,7 @@ public class StrimziKafkaStndDefinedFaultVESMsgConsumer extends StrimziKafkaVESM
.atZone(ZoneId.of("Z")).toString();
int faultSequence = rootNode.at("/event/commonEventHeader/sequence").intValue();
String faultObjectId = rootNode.at("/event/stndDefinedFields/data/alarmId").textValue();
- String faultReason = rootNode.at("/event/stndDefinedFields/data/specificProblem").textValue();
+ String faultReason = rootNode.at("/event/stndDefinedFields/data/probableCause").textValue();
String faultSeverity =
getSDNRSeverityType(rootNode.at("/event/stndDefinedFields/data/perceivedSeverity").textValue());