summaryrefslogtreecommitdiffstats
path: root/dmaap-dsa/src
diff options
context:
space:
mode:
authorShiwei Tian <tian.shiwei@zte.com.cn>2017-09-28 15:31:13 +0800
committerShiwei Tian <tian.shiwei@zte.com.cn>2017-09-28 19:13:52 +0800
commitff04bead50983345cb1c1b5fd497bb3ed47090c7 (patch)
treeebaf370725916d02d7f5117987c2002eecab4151 /dmaap-dsa/src
parent2f430332203a347ca764e2e7c345efdabefde797 (diff)
add cleared type in vesAlarm
Issue-ID: HOLMES-29 Change-Id: I46bb9f7acea7e5a51ab6c901d6cfa724732c6031 Signed-off-by: Shiwei Tian <tian.shiwei@zte.com.cn>
Diffstat (limited to 'dmaap-dsa/src')
-rw-r--r--dmaap-dsa/src/main/java/org/onap/holmes/dsa/dmaappolling/DMaaPResponseUtil.java1
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"));