package org.onap.policy.controlloop;
+import com.google.gson.annotations.SerializedName;
+
import java.io.Serializable;
import java.util.UUID;
public abstract class ControlLoopEvent implements Serializable {
private static final long serialVersionUID = 2391252138583119195L;
-
+
+ @SerializedName("closedLoopControlName")
private String closedLoopControlName;
+
+ @SerializedName("version")
private String version = "1.0.2";
+
+ @SerializedName("requestID")
private UUID requestId;
+
+ @SerializedName("closedLoopEventClient")
private String closedLoopEventClient;
+
+ @SerializedName("target_type")
private ControlLoopTargetType targetType;
+
+ @SerializedName("target")
private String target;
+
+ @SerializedName("from")
private String from;
+
+ @SerializedName("policyScope")
private String policyScope;
+
+ @SerializedName("policyName")
private String policyName;
+
+ @SerializedName("policyVersion")
private String policyVersion;
+
+ @SerializedName("closedLoopEventStatus")
private ControlLoopEventStatus closedLoopEventStatus;
public ControlLoopEvent() {
public class VirtualControlLoopEvent extends ControlLoopEvent {
private static final long serialVersionUID = -5752405682246066226L;
+
+ @SerializedName("closedLoopAlarmStart")
private Instant closedLoopAlarmStart;
+
+ @SerializedName("closedLoopAlarmEnd")
private Instant closedLoopAlarmEnd;
+
@SerializedName("AAI")
private Map<String, String> aai = new HashMap<>();
@SerializedName("AAI")
private Map<String, String> aai = new HashMap<>();
+
+ @SerializedName("closedLoopAlarmStart")
private Instant closedLoopAlarmStart;
+
+ @SerializedName("closedLoopAlarmEnd")
private Instant closedLoopAlarmEnd;
public VirtualControlLoopNotification() {}