- policyMsg.setClosedLoopEventClient("DCAE_INSTANCE_ID.dcae-tca");
- policyMsg.setPolicyVersion("1.0.0.5");
- policyMsg.setPolicyName("vLoadBalancer");
- policyMsg.setPolicyScope(
- "resource=SampleResource,service=SampleService,type=SampleType,closedLoopControlName=SampleClosedLoop");
- policyMsg.setTargetType("VM");
- policyMsg.setClosedLoopAlarmStart(1484855);
- policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ONSET);
- policyMsg.setClosedLoopControlName(
- "CL-LB-LOW-TRAFFIC-SIG-d925ed73-8231-4d02-9545-db4e101f88f8");
- policyMsg.setVersion("1.0.2");
- policyMsg.setTarget("generic-vnf.vnf-id");
- policyMsg.setRequestID("8c1b8bd8-06f7-493f-8ed7-daaa4cc481bc");
- policyMsg.setFrom("DCAE");
+ if (vesAlarm.getAlarmIsCleared() == POLICY_MESSAGE_ABATED) {
+ policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ABATED);
+ } else {
+ policyMsg.setClosedLoopEventStatus(EVENT_STATUS.ONSET);
+ }
+ policyMsg.setClosedLoopControlName(loopControlNames.get(packageName));