diff options
Diffstat (limited to 'dmaap-dsa/src/main/java/org/onap')
-rw-r--r-- | dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java index 72b76c1..a445402 100644 --- a/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java +++ b/dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java @@ -47,6 +47,7 @@ public class DMaaPResponseUtil { vesAlarm.setDomain(commonEventHeaderJson.get("domain").asText()); vesAlarm.setEventId(commonEventHeaderJson.get("eventId").asText()); vesAlarm.setEventName(commonEventHeaderJson.get("eventName").asText()); + vesAlarm.setAlarmIsCleared(vesAlarm.getEventName().endsWith("Cleared") ? 1 : 0); vesAlarm.setEventType(getTextElementByNode(commonEventHeaderJson, "eventType")); vesAlarm.setInternalHeaderFields( getTextElementByNode(commonEventHeaderJson, "internalHeaderFields")); |