diff options
Diffstat (limited to 'sdnr/wt/mountpoint-registrar/provider')
-rw-r--r-- | sdnr/wt/mountpoint-registrar/provider/src/main/java/org/onap/ccsdk/features/sdnr/wt/mountpointregistrar/vesdomain/stnddefined/StrimziKafkaStndDefinedFaultVESMsgConsumer.java | 7 |
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()); |