Fix bugs and formatting issues
[dcaegen2/services/son-handler.git] / src / main / java / org / onap / dcaegen2 / services / sonhms / model / PolicyNotification.java
index 35480cf..e432b0c 100644 (file)
@@ -62,7 +62,7 @@ public class PolicyNotification {
      * Constructor.
      *
      */
-    public PolicyNotification(String closedLoopControlName, String requestId, Long alarmStartTime, String pnfName) {
+    public PolicyNotification(String closedLoopControlName, String requestId, Long alarmStartTime, String pnfName, String action) {
         this.closedLoopControlName = closedLoopControlName;
         this.requestId = requestId;
         this.closedLoopEventClient = "microservice.PCI";
@@ -70,7 +70,7 @@ public class PolicyNotification {
         this.closedLoopAlarmStart = alarmStartTime;
         this.from = "PCIMS";
         this.version = "1.0.2";
-        this.action = "ModifyConfig";
+        this.action = action;
         this.target = "generic-vnf.vnf-id";
         this.targetType = "VNF";
         this.aai = new HashMap<>();