summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2018-03-20 12:37:43 +0000
committerGerrit Code Review <gerrit@onap.org>2018-03-20 12:37:43 +0000
commit512a8f5b4dc9afaf382dd76531dcbc0667551c58 (patch)
tree5a9a72d71dbce7808ea5d5e7206d321a2217407c
parentfaadf0df29e65619dc9b70cfce07a2c099000e79 (diff)
parent6718f2da899b21b4adc7d004a4e592039645d75a (diff)
Merge "Fix Serialized Names of A&AI Subtag"
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java3
-rw-r--r--controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java3
2 files changed, 6 insertions, 0 deletions
diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java
index c512b6796..b5ce27112 100644
--- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java
+++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopEvent.java
@@ -24,6 +24,8 @@ import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
+import com.google.gson.annotations.SerializedName;
+
public class VirtualControlLoopEvent extends ControlLoopEvent {
/**
@@ -32,6 +34,7 @@ public class VirtualControlLoopEvent extends ControlLoopEvent {
private static final long serialVersionUID = -5752405682246066226L;
private Instant closedLoopAlarmStart;
private Instant closedLoopAlarmEnd;
+ @SerializedName("AAI")
private Map<String, String> aai = new HashMap<>();
public VirtualControlLoopEvent() {
diff --git a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java
index c99e3a1b0..72d88df92 100644
--- a/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java
+++ b/controlloop/common/model-impl/events/src/main/java/org/onap/policy/controlloop/VirtualControlLoopNotification.java
@@ -24,6 +24,8 @@ import java.time.Instant;
import java.util.HashMap;
import java.util.Map;
+import com.google.gson.annotations.SerializedName;
+
public class VirtualControlLoopNotification extends ControlLoopNotification {
/**
@@ -31,6 +33,7 @@ public class VirtualControlLoopNotification extends ControlLoopNotification {
*/
private static final long serialVersionUID = 5354756047932144017L;
+ @SerializedName("AAI")
private Map<String, String> aai = new HashMap<>();
private Instant closedLoopAlarmStart;
private Instant closedLoopAlarmEnd;