From d3fc33134c81901ae9582e3b66108639ab3a7e70 Mon Sep 17 00:00:00 2001 From: Ravi Pendurty Date: Mon, 9 Oct 2023 15:42:58 +0530 Subject: 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 --- .../stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'sdnr/wt') 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()); -- cgit 1.2.3-korg