X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=holmes-actions%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Fholmes%2Fcommon%2Fdmaap%2FDmaapService.java;h=2b03a8ad1592c45e8c55bcb1d5f322d7eaffdb27;hb=19fb19986d56a5206efabcf20580008219c6bbbf;hp=79c861b5fc8e0215e7b3e8fa14560ff1ac29f203;hpb=43e1dfbcdb2a84d5e69a8b038f76fa626718e5d7;p=holmes%2Fcommon.git diff --git a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/DmaapService.java b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/DmaapService.java index 79c861b..2b03a8a 100644 --- a/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/DmaapService.java +++ b/holmes-actions/src/main/java/org/onap/holmes/common/dmaap/DmaapService.java @@ -105,7 +105,11 @@ public class DmaapService { "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop"); policyMsg.setTargetType("VM"); policyMsg.setClosedLoopAlarmStart(1484855); - policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ONSET); + if (vesAlarm.getAlarmIsCleared() == 1) { + policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ABATED); + } else { + policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ONSET); + } policyMsg.setClosedLoopControlName( "CL-LB-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8"); policyMsg.setVersion("1.0.2");