diff options
author | 2019-03-27 13:20:46 +0530 | |
---|---|---|
committer | 2019-03-27 13:20:46 +0530 | |
commit | 5d104a528594352889c2297781a70eec50bdd960 (patch) | |
tree | a6c448a43b4c5150c20b52530c2917c6e766bf5c /UniversalVesAdapter | |
parent | 5e76fbd802ca4dcf48dac5c9a8f262470a326ef7 (diff) |
Continue VES 5.4 support as well in VES Mapper
Adding Support for 5.4 ves version along with ves 7.0
Change-Id: I44b15ff5017a968b1df6b57be0a2af1759e740d4
Issue-ID: DCAEGEN2-1326
Signed-off-by: Pooja03 <pm00501616@techmahindra.com>
Diffstat (limited to 'UniversalVesAdapter')
68 files changed, 21819 insertions, 73 deletions
diff --git a/UniversalVesAdapter/kv.json b/UniversalVesAdapter/kv.json index ec47117..9e245d1 100644 --- a/UniversalVesAdapter/kv.json +++ b/UniversalVesAdapter/kv.json @@ -1,5 +1,24 @@ -{"app_preferences": {"collectors": [{
- "identifier": "notification-id",
- "subscriberTopic": "ONAP-COLLECTOR-RESTCONFTRAP",
- "mapping-files": [{"defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP": "<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' /><\/json:keyMap><\/json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1<\/jb:expression><jb:expression property='eventType'>'pnfRegistration'<\/jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1<\/jb:expression><jb:expression property='reportingEntityName'>'VESMapper'<\/jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain<\/jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL<\/jb:expression><jb:value property='sourceName' data='notification/message/target' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><jb:value property='serialNumber' data='notification/message/content/onu/sn' /><\/jb:bean><\/smooks-resource-list>"}]
-}]}}
\ No newline at end of file +{
+ "app_preferences":{
+ "collectors":[
+ {
+ "identifier":"notification-id",
+ "subscriberTopic":"ONAP-COLLECTOR-RESTCONFTRAP",
+ "mapping-files":[
+ {
+ "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' /><\/json:keyMap><\/json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1<\/jb:expression><jb:expression property='eventType'>'pnfRegistration'<\/jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1<\/jb:expression><jb:expression property='reportingEntityName'>'VESMapper'<\/jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain<\/jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL<\/jb:expression><jb:value property='sourceName' data='notification/message/target' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><jb:value property='serialNumber' data='notification/message/content/onu/sn' /><\/jb:bean><\/smooks-resource-list>"
+ }
+ ]
+ },
+ {
+ "identifier":"notify OID",
+ "subscriberTopic":"ONAP-COLLECTOR-SNMPTRAP",
+ "mapping-files":[
+ {
+ "defaultMappingFile-ONAP-COLLECTOR-SNMPTRAP":"<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='faultFields' beanIdRef='faultFields'/></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec' data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received' /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields' beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion' data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition' data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot'/></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot' createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation'/></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation' beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value property='name' data='#/varbind_oid'/><jb:value property='value' data='#/varbind_value' /></jb:bean></smooks-resource-list>"
+ }
+ ]
+ }
+ ]
+ }
+}
\ No newline at end of file diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurement.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurement.java new file mode 100644 index 0000000..eef72f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurement.java @@ -0,0 +1,127 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * an array of name value pairs along with a name for the array
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"name", "arrayOfFields"})
+public class AdditionalMeasurement {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ private String name;
+ /**
+ * array of name value pairs (Required)
+ *
+ */
+ @JsonProperty("arrayOfFields")
+ @JsonPropertyDescription("array of name value pairs")
+ private List<AlarmAdditionalInformation> arrayOfFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ * array of name value pairs (Required)
+ *
+ */
+ @JsonProperty("arrayOfFields")
+ public List<AlarmAdditionalInformation> getArrayOfFields() {
+ return arrayOfFields;
+ }
+
+ /**
+ * array of name value pairs (Required)
+ *
+ */
+ @JsonProperty("arrayOfFields")
+ public void setArrayOfFields(List<AlarmAdditionalInformation> arrayOfFields) {
+ this.arrayOfFields = arrayOfFields;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(name).append(arrayOfFields).append(additionalProperties)
+ .toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObject.java new file mode 100644 index 0000000..747df15 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObject.java @@ -0,0 +1,229 @@ +
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * json object schema, name and other meta-information along with one or more object instances
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"objectInstances", "objectName", "objectSchema", "objectSchemaUrl",
+ "nfSubscribedObjectName", "nfSubscriptionId"})
+public class AdditionalObject {
+
+ /**
+ * one or more instances of the jsonObject (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ @JsonPropertyDescription("one or more instances of the jsonObject")
+ private List<ObjectInstance> objectInstances = new ArrayList<ObjectInstance>();
+ /**
+ * name of the JSON Object (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ @JsonPropertyDescription("name of the JSON Object")
+ private String objectName;
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ @JsonPropertyDescription("json schema for the object")
+ private String objectSchema;
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ @JsonPropertyDescription("Url to the json schema for the object")
+ private String objectSchemaUrl;
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ @JsonPropertyDescription("name of the object associated with the nfSubscriptonId")
+ private String nfSubscribedObjectName;
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the
+ * network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ @JsonPropertyDescription("identifies an openConfig telemetry subscription on a network function, which configures the network function to send complex object data associated with the jsonObject")
+ private String nfSubscriptionId;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * one or more instances of the jsonObject (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ public List<ObjectInstance> getObjectInstances() {
+ return objectInstances;
+ }
+
+ /**
+ * one or more instances of the jsonObject (Required)
+ *
+ */
+ @JsonProperty("objectInstances")
+ public void setObjectInstances(List<ObjectInstance> objectInstances) {
+ this.objectInstances = objectInstances;
+ }
+
+ /**
+ * name of the JSON Object (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ public String getObjectName() {
+ return objectName;
+ }
+
+ /**
+ * name of the JSON Object (Required)
+ *
+ */
+ @JsonProperty("objectName")
+ public void setObjectName(String objectName) {
+ this.objectName = objectName;
+ }
+
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ public String getObjectSchema() {
+ return objectSchema;
+ }
+
+ /**
+ * json schema for the object
+ *
+ */
+ @JsonProperty("objectSchema")
+ public void setObjectSchema(String objectSchema) {
+ this.objectSchema = objectSchema;
+ }
+
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ public String getObjectSchemaUrl() {
+ return objectSchemaUrl;
+ }
+
+ /**
+ * Url to the json schema for the object
+ *
+ */
+ @JsonProperty("objectSchemaUrl")
+ public void setObjectSchemaUrl(String objectSchemaUrl) {
+ this.objectSchemaUrl = objectSchemaUrl;
+ }
+
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ public String getNfSubscribedObjectName() {
+ return nfSubscribedObjectName;
+ }
+
+ /**
+ * name of the object associated with the nfSubscriptonId
+ *
+ */
+ @JsonProperty("nfSubscribedObjectName")
+ public void setNfSubscribedObjectName(String nfSubscribedObjectName) {
+ this.nfSubscribedObjectName = nfSubscribedObjectName;
+ }
+
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the
+ * network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ public String getNfSubscriptionId() {
+ return nfSubscriptionId;
+ }
+
+ /**
+ * identifies an openConfig telemetry subscription on a network function, which configures the
+ * network function to send complex object data associated with the jsonObject
+ *
+ */
+ @JsonProperty("nfSubscriptionId")
+ public void setNfSubscriptionId(String nfSubscriptionId) {
+ this.nfSubscriptionId = nfSubscriptionId;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema)
+ .append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameter.java new file mode 100644 index 0000000..35be46e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameter.java @@ -0,0 +1,220 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * performance counter
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"criticality", "name", "thresholdCrossed", "value"})
+public class AdditionalParameter {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("criticality")
+ private AdditionalParameter.Criticality criticality;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ private String name;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossed")
+ private String thresholdCrossed;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ private String value;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("criticality")
+ public AdditionalParameter.Criticality getCriticality() {
+ return criticality;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("criticality")
+ public void setCriticality(AdditionalParameter.Criticality criticality) {
+ this.criticality = criticality;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossed")
+ public String getThresholdCrossed() {
+ return thresholdCrossed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossed")
+ public void setThresholdCrossed(String thresholdCrossed) {
+ this.thresholdCrossed = thresholdCrossed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(criticality).append(name).append(thresholdCrossed)
+ .append(value).append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum Criticality {
+
+ CRIT("CRIT"), MAJ("MAJ");
+ private final String value;
+ private final static Map<String, AdditionalParameter.Criticality> CONSTANTS =
+ new HashMap<String, AdditionalParameter.Criticality>();
+
+ static {
+ for (AdditionalParameter.Criticality c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private Criticality(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static AdditionalParameter.Criticality fromValue(String value) {
+ AdditionalParameter.Criticality constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformation.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformation.java new file mode 100644 index 0000000..262f1c5 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformation.java @@ -0,0 +1,126 @@ +
+/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * name value pair
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"name", "value"})
+public class AlarmAdditionalInformation {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ private String name;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ private String value;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public String getName() {
+ return name;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("name")
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ public String getValue() {
+ return value;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("value")
+ public void setValue(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(name).append(value).append(additionalProperties)
+ .toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArray.java new file mode 100644 index 0000000..03f5e49 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArray.java @@ -0,0 +1,124 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * number of times an identified codec was used over the measurementInterval
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"codecIdentifier", "numberInUse"})
+public class CodecUsageArray {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("codecIdentifier")
+ private String codecIdentifier;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("numberInUse")
+ private Integer numberInUse;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("codecIdentifier")
+ public String getCodecIdentifier() {
+ return codecIdentifier;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("codecIdentifier")
+ public void setCodecIdentifier(String codecIdentifier) {
+ this.codecIdentifier = codecIdentifier;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("numberInUse")
+ public Integer getNumberInUse() {
+ return numberInUse;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("numberInUse")
+ public void setNumberInUse(Integer numberInUse) {
+ this.numberInUse = numberInUse;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(codecIdentifier).append(numberInUse)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeader.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeader.java new file mode 100644 index 0000000..341890d --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeader.java @@ -0,0 +1,580 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * fields common to all events
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"domain", "eventId", "eventName", "eventType", "internalHeaderFields",
+ "lastEpochMicrosec", "nfcNamingCode", "nfNamingCode", "priority", "reportingEntityId",
+ "reportingEntityName", "sequence", "sourceId", "sourceName", "startEpochMicrosec",
+ "version"})
+public class CommonEventHeader {
+
+ /**
+ * the eventing domain associated with the event (Required)
+ *
+ */
+ @JsonProperty("domain")
+ @JsonPropertyDescription("the eventing domain associated with the event")
+ private CommonEventHeader.Domain domain;
+ /**
+ * event key that is unique to the event source (Required)
+ *
+ */
+ @JsonProperty("eventId")
+ @JsonPropertyDescription("event key that is unique to the event source")
+ private String eventId;
+ /**
+ * unique event name (Required)
+ *
+ */
+ @JsonProperty("eventName")
+ @JsonPropertyDescription("unique event name")
+ private String eventName;
+ /**
+ * for example - applicationVnf, guestOS, hostOS, platform
+ *
+ */
+ @JsonProperty("eventType")
+ @JsonPropertyDescription("for example - applicationVnf, guestOS, hostOS, platform")
+ private String eventType;
+ /**
+ * enrichment fields for internal VES Event Listener service use only, not supplied by event
+ * sources
+ *
+ */
+ @JsonProperty("internalHeaderFields")
+ @JsonPropertyDescription("enrichment fields for internal VES Event Listener service use only, not supplied by event sources")
+ private InternalHeaderFields internalHeaderFields;
+ /**
+ * the latest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("lastEpochMicrosec")
+ @JsonPropertyDescription("the latest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds")
+ private Double lastEpochMicrosec;
+ /**
+ * 3 character network function component type, aligned with vfc naming standards
+ *
+ */
+ @JsonProperty("nfcNamingCode")
+ @JsonPropertyDescription("3 character network function component type, aligned with vfc naming standards")
+ private String nfcNamingCode;
+ /**
+ * 4 character network function type, aligned with vnf naming standards
+ *
+ */
+ @JsonProperty("nfNamingCode")
+ @JsonPropertyDescription("4 character network function type, aligned with vnf naming standards")
+ private String nfNamingCode;
+ /**
+ * processing priority (Required)
+ *
+ */
+ @JsonProperty("priority")
+ @JsonPropertyDescription("processing priority")
+ private CommonEventHeader.Priority priority;
+ /**
+ * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by
+ * the ATT enrichment process
+ *
+ */
+ @JsonProperty("reportingEntityId")
+ @JsonPropertyDescription("UUID identifying the entity reporting the event, for example an OAM VM; must be populated by the ATT enrichment process")
+ private String reportingEntityId;
+ /**
+ * name of the entity reporting the event, for example, an EMS name; may be the same as
+ * sourceName (Required)
+ *
+ */
+ @JsonProperty("reportingEntityName")
+ @JsonPropertyDescription("name of the entity reporting the event, for example, an EMS name; may be the same as sourceName")
+ private String reportingEntityName;
+ /**
+ * ordering of events communicated by an event source instance or 0 if not needed (Required)
+ *
+ */
+ @JsonProperty("sequence")
+ @JsonPropertyDescription("ordering of events communicated by an event source instance or 0 if not needed")
+ private Integer sequence;
+ /**
+ * UUID identifying the entity experiencing the event issue; must be populated by the ATT
+ * enrichment process
+ *
+ */
+ @JsonProperty("sourceId")
+ @JsonPropertyDescription("UUID identifying the entity experiencing the event issue; must be populated by the ATT enrichment process")
+ private String sourceId;
+ /**
+ * name of the entity experiencing the event issue (Required)
+ *
+ */
+ @JsonProperty("sourceName")
+ @JsonPropertyDescription("name of the entity experiencing the event issue")
+ private String sourceName;
+ /**
+ * the earliest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("startEpochMicrosec")
+ @JsonPropertyDescription("the earliest unix time aka epoch time associated with the event from any component--as microseconds elapsed since 1 Jan 1970 not including leap seconds")
+ private Double startEpochMicrosec;
+ /**
+ * version of the event header (Required)
+ *
+ */
+ @JsonProperty("version")
+ @JsonPropertyDescription("version of the event header")
+ private Double version;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * the eventing domain associated with the event (Required)
+ *
+ */
+ @JsonProperty("domain")
+ public CommonEventHeader.Domain getDomain() {
+ return domain;
+ }
+
+ /**
+ * the eventing domain associated with the event (Required)
+ *
+ */
+ @JsonProperty("domain")
+ public void setDomain(CommonEventHeader.Domain domain) {
+ this.domain = domain;
+ }
+
+ /**
+ * event key that is unique to the event source (Required)
+ *
+ */
+ @JsonProperty("eventId")
+ public String getEventId() {
+ return eventId;
+ }
+
+ /**
+ * event key that is unique to the event source (Required)
+ *
+ */
+ @JsonProperty("eventId")
+ public void setEventId(String eventId) {
+ this.eventId = eventId;
+ }
+
+ /**
+ * unique event name (Required)
+ *
+ */
+ @JsonProperty("eventName")
+ public String getEventName() {
+ return eventName;
+ }
+
+ /**
+ * unique event name (Required)
+ *
+ */
+ @JsonProperty("eventName")
+ public void setEventName(String eventName) {
+ this.eventName = eventName;
+ }
+
+ /**
+ * for example - applicationVnf, guestOS, hostOS, platform
+ *
+ */
+ @JsonProperty("eventType")
+ public String getEventType() {
+ return eventType;
+ }
+
+ /**
+ * for example - applicationVnf, guestOS, hostOS, platform
+ *
+ */
+ @JsonProperty("eventType")
+ public void setEventType(String eventType) {
+ this.eventType = eventType;
+ }
+
+ /**
+ * enrichment fields for internal VES Event Listener service use only, not supplied by event
+ * sources
+ *
+ */
+ @JsonProperty("internalHeaderFields")
+ public InternalHeaderFields getInternalHeaderFields() {
+ return internalHeaderFields;
+ }
+
+ /**
+ * enrichment fields for internal VES Event Listener service use only, not supplied by event
+ * sources
+ *
+ */
+ @JsonProperty("internalHeaderFields")
+ public void setInternalHeaderFields(InternalHeaderFields internalHeaderFields) {
+ this.internalHeaderFields = internalHeaderFields;
+ }
+
+ /**
+ * the latest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("lastEpochMicrosec")
+ public Double getLastEpochMicrosec() {
+ return lastEpochMicrosec;
+ }
+
+ /**
+ * the latest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("lastEpochMicrosec")
+ public void setLastEpochMicrosec(Double lastEpochMicrosec) {
+ this.lastEpochMicrosec = lastEpochMicrosec;
+ }
+
+ /**
+ * 3 character network function component type, aligned with vfc naming standards
+ *
+ */
+ @JsonProperty("nfcNamingCode")
+ public String getNfcNamingCode() {
+ return nfcNamingCode;
+ }
+
+ /**
+ * 3 character network function component type, aligned with vfc naming standards
+ *
+ */
+ @JsonProperty("nfcNamingCode")
+ public void setNfcNamingCode(String nfcNamingCode) {
+ this.nfcNamingCode = nfcNamingCode;
+ }
+
+ /**
+ * 4 character network function type, aligned with vnf naming standards
+ *
+ */
+ @JsonProperty("nfNamingCode")
+ public String getNfNamingCode() {
+ return nfNamingCode;
+ }
+
+ /**
+ * 4 character network function type, aligned with vnf naming standards
+ *
+ */
+ @JsonProperty("nfNamingCode")
+ public void setNfNamingCode(String nfNamingCode) {
+ this.nfNamingCode = nfNamingCode;
+ }
+
+ /**
+ * processing priority (Required)
+ *
+ */
+ @JsonProperty("priority")
+ public CommonEventHeader.Priority getPriority() {
+ return priority;
+ }
+
+ /**
+ * processing priority (Required)
+ *
+ */
+ @JsonProperty("priority")
+ public void setPriority(CommonEventHeader.Priority priority) {
+ this.priority = priority;
+ }
+
+ /**
+ * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by
+ * the ATT enrichment process
+ *
+ */
+ @JsonProperty("reportingEntityId")
+ public String getReportingEntityId() {
+ return reportingEntityId;
+ }
+
+ /**
+ * UUID identifying the entity reporting the event, for example an OAM VM; must be populated by
+ * the ATT enrichment process
+ *
+ */
+ @JsonProperty("reportingEntityId")
+ public void setReportingEntityId(String reportingEntityId) {
+ this.reportingEntityId = reportingEntityId;
+ }
+
+ /**
+ * name of the entity reporting the event, for example, an EMS name; may be the same as
+ * sourceName (Required)
+ *
+ */
+ @JsonProperty("reportingEntityName")
+ public String getReportingEntityName() {
+ return reportingEntityName;
+ }
+
+ /**
+ * name of the entity reporting the event, for example, an EMS name; may be the same as
+ * sourceName (Required)
+ *
+ */
+ @JsonProperty("reportingEntityName")
+ public void setReportingEntityName(String reportingEntityName) {
+ this.reportingEntityName = reportingEntityName;
+ }
+
+ /**
+ * ordering of events communicated by an event source instance or 0 if not needed (Required)
+ *
+ */
+ @JsonProperty("sequence")
+ public Integer getSequence() {
+ return sequence;
+ }
+
+ /**
+ * ordering of events communicated by an event source instance or 0 if not needed (Required)
+ *
+ */
+ @JsonProperty("sequence")
+ public void setSequence(Integer sequence) {
+ this.sequence = sequence;
+ }
+
+ /**
+ * UUID identifying the entity experiencing the event issue; must be populated by the ATT
+ * enrichment process
+ *
+ */
+ @JsonProperty("sourceId")
+ public String getSourceId() {
+ return sourceId;
+ }
+
+ /**
+ * UUID identifying the entity experiencing the event issue; must be populated by the ATT
+ * enrichment process
+ *
+ */
+ @JsonProperty("sourceId")
+ public void setSourceId(String sourceId) {
+ this.sourceId = sourceId;
+ }
+
+ /**
+ * name of the entity experiencing the event issue (Required)
+ *
+ */
+ @JsonProperty("sourceName")
+ public String getSourceName() {
+ return sourceName;
+ }
+
+ /**
+ * name of the entity experiencing the event issue (Required)
+ *
+ */
+ @JsonProperty("sourceName")
+ public void setSourceName(String sourceName) {
+ this.sourceName = sourceName;
+ }
+
+ /**
+ * the earliest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("startEpochMicrosec")
+ public Double getStartEpochMicrosec() {
+ return startEpochMicrosec;
+ }
+
+ /**
+ * the earliest unix time aka epoch time associated with the event from any component--as
+ * microseconds elapsed since 1 Jan 1970 not including leap seconds (Required)
+ *
+ */
+ @JsonProperty("startEpochMicrosec")
+ public void setStartEpochMicrosec(Double startEpochMicrosec) {
+ this.startEpochMicrosec = startEpochMicrosec;
+ }
+
+ /**
+ * version of the event header (Required)
+ *
+ */
+ @JsonProperty("version")
+ public Double getVersion() {
+ return version;
+ }
+
+ /**
+ * version of the event header (Required)
+ *
+ */
+ @JsonProperty("version")
+ public void setVersion(Double version) {
+ this.version = version;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(domain).append(eventId).append(eventName)
+ .append(eventType).append(internalHeaderFields).append(lastEpochMicrosec)
+ .append(nfcNamingCode).append(nfNamingCode).append(priority)
+ .append(reportingEntityId).append(reportingEntityName).append(sequence)
+ .append(sourceId).append(sourceName).append(startEpochMicrosec).append(version)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+ public enum Domain {
+
+ FAULT("fault"), HEARTBEAT("heartbeat"), MEASUREMENTS_FOR_VF_SCALING(
+ "measurementsForVfScaling"), MOBILE_FLOW(
+ "mobileFlow"), OTHER("other"), SIP_SIGNALING("sipSignaling"), STATE_CHANGE(
+ "stateChange"), SYSLOG("syslog"), THRESHOLD_CROSSING_ALERT(
+ "thresholdCrossingAlert"), VOICE_QUALITY("voiceQuality");
+ private final String value;
+ private final static Map<String, CommonEventHeader.Domain> CONSTANTS =
+ new HashMap<String, CommonEventHeader.Domain>();
+
+ static {
+ for (CommonEventHeader.Domain c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private Domain(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static CommonEventHeader.Domain fromValue(String value) {
+ CommonEventHeader.Domain constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+ public enum Priority {
+
+ HIGH("High"), MEDIUM("Medium"), NORMAL("Normal"), LOW("Low");
+ private final String value;
+ private final static Map<String, CommonEventHeader.Priority> CONSTANTS =
+ new HashMap<String, CommonEventHeader.Priority>();
+
+ static {
+ for (CommonEventHeader.Priority c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private Priority(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static CommonEventHeader.Priority fromValue(String value) {
+ CommonEventHeader.Priority constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArray.java new file mode 100644 index 0000000..5740016 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArray.java @@ -0,0 +1,332 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * usage of an identified CPU
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"cpuIdentifier", "cpuIdle", "cpuUsageInterrupt", "cpuUsageNice",
+ "cpuUsageSoftIrq", "cpuUsageSteal", "cpuUsageSystem", "cpuUsageUser", "cpuWait",
+ "percentUsage"})
+public class CpuUsageArray {
+
+ /**
+ * cpu identifer (Required)
+ *
+ */
+ @JsonProperty("cpuIdentifier")
+ @JsonPropertyDescription("cpu identifer")
+ private String cpuIdentifier;
+ /**
+ * percentage of CPU time spent in the idle task
+ *
+ */
+ @JsonProperty("cpuIdle")
+ @JsonPropertyDescription("percentage of CPU time spent in the idle task")
+ private Double cpuIdle;
+ /**
+ * percentage of time spent servicing interrupts
+ *
+ */
+ @JsonProperty("cpuUsageInterrupt")
+ @JsonPropertyDescription("percentage of time spent servicing interrupts")
+ private Double cpuUsageInterrupt;
+ /**
+ * percentage of time spent running user space processes that have been niced
+ *
+ */
+ @JsonProperty("cpuUsageNice")
+ @JsonPropertyDescription("percentage of time spent running user space processes that have been niced")
+ private Double cpuUsageNice;
+ /**
+ * percentage of time spent handling soft irq interrupts
+ *
+ */
+ @JsonProperty("cpuUsageSoftIrq")
+ @JsonPropertyDescription("percentage of time spent handling soft irq interrupts")
+ private Double cpuUsageSoftIrq;
+ /**
+ * percentage of time spent in involuntary wait which is neither user, system or idle time and
+ * is effectively time that went missing
+ *
+ */
+ @JsonProperty("cpuUsageSteal")
+ @JsonPropertyDescription("percentage of time spent in involuntary wait which is neither user, system or idle time and is effectively time that went missing")
+ private Double cpuUsageSteal;
+ /**
+ * percentage of time spent on system tasks running the kernel
+ *
+ */
+ @JsonProperty("cpuUsageSystem")
+ @JsonPropertyDescription("percentage of time spent on system tasks running the kernel")
+ private Double cpuUsageSystem;
+ /**
+ * percentage of time spent running un-niced user space processes
+ *
+ */
+ @JsonProperty("cpuUsageUser")
+ @JsonPropertyDescription("percentage of time spent running un-niced user space processes")
+ private Double cpuUsageUser;
+ /**
+ * percentage of CPU time spent waiting for I/O operations to complete
+ *
+ */
+ @JsonProperty("cpuWait")
+ @JsonPropertyDescription("percentage of CPU time spent waiting for I/O operations to complete")
+ private Double cpuWait;
+ /**
+ * aggregate cpu usage of the virtual machine on which the VNFC reporting the event is running
+ * (Required)
+ *
+ */
+ @JsonProperty("percentUsage")
+ @JsonPropertyDescription("aggregate cpu usage of the virtual machine on which the VNFC reporting the event is running")
+ private Double percentUsage;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * cpu identifer (Required)
+ *
+ */
+ @JsonProperty("cpuIdentifier")
+ public String getCpuIdentifier() {
+ return cpuIdentifier;
+ }
+
+ /**
+ * cpu identifer (Required)
+ *
+ */
+ @JsonProperty("cpuIdentifier")
+ public void setCpuIdentifier(String cpuIdentifier) {
+ this.cpuIdentifier = cpuIdentifier;
+ }
+
+ /**
+ * percentage of CPU time spent in the idle task
+ *
+ */
+ @JsonProperty("cpuIdle")
+ public Double getCpuIdle() {
+ return cpuIdle;
+ }
+
+ /**
+ * percentage of CPU time spent in the idle task
+ *
+ */
+ @JsonProperty("cpuIdle")
+ public void setCpuIdle(Double cpuIdle) {
+ this.cpuIdle = cpuIdle;
+ }
+
+ /**
+ * percentage of time spent servicing interrupts
+ *
+ */
+ @JsonProperty("cpuUsageInterrupt")
+ public Double getCpuUsageInterrupt() {
+ return cpuUsageInterrupt;
+ }
+
+ /**
+ * percentage of time spent servicing interrupts
+ *
+ */
+ @JsonProperty("cpuUsageInterrupt")
+ public void setCpuUsageInterrupt(Double cpuUsageInterrupt) {
+ this.cpuUsageInterrupt = cpuUsageInterrupt;
+ }
+
+ /**
+ * percentage of time spent running user space processes that have been niced
+ *
+ */
+ @JsonProperty("cpuUsageNice")
+ public Double getCpuUsageNice() {
+ return cpuUsageNice;
+ }
+
+ /**
+ * percentage of time spent running user space processes that have been niced
+ *
+ */
+ @JsonProperty("cpuUsageNice")
+ public void setCpuUsageNice(Double cpuUsageNice) {
+ this.cpuUsageNice = cpuUsageNice;
+ }
+
+ /**
+ * percentage of time spent handling soft irq interrupts
+ *
+ */
+ @JsonProperty("cpuUsageSoftIrq")
+ public Double getCpuUsageSoftIrq() {
+ return cpuUsageSoftIrq;
+ }
+
+ /**
+ * percentage of time spent handling soft irq interrupts
+ *
+ */
+ @JsonProperty("cpuUsageSoftIrq")
+ public void setCpuUsageSoftIrq(Double cpuUsageSoftIrq) {
+ this.cpuUsageSoftIrq = cpuUsageSoftIrq;
+ }
+
+ /**
+ * percentage of time spent in involuntary wait which is neither user, system or idle time and
+ * is effectively time that went missing
+ *
+ */
+ @JsonProperty("cpuUsageSteal")
+ public Double getCpuUsageSteal() {
+ return cpuUsageSteal;
+ }
+
+ /**
+ * percentage of time spent in involuntary wait which is neither user, system or idle time and
+ * is effectively time that went missing
+ *
+ */
+ @JsonProperty("cpuUsageSteal")
+ public void setCpuUsageSteal(Double cpuUsageSteal) {
+ this.cpuUsageSteal = cpuUsageSteal;
+ }
+
+ /**
+ * percentage of time spent on system tasks running the kernel
+ *
+ */
+ @JsonProperty("cpuUsageSystem")
+ public Double getCpuUsageSystem() {
+ return cpuUsageSystem;
+ }
+
+ /**
+ * percentage of time spent on system tasks running the kernel
+ *
+ */
+ @JsonProperty("cpuUsageSystem")
+ public void setCpuUsageSystem(Double cpuUsageSystem) {
+ this.cpuUsageSystem = cpuUsageSystem;
+ }
+
+ /**
+ * percentage of time spent running un-niced user space processes
+ *
+ */
+ @JsonProperty("cpuUsageUser")
+ public Double getCpuUsageUser() {
+ return cpuUsageUser;
+ }
+
+ /**
+ * percentage of time spent running un-niced user space processes
+ *
+ */
+ @JsonProperty("cpuUsageUser")
+ public void setCpuUsageUser(Double cpuUsageUser) {
+ this.cpuUsageUser = cpuUsageUser;
+ }
+
+ /**
+ * percentage of CPU time spent waiting for I/O operations to complete
+ *
+ */
+ @JsonProperty("cpuWait")
+ public Double getCpuWait() {
+ return cpuWait;
+ }
+
+ /**
+ * percentage of CPU time spent waiting for I/O operations to complete
+ *
+ */
+ @JsonProperty("cpuWait")
+ public void setCpuWait(Double cpuWait) {
+ this.cpuWait = cpuWait;
+ }
+
+ /**
+ * aggregate cpu usage of the virtual machine on which the VNFC reporting the event is running
+ * (Required)
+ *
+ */
+ @JsonProperty("percentUsage")
+ public Double getPercentUsage() {
+ return percentUsage;
+ }
+
+ /**
+ * aggregate cpu usage of the virtual machine on which the VNFC reporting the event is running
+ * (Required)
+ *
+ */
+ @JsonProperty("percentUsage")
+ public void setPercentUsage(Double percentUsage) {
+ this.percentUsage = percentUsage;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(cpuIdentifier).append(cpuIdle).append(cpuUsageInterrupt)
+ .append(cpuUsageNice).append(cpuUsageSoftIrq).append(cpuUsageSteal)
+ .append(cpuUsageSystem).append(cpuUsageUser).append(cpuWait).append(percentUsage)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArray.java new file mode 100644 index 0000000..e74c7ee --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArray.java @@ -0,0 +1,1277 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * usage of an identified disk
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"diskIdentifier", "diskIoTimeAvg", "diskIoTimeLast", "diskIoTimeMax",
+ "diskIoTimeMin", "diskMergedReadAvg", "diskMergedReadLast", "diskMergedReadMax",
+ "diskMergedReadMin", "diskMergedWriteAvg", "diskMergedWriteLast", "diskMergedWriteMax",
+ "diskMergedWriteMin", "diskOctetsReadAvg", "diskOctetsReadLast", "diskOctetsReadMax",
+ "diskOctetsReadMin", "diskOctetsWriteAvg", "diskOctetsWriteLast", "diskOctetsWriteMax",
+ "diskOctetsWriteMin", "diskOpsReadAvg", "diskOpsReadLast", "diskOpsReadMax",
+ "diskOpsReadMin", "diskOpsWriteAvg", "diskOpsWriteLast", "diskOpsWriteMax",
+ "diskOpsWriteMin", "diskPendingOperationsAvg", "diskPendingOperationsLast",
+ "diskPendingOperationsMax", "diskPendingOperationsMin", "diskTimeReadAvg",
+ "diskTimeReadLast", "diskTimeReadMax", "diskTimeReadMin", "diskTimeWriteAvg",
+ "diskTimeWriteLast", "diskTimeWriteMax", "diskTimeWriteMin"})
+public class DiskUsageArray {
+
+ /**
+ * disk identifier (Required)
+ *
+ */
+ @JsonProperty("diskIdentifier")
+ @JsonPropertyDescription("disk identifier")
+ private String diskIdentifier;
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the average over the measurement
+ * interval
+ *
+ */
+ @JsonProperty("diskIoTimeAvg")
+ @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the average over the measurement interval")
+ private Double diskIoTimeAvg;
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the last value measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeLast")
+ @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the last value measurement within the measurement interval")
+ private Double diskIoTimeLast;
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the maximum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMax")
+ @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the maximum value measurement within the measurement interval")
+ private Double diskIoTimeMax;
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the minimum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMin")
+ @JsonPropertyDescription("milliseconds spent doing input/output operations over 1 sec; treat this metric as a device load percentage where 1000ms matches 100% load; provide the minimum value measurement within the measurement interval")
+ private Double diskIoTimeMin;
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the average measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadAvg")
+ @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the average measurement within the measurement interval")
+ private Double diskMergedReadAvg;
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadLast")
+ @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the last value measurement within the measurement interval")
+ private Double diskMergedReadLast;
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMax")
+ @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the maximum value measurement within the measurement interval")
+ private Double diskMergedReadMax;
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMin")
+ @JsonPropertyDescription("number of logical read operations that were merged into physical read operations, e.g., two logical reads were served by one physical disk access; provide the minimum value measurement within the measurement interval")
+ private Double diskMergedReadMin;
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteAvg")
+ @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the average measurement within the measurement interval")
+ private Double diskMergedWriteAvg;
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteLast")
+ @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the last value measurement within the measurement interval")
+ private Double diskMergedWriteLast;
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMax")
+ @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the maximum value measurement within the measurement interval")
+ private Double diskMergedWriteMax;
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMin")
+ @JsonPropertyDescription("number of logical write operations that were merged into physical write operations, e.g., two logical writes were served by one physical disk access; provide the minimum value measurement within the measurement interval")
+ private Double diskMergedWriteMin;
+ /**
+ * number of octets per second read from a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadAvg")
+ @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the average measurement within the measurement interval")
+ private Double diskOctetsReadAvg;
+ /**
+ * number of octets per second read from a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadLast")
+ @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the last measurement within the measurement interval")
+ private Double diskOctetsReadLast;
+ /**
+ * number of octets per second read from a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMax")
+ @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the maximum measurement within the measurement interval")
+ private Double diskOctetsReadMax;
+ /**
+ * number of octets per second read from a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMin")
+ @JsonPropertyDescription("number of octets per second read from a disk or partition; provide the minimum measurement within the measurement interval")
+ private Double diskOctetsReadMin;
+ /**
+ * number of octets per second written to a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteAvg")
+ @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the average measurement within the measurement interval")
+ private Double diskOctetsWriteAvg;
+ /**
+ * number of octets per second written to a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteLast")
+ @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the last measurement within the measurement interval")
+ private Double diskOctetsWriteLast;
+ /**
+ * number of octets per second written to a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMax")
+ @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the maximum measurement within the measurement interval")
+ private Double diskOctetsWriteMax;
+ /**
+ * number of octets per second written to a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMin")
+ @JsonPropertyDescription("number of octets per second written to a disk or partition; provide the minimum measurement within the measurement interval")
+ private Double diskOctetsWriteMin;
+ /**
+ * number of read operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadAvg")
+ @JsonPropertyDescription("number of read operations per second issued to the disk; provide the average measurement within the measurement interval")
+ private Double diskOpsReadAvg;
+ /**
+ * number of read operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadLast")
+ @JsonPropertyDescription("number of read operations per second issued to the disk; provide the last measurement within the measurement interval")
+ private Double diskOpsReadLast;
+ /**
+ * number of read operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMax")
+ @JsonPropertyDescription("number of read operations per second issued to the disk; provide the maximum measurement within the measurement interval")
+ private Double diskOpsReadMax;
+ /**
+ * number of read operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMin")
+ @JsonPropertyDescription("number of read operations per second issued to the disk; provide the minimum measurement within the measurement interval")
+ private Double diskOpsReadMin;
+ /**
+ * number of write operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteAvg")
+ @JsonPropertyDescription("number of write operations per second issued to the disk; provide the average measurement within the measurement interval")
+ private Double diskOpsWriteAvg;
+ /**
+ * number of write operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteLast")
+ @JsonPropertyDescription("number of write operations per second issued to the disk; provide the last measurement within the measurement interval")
+ private Double diskOpsWriteLast;
+ /**
+ * number of write operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMax")
+ @JsonPropertyDescription("number of write operations per second issued to the disk; provide the maximum measurement within the measurement interval")
+ private Double diskOpsWriteMax;
+ /**
+ * number of write operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMin")
+ @JsonPropertyDescription("number of write operations per second issued to the disk; provide the minimum measurement within the measurement interval")
+ private Double diskOpsWriteMin;
+ /**
+ * queue size of pending I/O operations per second; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsAvg")
+ @JsonPropertyDescription("queue size of pending I/O operations per second; provide the average measurement within the measurement interval")
+ private Double diskPendingOperationsAvg;
+ /**
+ * queue size of pending I/O operations per second; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsLast")
+ @JsonPropertyDescription("queue size of pending I/O operations per second; provide the last measurement within the measurement interval")
+ private Double diskPendingOperationsLast;
+ /**
+ * queue size of pending I/O operations per second; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMax")
+ @JsonPropertyDescription("queue size of pending I/O operations per second; provide the maximum measurement within the measurement interval")
+ private Double diskPendingOperationsMax;
+ /**
+ * queue size of pending I/O operations per second; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMin")
+ @JsonPropertyDescription("queue size of pending I/O operations per second; provide the minimum measurement within the measurement interval")
+ private Double diskPendingOperationsMin;
+ /**
+ * milliseconds a read operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadAvg")
+ @JsonPropertyDescription("milliseconds a read operation took to complete; provide the average measurement within the measurement interval")
+ private Double diskTimeReadAvg;
+ /**
+ * milliseconds a read operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadLast")
+ @JsonPropertyDescription("milliseconds a read operation took to complete; provide the last measurement within the measurement interval")
+ private Double diskTimeReadLast;
+ /**
+ * milliseconds a read operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMax")
+ @JsonPropertyDescription("milliseconds a read operation took to complete; provide the maximum measurement within the measurement interval")
+ private Double diskTimeReadMax;
+ /**
+ * milliseconds a read operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMin")
+ @JsonPropertyDescription("milliseconds a read operation took to complete; provide the minimum measurement within the measurement interval")
+ private Double diskTimeReadMin;
+ /**
+ * milliseconds a write operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteAvg")
+ @JsonPropertyDescription("milliseconds a write operation took to complete; provide the average measurement within the measurement interval")
+ private Double diskTimeWriteAvg;
+ /**
+ * milliseconds a write operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteLast")
+ @JsonPropertyDescription("milliseconds a write operation took to complete; provide the last measurement within the measurement interval")
+ private Double diskTimeWriteLast;
+ /**
+ * milliseconds a write operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMax")
+ @JsonPropertyDescription("milliseconds a write operation took to complete; provide the maximum measurement within the measurement interval")
+ private Double diskTimeWriteMax;
+ /**
+ * milliseconds a write operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMin")
+ @JsonPropertyDescription("milliseconds a write operation took to complete; provide the minimum measurement within the measurement interval")
+ private Double diskTimeWriteMin;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * disk identifier (Required)
+ *
+ */
+ @JsonProperty("diskIdentifier")
+ public String getDiskIdentifier() {
+ return diskIdentifier;
+ }
+
+ /**
+ * disk identifier (Required)
+ *
+ */
+ @JsonProperty("diskIdentifier")
+ public void setDiskIdentifier(String diskIdentifier) {
+ this.diskIdentifier = diskIdentifier;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the average over the measurement
+ * interval
+ *
+ */
+ @JsonProperty("diskIoTimeAvg")
+ public Double getDiskIoTimeAvg() {
+ return diskIoTimeAvg;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the average over the measurement
+ * interval
+ *
+ */
+ @JsonProperty("diskIoTimeAvg")
+ public void setDiskIoTimeAvg(Double diskIoTimeAvg) {
+ this.diskIoTimeAvg = diskIoTimeAvg;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the last value measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeLast")
+ public Double getDiskIoTimeLast() {
+ return diskIoTimeLast;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the last value measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeLast")
+ public void setDiskIoTimeLast(Double diskIoTimeLast) {
+ this.diskIoTimeLast = diskIoTimeLast;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the maximum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMax")
+ public Double getDiskIoTimeMax() {
+ return diskIoTimeMax;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the maximum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMax")
+ public void setDiskIoTimeMax(Double diskIoTimeMax) {
+ this.diskIoTimeMax = diskIoTimeMax;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the minimum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMin")
+ public Double getDiskIoTimeMin() {
+ return diskIoTimeMin;
+ }
+
+ /**
+ * milliseconds spent doing input/output operations over 1 sec; treat this metric as a device
+ * load percentage where 1000ms matches 100% load; provide the minimum value measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskIoTimeMin")
+ public void setDiskIoTimeMin(Double diskIoTimeMin) {
+ this.diskIoTimeMin = diskIoTimeMin;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the average measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadAvg")
+ public Double getDiskMergedReadAvg() {
+ return diskMergedReadAvg;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the average measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadAvg")
+ public void setDiskMergedReadAvg(Double diskMergedReadAvg) {
+ this.diskMergedReadAvg = diskMergedReadAvg;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadLast")
+ public Double getDiskMergedReadLast() {
+ return diskMergedReadLast;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadLast")
+ public void setDiskMergedReadLast(Double diskMergedReadLast) {
+ this.diskMergedReadLast = diskMergedReadLast;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMax")
+ public Double getDiskMergedReadMax() {
+ return diskMergedReadMax;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMax")
+ public void setDiskMergedReadMax(Double diskMergedReadMax) {
+ this.diskMergedReadMax = diskMergedReadMax;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMin")
+ public Double getDiskMergedReadMin() {
+ return diskMergedReadMin;
+ }
+
+ /**
+ * number of logical read operations that were merged into physical read operations, e.g., two
+ * logical reads were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedReadMin")
+ public void setDiskMergedReadMin(Double diskMergedReadMin) {
+ this.diskMergedReadMin = diskMergedReadMin;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteAvg")
+ public Double getDiskMergedWriteAvg() {
+ return diskMergedWriteAvg;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteAvg")
+ public void setDiskMergedWriteAvg(Double diskMergedWriteAvg) {
+ this.diskMergedWriteAvg = diskMergedWriteAvg;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteLast")
+ public Double getDiskMergedWriteLast() {
+ return diskMergedWriteLast;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the last value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteLast")
+ public void setDiskMergedWriteLast(Double diskMergedWriteLast) {
+ this.diskMergedWriteLast = diskMergedWriteLast;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMax")
+ public Double getDiskMergedWriteMax() {
+ return diskMergedWriteMax;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the maximum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMax")
+ public void setDiskMergedWriteMax(Double diskMergedWriteMax) {
+ this.diskMergedWriteMax = diskMergedWriteMax;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMin")
+ public Double getDiskMergedWriteMin() {
+ return diskMergedWriteMin;
+ }
+
+ /**
+ * number of logical write operations that were merged into physical write operations, e.g., two
+ * logical writes were served by one physical disk access; provide the minimum value measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskMergedWriteMin")
+ public void setDiskMergedWriteMin(Double diskMergedWriteMin) {
+ this.diskMergedWriteMin = diskMergedWriteMin;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadAvg")
+ public Double getDiskOctetsReadAvg() {
+ return diskOctetsReadAvg;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadAvg")
+ public void setDiskOctetsReadAvg(Double diskOctetsReadAvg) {
+ this.diskOctetsReadAvg = diskOctetsReadAvg;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadLast")
+ public Double getDiskOctetsReadLast() {
+ return diskOctetsReadLast;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadLast")
+ public void setDiskOctetsReadLast(Double diskOctetsReadLast) {
+ this.diskOctetsReadLast = diskOctetsReadLast;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMax")
+ public Double getDiskOctetsReadMax() {
+ return diskOctetsReadMax;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMax")
+ public void setDiskOctetsReadMax(Double diskOctetsReadMax) {
+ this.diskOctetsReadMax = diskOctetsReadMax;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMin")
+ public Double getDiskOctetsReadMin() {
+ return diskOctetsReadMin;
+ }
+
+ /**
+ * number of octets per second read from a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsReadMin")
+ public void setDiskOctetsReadMin(Double diskOctetsReadMin) {
+ this.diskOctetsReadMin = diskOctetsReadMin;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteAvg")
+ public Double getDiskOctetsWriteAvg() {
+ return diskOctetsWriteAvg;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteAvg")
+ public void setDiskOctetsWriteAvg(Double diskOctetsWriteAvg) {
+ this.diskOctetsWriteAvg = diskOctetsWriteAvg;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteLast")
+ public Double getDiskOctetsWriteLast() {
+ return diskOctetsWriteLast;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the last measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteLast")
+ public void setDiskOctetsWriteLast(Double diskOctetsWriteLast) {
+ this.diskOctetsWriteLast = diskOctetsWriteLast;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMax")
+ public Double getDiskOctetsWriteMax() {
+ return diskOctetsWriteMax;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMax")
+ public void setDiskOctetsWriteMax(Double diskOctetsWriteMax) {
+ this.diskOctetsWriteMax = diskOctetsWriteMax;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMin")
+ public Double getDiskOctetsWriteMin() {
+ return diskOctetsWriteMin;
+ }
+
+ /**
+ * number of octets per second written to a disk or partition; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOctetsWriteMin")
+ public void setDiskOctetsWriteMin(Double diskOctetsWriteMin) {
+ this.diskOctetsWriteMin = diskOctetsWriteMin;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadAvg")
+ public Double getDiskOpsReadAvg() {
+ return diskOpsReadAvg;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadAvg")
+ public void setDiskOpsReadAvg(Double diskOpsReadAvg) {
+ this.diskOpsReadAvg = diskOpsReadAvg;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadLast")
+ public Double getDiskOpsReadLast() {
+ return diskOpsReadLast;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadLast")
+ public void setDiskOpsReadLast(Double diskOpsReadLast) {
+ this.diskOpsReadLast = diskOpsReadLast;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMax")
+ public Double getDiskOpsReadMax() {
+ return diskOpsReadMax;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMax")
+ public void setDiskOpsReadMax(Double diskOpsReadMax) {
+ this.diskOpsReadMax = diskOpsReadMax;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMin")
+ public Double getDiskOpsReadMin() {
+ return diskOpsReadMin;
+ }
+
+ /**
+ * number of read operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsReadMin")
+ public void setDiskOpsReadMin(Double diskOpsReadMin) {
+ this.diskOpsReadMin = diskOpsReadMin;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteAvg")
+ public Double getDiskOpsWriteAvg() {
+ return diskOpsWriteAvg;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the average measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteAvg")
+ public void setDiskOpsWriteAvg(Double diskOpsWriteAvg) {
+ this.diskOpsWriteAvg = diskOpsWriteAvg;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteLast")
+ public Double getDiskOpsWriteLast() {
+ return diskOpsWriteLast;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the last measurement within
+ * the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteLast")
+ public void setDiskOpsWriteLast(Double diskOpsWriteLast) {
+ this.diskOpsWriteLast = diskOpsWriteLast;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMax")
+ public Double getDiskOpsWriteMax() {
+ return diskOpsWriteMax;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the maximum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMax")
+ public void setDiskOpsWriteMax(Double diskOpsWriteMax) {
+ this.diskOpsWriteMax = diskOpsWriteMax;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMin")
+ public Double getDiskOpsWriteMin() {
+ return diskOpsWriteMin;
+ }
+
+ /**
+ * number of write operations per second issued to the disk; provide the minimum measurement
+ * within the measurement interval
+ *
+ */
+ @JsonProperty("diskOpsWriteMin")
+ public void setDiskOpsWriteMin(Double diskOpsWriteMin) {
+ this.diskOpsWriteMin = diskOpsWriteMin;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsAvg")
+ public Double getDiskPendingOperationsAvg() {
+ return diskPendingOperationsAvg;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsAvg")
+ public void setDiskPendingOperationsAvg(Double diskPendingOperationsAvg) {
+ this.diskPendingOperationsAvg = diskPendingOperationsAvg;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsLast")
+ public Double getDiskPendingOperationsLast() {
+ return diskPendingOperationsLast;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsLast")
+ public void setDiskPendingOperationsLast(Double diskPendingOperationsLast) {
+ this.diskPendingOperationsLast = diskPendingOperationsLast;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMax")
+ public Double getDiskPendingOperationsMax() {
+ return diskPendingOperationsMax;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMax")
+ public void setDiskPendingOperationsMax(Double diskPendingOperationsMax) {
+ this.diskPendingOperationsMax = diskPendingOperationsMax;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMin")
+ public Double getDiskPendingOperationsMin() {
+ return diskPendingOperationsMin;
+ }
+
+ /**
+ * queue size of pending I/O operations per second; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskPendingOperationsMin")
+ public void setDiskPendingOperationsMin(Double diskPendingOperationsMin) {
+ this.diskPendingOperationsMin = diskPendingOperationsMin;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadAvg")
+ public Double getDiskTimeReadAvg() {
+ return diskTimeReadAvg;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadAvg")
+ public void setDiskTimeReadAvg(Double diskTimeReadAvg) {
+ this.diskTimeReadAvg = diskTimeReadAvg;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadLast")
+ public Double getDiskTimeReadLast() {
+ return diskTimeReadLast;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadLast")
+ public void setDiskTimeReadLast(Double diskTimeReadLast) {
+ this.diskTimeReadLast = diskTimeReadLast;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMax")
+ public Double getDiskTimeReadMax() {
+ return diskTimeReadMax;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMax")
+ public void setDiskTimeReadMax(Double diskTimeReadMax) {
+ this.diskTimeReadMax = diskTimeReadMax;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMin")
+ public Double getDiskTimeReadMin() {
+ return diskTimeReadMin;
+ }
+
+ /**
+ * milliseconds a read operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeReadMin")
+ public void setDiskTimeReadMin(Double diskTimeReadMin) {
+ this.diskTimeReadMin = diskTimeReadMin;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteAvg")
+ public Double getDiskTimeWriteAvg() {
+ return diskTimeWriteAvg;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the average measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteAvg")
+ public void setDiskTimeWriteAvg(Double diskTimeWriteAvg) {
+ this.diskTimeWriteAvg = diskTimeWriteAvg;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteLast")
+ public Double getDiskTimeWriteLast() {
+ return diskTimeWriteLast;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the last measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteLast")
+ public void setDiskTimeWriteLast(Double diskTimeWriteLast) {
+ this.diskTimeWriteLast = diskTimeWriteLast;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMax")
+ public Double getDiskTimeWriteMax() {
+ return diskTimeWriteMax;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the maximum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMax")
+ public void setDiskTimeWriteMax(Double diskTimeWriteMax) {
+ this.diskTimeWriteMax = diskTimeWriteMax;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMin")
+ public Double getDiskTimeWriteMin() {
+ return diskTimeWriteMin;
+ }
+
+ /**
+ * milliseconds a write operation took to complete; provide the minimum measurement within the
+ * measurement interval
+ *
+ */
+ @JsonProperty("diskTimeWriteMin")
+ public void setDiskTimeWriteMin(Double diskTimeWriteMin) {
+ this.diskTimeWriteMin = diskTimeWriteMin;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(diskIdentifier).append(diskIoTimeAvg)
+ .append(diskIoTimeLast).append(diskIoTimeMax).append(diskIoTimeMin)
+ .append(diskMergedReadAvg).append(diskMergedReadLast).append(diskMergedReadMax)
+ .append(diskMergedReadMin).append(diskMergedWriteAvg).append(diskMergedWriteLast)
+ .append(diskMergedWriteMax).append(diskMergedWriteMin).append(diskOctetsReadAvg)
+ .append(diskOctetsReadLast).append(diskOctetsReadMax).append(diskOctetsReadMin)
+ .append(diskOctetsWriteAvg).append(diskOctetsWriteLast).append(diskOctetsWriteMax)
+ .append(diskOctetsWriteMin).append(diskOpsReadAvg).append(diskOpsReadLast)
+ .append(diskOpsReadMax).append(diskOpsReadMin).append(diskOpsWriteAvg)
+ .append(diskOpsWriteLast).append(diskOpsWriteMax).append(diskOpsWriteMin)
+ .append(diskPendingOperationsAvg).append(diskPendingOperationsLast)
+ .append(diskPendingOperationsMax).append(diskPendingOperationsMin)
+ .append(diskTimeReadAvg).append(diskTimeReadLast).append(diskTimeReadMax)
+ .append(diskTimeReadMin).append(diskTimeWriteAvg).append(diskTimeWriteLast)
+ .append(diskTimeWriteMax).append(diskTimeWriteMin).append(additionalProperties)
+ .toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummaries.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummaries.java new file mode 100644 index 0000000..645a382 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummaries.java @@ -0,0 +1,658 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * provides end of call voice quality metrics
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"adjacencyName", "endpointDescription", "endpointJitter",
+ "endpointRtpOctetsDiscarded", "endpointRtpOctetsReceived", "endpointRtpOctetsSent",
+ "endpointRtpPacketsDiscarded", "endpointRtpPacketsReceived", "endpointRtpPacketsSent",
+ "localJitter", "localRtpOctetsDiscarded", "localRtpOctetsReceived", "localRtpOctetsSent",
+ "localRtpPacketsDiscarded", "localRtpPacketsReceived", "localRtpPacketsSent", "mosCqe",
+ "packetsLost", "packetLossPercent", "rFactor", "roundTripDelay"})
+public class EndOfCallVqmSummaries {
+
+ /**
+ * adjacency name (Required)
+ *
+ */
+ @JsonProperty("adjacencyName")
+ @JsonPropertyDescription(" adjacency name")
+ private String adjacencyName;
+ /**
+ * Either Caller or Callee (Required)
+ *
+ */
+ @JsonProperty("endpointDescription")
+ @JsonPropertyDescription("Either Caller or Callee")
+ private EndOfCallVqmSummaries.EndpointDescription endpointDescription;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointJitter")
+ @JsonPropertyDescription("")
+ private Double endpointJitter;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsDiscarded")
+ @JsonPropertyDescription("")
+ private Double endpointRtpOctetsDiscarded;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsReceived")
+ @JsonPropertyDescription("")
+ private Double endpointRtpOctetsReceived;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsSent")
+ @JsonPropertyDescription("")
+ private Double endpointRtpOctetsSent;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsDiscarded")
+ @JsonPropertyDescription("")
+ private Double endpointRtpPacketsDiscarded;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsReceived")
+ @JsonPropertyDescription("")
+ private Double endpointRtpPacketsReceived;
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsSent")
+ @JsonPropertyDescription("")
+ private Double endpointRtpPacketsSent;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localJitter")
+ @JsonPropertyDescription("")
+ private Double localJitter;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsDiscarded")
+ @JsonPropertyDescription("")
+ private Double localRtpOctetsDiscarded;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsReceived")
+ @JsonPropertyDescription("")
+ private Double localRtpOctetsReceived;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsSent")
+ @JsonPropertyDescription("")
+ private Double localRtpOctetsSent;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsDiscarded")
+ @JsonPropertyDescription("")
+ private Double localRtpPacketsDiscarded;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsReceived")
+ @JsonPropertyDescription("")
+ private Double localRtpPacketsReceived;
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsSent")
+ @JsonPropertyDescription("")
+ private Double localRtpPacketsSent;
+ /**
+ * 1-5 1dp
+ *
+ */
+ @JsonProperty("mosCqe")
+ @JsonPropertyDescription("1-5 1dp")
+ private Double mosCqe;
+ /**
+ *
+ *
+ */
+ @JsonProperty("packetsLost")
+ @JsonPropertyDescription("")
+ private Double packetsLost;
+ /**
+ * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
+ * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
+ * Decimal (2 dp)
+ *
+ */
+ @JsonProperty("packetLossPercent")
+ @JsonPropertyDescription("Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP) and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee). Decimal (2 dp)")
+ private Double packetLossPercent;
+ /**
+ * 0-100
+ *
+ */
+ @JsonProperty("rFactor")
+ @JsonPropertyDescription("0-100")
+ private Double rFactor;
+ /**
+ * millisecs
+ *
+ */
+ @JsonProperty("roundTripDelay")
+ @JsonPropertyDescription("millisecs")
+ private Double roundTripDelay;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * adjacency name (Required)
+ *
+ */
+ @JsonProperty("adjacencyName")
+ public String getAdjacencyName() {
+ return adjacencyName;
+ }
+
+ /**
+ * adjacency name (Required)
+ *
+ */
+ @JsonProperty("adjacencyName")
+ public void setAdjacencyName(String adjacencyName) {
+ this.adjacencyName = adjacencyName;
+ }
+
+ /**
+ * Either Caller or Callee (Required)
+ *
+ */
+ @JsonProperty("endpointDescription")
+ public EndOfCallVqmSummaries.EndpointDescription getEndpointDescription() {
+ return endpointDescription;
+ }
+
+ /**
+ * Either Caller or Callee (Required)
+ *
+ */
+ @JsonProperty("endpointDescription")
+ public void setEndpointDescription(
+ EndOfCallVqmSummaries.EndpointDescription endpointDescription) {
+ this.endpointDescription = endpointDescription;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointJitter")
+ public Double getEndpointJitter() {
+ return endpointJitter;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointJitter")
+ public void setEndpointJitter(Double endpointJitter) {
+ this.endpointJitter = endpointJitter;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsDiscarded")
+ public Double getEndpointRtpOctetsDiscarded() {
+ return endpointRtpOctetsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsDiscarded")
+ public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) {
+ this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsReceived")
+ public Double getEndpointRtpOctetsReceived() {
+ return endpointRtpOctetsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsReceived")
+ public void setEndpointRtpOctetsReceived(Double endpointRtpOctetsReceived) {
+ this.endpointRtpOctetsReceived = endpointRtpOctetsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsSent")
+ public Double getEndpointRtpOctetsSent() {
+ return endpointRtpOctetsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpOctetsSent")
+ public void setEndpointRtpOctetsSent(Double endpointRtpOctetsSent) {
+ this.endpointRtpOctetsSent = endpointRtpOctetsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsDiscarded")
+ public Double getEndpointRtpPacketsDiscarded() {
+ return endpointRtpPacketsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsDiscarded")
+ public void setEndpointRtpPacketsDiscarded(Double endpointRtpPacketsDiscarded) {
+ this.endpointRtpPacketsDiscarded = endpointRtpPacketsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsReceived")
+ public Double getEndpointRtpPacketsReceived() {
+ return endpointRtpPacketsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsReceived")
+ public void setEndpointRtpPacketsReceived(Double endpointRtpPacketsReceived) {
+ this.endpointRtpPacketsReceived = endpointRtpPacketsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsSent")
+ public Double getEndpointRtpPacketsSent() {
+ return endpointRtpPacketsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("endpointRtpPacketsSent")
+ public void setEndpointRtpPacketsSent(Double endpointRtpPacketsSent) {
+ this.endpointRtpPacketsSent = endpointRtpPacketsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localJitter")
+ public Double getLocalJitter() {
+ return localJitter;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localJitter")
+ public void setLocalJitter(Double localJitter) {
+ this.localJitter = localJitter;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsDiscarded")
+ public Double getLocalRtpOctetsDiscarded() {
+ return localRtpOctetsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsDiscarded")
+ public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) {
+ this.localRtpOctetsDiscarded = localRtpOctetsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsReceived")
+ public Double getLocalRtpOctetsReceived() {
+ return localRtpOctetsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsReceived")
+ public void setLocalRtpOctetsReceived(Double localRtpOctetsReceived) {
+ this.localRtpOctetsReceived = localRtpOctetsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsSent")
+ public Double getLocalRtpOctetsSent() {
+ return localRtpOctetsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpOctetsSent")
+ public void setLocalRtpOctetsSent(Double localRtpOctetsSent) {
+ this.localRtpOctetsSent = localRtpOctetsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsDiscarded")
+ public Double getLocalRtpPacketsDiscarded() {
+ return localRtpPacketsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsDiscarded")
+ public void setLocalRtpPacketsDiscarded(Double localRtpPacketsDiscarded) {
+ this.localRtpPacketsDiscarded = localRtpPacketsDiscarded;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsReceived")
+ public Double getLocalRtpPacketsReceived() {
+ return localRtpPacketsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsReceived")
+ public void setLocalRtpPacketsReceived(Double localRtpPacketsReceived) {
+ this.localRtpPacketsReceived = localRtpPacketsReceived;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsSent")
+ public Double getLocalRtpPacketsSent() {
+ return localRtpPacketsSent;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("localRtpPacketsSent")
+ public void setLocalRtpPacketsSent(Double localRtpPacketsSent) {
+ this.localRtpPacketsSent = localRtpPacketsSent;
+ }
+
+ /**
+ * 1-5 1dp
+ *
+ */
+ @JsonProperty("mosCqe")
+ public Double getMosCqe() {
+ return mosCqe;
+ }
+
+ /**
+ * 1-5 1dp
+ *
+ */
+ @JsonProperty("mosCqe")
+ public void setMosCqe(Double mosCqe) {
+ this.mosCqe = mosCqe;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("packetsLost")
+ public Double getPacketsLost() {
+ return packetsLost;
+ }
+
+ /**
+ *
+ *
+ */
+ @JsonProperty("packetsLost")
+ public void setPacketsLost(Double packetsLost) {
+ this.packetsLost = packetsLost;
+ }
+
+ /**
+ * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
+ * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
+ * Decimal (2 dp)
+ *
+ */
+ @JsonProperty("packetLossPercent")
+ public Double getPacketLossPercent() {
+ return packetLossPercent;
+ }
+
+ /**
+ * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
+ * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
+ * Decimal (2 dp)
+ *
+ */
+ @JsonProperty("packetLossPercent")
+ public void setPacketLossPercent(Double packetLossPercent) {
+ this.packetLossPercent = packetLossPercent;
+ }
+
+ /**
+ * 0-100
+ *
+ */
+ @JsonProperty("rFactor")
+ public Double getRFactor() {
+ return rFactor;
+ }
+
+ /**
+ * 0-100
+ *
+ */
+ @JsonProperty("rFactor")
+ public void setRFactor(Double rFactor) {
+ this.rFactor = rFactor;
+ }
+
+ /**
+ * millisecs
+ *
+ */
+ @JsonProperty("roundTripDelay")
+ public Double getRoundTripDelay() {
+ return roundTripDelay;
+ }
+
+ /**
+ * millisecs
+ *
+ */
+ @JsonProperty("roundTripDelay")
+ public void setRoundTripDelay(Double roundTripDelay) {
+ this.roundTripDelay = roundTripDelay;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(adjacencyName).append(endpointDescription)
+ .append(endpointJitter).append(endpointRtpOctetsDiscarded)
+ .append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent)
+ .append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsReceived)
+ .append(endpointRtpPacketsSent).append(localJitter).append(localRtpOctetsDiscarded)
+ .append(localRtpOctetsReceived).append(localRtpOctetsSent)
+ .append(localRtpPacketsDiscarded).append(localRtpPacketsReceived)
+ .append(localRtpPacketsSent).append(mosCqe).append(packetsLost)
+ .append(packetLossPercent).append(rFactor).append(roundTripDelay)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum EndpointDescription {
+
+ CALLER("Caller"), CALLEE("Callee");
+ private final String value;
+ private final static Map<String, EndOfCallVqmSummaries.EndpointDescription> CONSTANTS =
+ new HashMap<String, EndOfCallVqmSummaries.EndpointDescription>();
+
+ static {
+ for (EndOfCallVqmSummaries.EndpointDescription c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private EndpointDescription(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static EndOfCallVqmSummaries.EndpointDescription fromValue(String value) {
+ EndOfCallVqmSummaries.EndpointDescription constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/Event.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/Event.java new file mode 100644 index 0000000..88db11e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/Event.java @@ -0,0 +1,354 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * the root level of the common event format
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"commonEventHeader", "faultFields", "heartbeatFields",
+ "measurementsForVfScalingFields", "mobileFlowFields", "otherFields", "sipSignalingFields",
+ "stateChangeFields", "syslogFields", "thresholdCrossingAlertFields", "voiceQualityFields"})
+public class Event {
+
+ /**
+ * fields common to all events (Required)
+ *
+ */
+ @JsonProperty("commonEventHeader")
+ @JsonPropertyDescription("fields common to all events")
+ private CommonEventHeader commonEventHeader;
+ /**
+ * fields specific to fault events
+ *
+ */
+ @JsonProperty("faultFields")
+ @JsonPropertyDescription("fields specific to fault events")
+ private FaultFields faultFields;
+ /**
+ * optional field block for fields specific to heartbeat events
+ *
+ */
+ @JsonProperty("heartbeatFields")
+ @JsonPropertyDescription("optional field block for fields specific to heartbeat events")
+ private HeartbeatFields heartbeatFields;
+ /**
+ * measurementsForVfScaling fields
+ *
+ */
+ @JsonProperty("measurementsForVfScalingFields")
+ @JsonPropertyDescription("measurementsForVfScaling fields")
+ private MeasurementsForVfScalingFields measurementsForVfScalingFields;
+ /**
+ * mobileFlow fields
+ *
+ */
+ @JsonProperty("mobileFlowFields")
+ @JsonPropertyDescription("mobileFlow fields")
+ private MobileFlowFields mobileFlowFields;
+ /**
+ * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration
+ *
+ */
+ @JsonProperty("otherFields")
+ @JsonPropertyDescription("fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration")
+ private OtherFields otherFields;
+ /**
+ * sip signaling fields
+ *
+ */
+ @JsonProperty("sipSignalingFields")
+ @JsonPropertyDescription("sip signaling fields")
+ private SipSignalingFields sipSignalingFields;
+ /**
+ * stateChange fields
+ *
+ */
+ @JsonProperty("stateChangeFields")
+ @JsonPropertyDescription("stateChange fields")
+ private StateChangeFields stateChangeFields;
+ /**
+ * sysLog fields
+ *
+ */
+ @JsonProperty("syslogFields")
+ @JsonPropertyDescription("sysLog fields")
+ private SyslogFields syslogFields;
+ /**
+ * fields specific to threshold crossing alert events
+ *
+ */
+ @JsonProperty("thresholdCrossingAlertFields")
+ @JsonPropertyDescription("fields specific to threshold crossing alert events")
+ private ThresholdCrossingAlertFields thresholdCrossingAlertFields;
+ /**
+ * provides statistics related to customer facing voice products
+ *
+ */
+ @JsonProperty("voiceQualityFields")
+ @JsonPropertyDescription("provides statistics related to customer facing voice products")
+ private VoiceQualityFields voiceQualityFields;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * fields common to all events (Required)
+ *
+ */
+ @JsonProperty("commonEventHeader")
+ public CommonEventHeader getCommonEventHeader() {
+ return commonEventHeader;
+ }
+
+ /**
+ * fields common to all events (Required)
+ *
+ */
+ @JsonProperty("commonEventHeader")
+ public void setCommonEventHeader(CommonEventHeader commonEventHeader) {
+ this.commonEventHeader = commonEventHeader;
+ }
+
+ /**
+ * fields specific to fault events
+ *
+ */
+ @JsonProperty("faultFields")
+ public FaultFields getFaultFields() {
+ return faultFields;
+ }
+
+ /**
+ * fields specific to fault events
+ *
+ */
+ @JsonProperty("faultFields")
+ public void setFaultFields(FaultFields faultFields) {
+ this.faultFields = faultFields;
+ }
+
+ /**
+ * optional field block for fields specific to heartbeat events
+ *
+ */
+ @JsonProperty("heartbeatFields")
+ public HeartbeatFields getHeartbeatFields() {
+ return heartbeatFields;
+ }
+
+ /**
+ * optional field block for fields specific to heartbeat events
+ *
+ */
+ @JsonProperty("heartbeatFields")
+ public void setHeartbeatFields(HeartbeatFields heartbeatFields) {
+ this.heartbeatFields = heartbeatFields;
+ }
+
+ /**
+ * measurementsForVfScaling fields
+ *
+ */
+ @JsonProperty("measurementsForVfScalingFields")
+ public MeasurementsForVfScalingFields getMeasurementsForVfScalingFields() {
+ return measurementsForVfScalingFields;
+ }
+
+ /**
+ * measurementsForVfScaling fields
+ *
+ */
+ @JsonProperty("measurementsForVfScalingFields")
+ public void setMeasurementsForVfScalingFields(
+ MeasurementsForVfScalingFields measurementsForVfScalingFields) {
+ this.measurementsForVfScalingFields = measurementsForVfScalingFields;
+ }
+
+ /**
+ * mobileFlow fields
+ *
+ */
+ @JsonProperty("mobileFlowFields")
+ public MobileFlowFields getMobileFlowFields() {
+ return mobileFlowFields;
+ }
+
+ /**
+ * mobileFlow fields
+ *
+ */
+ @JsonProperty("mobileFlowFields")
+ public void setMobileFlowFields(MobileFlowFields mobileFlowFields) {
+ this.mobileFlowFields = mobileFlowFields;
+ }
+
+ /**
+ * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration
+ *
+ */
+ @JsonProperty("otherFields")
+ public OtherFields getOtherFields() {
+ return otherFields;
+ }
+
+ /**
+ * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration
+ *
+ */
+ @JsonProperty("otherFields")
+ public void setOtherFields(OtherFields otherFields) {
+ this.otherFields = otherFields;
+ }
+
+ /**
+ * sip signaling fields
+ *
+ */
+ @JsonProperty("sipSignalingFields")
+ public SipSignalingFields getSipSignalingFields() {
+ return sipSignalingFields;
+ }
+
+ /**
+ * sip signaling fields
+ *
+ */
+ @JsonProperty("sipSignalingFields")
+ public void setSipSignalingFields(SipSignalingFields sipSignalingFields) {
+ this.sipSignalingFields = sipSignalingFields;
+ }
+
+ /**
+ * stateChange fields
+ *
+ */
+ @JsonProperty("stateChangeFields")
+ public StateChangeFields getStateChangeFields() {
+ return stateChangeFields;
+ }
+
+ /**
+ * stateChange fields
+ *
+ */
+ @JsonProperty("stateChangeFields")
+ public void setStateChangeFields(StateChangeFields stateChangeFields) {
+ this.stateChangeFields = stateChangeFields;
+ }
+
+ /**
+ * sysLog fields
+ *
+ */
+ @JsonProperty("syslogFields")
+ public SyslogFields getSyslogFields() {
+ return syslogFields;
+ }
+
+ /**
+ * sysLog fields
+ *
+ */
+ @JsonProperty("syslogFields")
+ public void setSyslogFields(SyslogFields syslogFields) {
+ this.syslogFields = syslogFields;
+ }
+
+ /**
+ * fields specific to threshold crossing alert events
+ *
+ */
+ @JsonProperty("thresholdCrossingAlertFields")
+ public ThresholdCrossingAlertFields getThresholdCrossingAlertFields() {
+ return thresholdCrossingAlertFields;
+ }
+
+ /**
+ * fields specific to threshold crossing alert events
+ *
+ */
+ @JsonProperty("thresholdCrossingAlertFields")
+ public void setThresholdCrossingAlertFields(
+ ThresholdCrossingAlertFields thresholdCrossingAlertFields) {
+ this.thresholdCrossingAlertFields = thresholdCrossingAlertFields;
+ }
+
+ /**
+ * provides statistics related to customer facing voice products
+ *
+ */
+ @JsonProperty("voiceQualityFields")
+ public VoiceQualityFields getVoiceQualityFields() {
+ return voiceQualityFields;
+ }
+
+ /**
+ * provides statistics related to customer facing voice products
+ *
+ */
+ @JsonProperty("voiceQualityFields")
+ public void setVoiceQualityFields(VoiceQualityFields voiceQualityFields) {
+ this.voiceQualityFields = voiceQualityFields;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(commonEventHeader).append(faultFields)
+ .append(heartbeatFields).append(measurementsForVfScalingFields)
+ .append(mobileFlowFields).append(otherFields).append(sipSignalingFields)
+ .append(stateChangeFields).append(syslogFields).append(thresholdCrossingAlertFields)
+ .append(voiceQualityFields).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FaultFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FaultFields.java new file mode 100644 index 0000000..f4675f9 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FaultFields.java @@ -0,0 +1,390 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * fields specific to fault events
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"alarmAdditionalInformation", "alarmCondition", "alarmInterfaceA",
+ "eventCategory", "eventSeverity", "eventSourceType", "faultFieldsVersion",
+ "specificProblem", "vfStatus"})
+public class FaultFields {
+
+ /**
+ * additional alarm information
+ *
+ */
+ @JsonProperty("alarmAdditionalInformation")
+ @JsonPropertyDescription("additional alarm information")
+ private List<AlarmAdditionalInformation> alarmAdditionalInformation =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * alarm condition reported by the device (Required)
+ *
+ */
+ @JsonProperty("alarmCondition")
+ @JsonPropertyDescription("alarm condition reported by the device")
+ private String alarmCondition;
+ /**
+ * card, port, channel or interface name of the device generating the alarm
+ *
+ */
+ @JsonProperty("alarmInterfaceA")
+ @JsonPropertyDescription("card, port, channel or interface name of the device generating the alarm")
+ private String alarmInterfaceA;
+ /**
+ * Event category, for example: license, link, routing, security, signaling
+ *
+ */
+ @JsonProperty("eventCategory")
+ @JsonPropertyDescription("Event category, for example: license, link, routing, security, signaling")
+ private String eventCategory;
+ /**
+ * event severity (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ @JsonPropertyDescription("event severity")
+ private FaultFields.EventSeverity eventSeverity;
+ /**
+ * type of event source; examples: card, host, other, port, portThreshold, router,
+ * slotThreshold, switch, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ @JsonPropertyDescription("type of event source; examples: card, host, other, port, portThreshold, router, slotThreshold, switch, virtualMachine, virtualNetworkFunction")
+ private String eventSourceType;
+ /**
+ * version of the faultFields block (Required)
+ *
+ */
+ @JsonProperty("faultFieldsVersion")
+ @JsonPropertyDescription("version of the faultFields block")
+ private Double faultFieldsVersion;
+ /**
+ * short description of the alarm or problem (Required)
+ *
+ */
+ @JsonProperty("specificProblem")
+ @JsonPropertyDescription("short description of the alarm or problem")
+ private String specificProblem;
+ /**
+ * virtual function status enumeration (Required)
+ *
+ */
+ @JsonProperty("vfStatus")
+ @JsonPropertyDescription("virtual function status enumeration")
+ private FaultFields.VfStatus vfStatus;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional alarm information
+ *
+ */
+ @JsonProperty("alarmAdditionalInformation")
+ public List<AlarmAdditionalInformation> getAlarmAdditionalInformation() {
+ return alarmAdditionalInformation;
+ }
+
+ /**
+ * additional alarm information
+ *
+ */
+ @JsonProperty("alarmAdditionalInformation")
+ public void setAlarmAdditionalInformation(
+ List<AlarmAdditionalInformation> alarmAdditionalInformation) {
+ this.alarmAdditionalInformation = alarmAdditionalInformation;
+ }
+
+ /**
+ * alarm condition reported by the device (Required)
+ *
+ */
+ @JsonProperty("alarmCondition")
+ public String getAlarmCondition() {
+ return alarmCondition;
+ }
+
+ /**
+ * alarm condition reported by the device (Required)
+ *
+ */
+ @JsonProperty("alarmCondition")
+ public void setAlarmCondition(String alarmCondition) {
+ this.alarmCondition = alarmCondition;
+ }
+
+ /**
+ * card, port, channel or interface name of the device generating the alarm
+ *
+ */
+ @JsonProperty("alarmInterfaceA")
+ public String getAlarmInterfaceA() {
+ return alarmInterfaceA;
+ }
+
+ /**
+ * card, port, channel or interface name of the device generating the alarm
+ *
+ */
+ @JsonProperty("alarmInterfaceA")
+ public void setAlarmInterfaceA(String alarmInterfaceA) {
+ this.alarmInterfaceA = alarmInterfaceA;
+ }
+
+ /**
+ * Event category, for example: license, link, routing, security, signaling
+ *
+ */
+ @JsonProperty("eventCategory")
+ public String getEventCategory() {
+ return eventCategory;
+ }
+
+ /**
+ * Event category, for example: license, link, routing, security, signaling
+ *
+ */
+ @JsonProperty("eventCategory")
+ public void setEventCategory(String eventCategory) {
+ this.eventCategory = eventCategory;
+ }
+
+ /**
+ * event severity (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ public FaultFields.EventSeverity getEventSeverity() {
+ return eventSeverity;
+ }
+
+ /**
+ * event severity (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ public void setEventSeverity(FaultFields.EventSeverity eventSeverity) {
+ this.eventSeverity = eventSeverity;
+ }
+
+ /**
+ * type of event source; examples: card, host, other, port, portThreshold, router,
+ * slotThreshold, switch, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ public String getEventSourceType() {
+ return eventSourceType;
+ }
+
+ /**
+ * type of event source; examples: card, host, other, port, portThreshold, router,
+ * slotThreshold, switch, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ public void setEventSourceType(String eventSourceType) {
+ this.eventSourceType = eventSourceType;
+ }
+
+ /**
+ * version of the faultFields block (Required)
+ *
+ */
+ @JsonProperty("faultFieldsVersion")
+ public Double getFaultFieldsVersion() {
+ return faultFieldsVersion;
+ }
+
+ /**
+ * version of the faultFields block (Required)
+ *
+ */
+ @JsonProperty("faultFieldsVersion")
+ public void setFaultFieldsVersion(Double faultFieldsVersion) {
+ this.faultFieldsVersion = faultFieldsVersion;
+ }
+
+ /**
+ * short description of the alarm or problem (Required)
+ *
+ */
+ @JsonProperty("specificProblem")
+ public String getSpecificProblem() {
+ return specificProblem;
+ }
+
+ /**
+ * short description of the alarm or problem (Required)
+ *
+ */
+ @JsonProperty("specificProblem")
+ public void setSpecificProblem(String specificProblem) {
+ this.specificProblem = specificProblem;
+ }
+
+ /**
+ * virtual function status enumeration (Required)
+ *
+ */
+ @JsonProperty("vfStatus")
+ public FaultFields.VfStatus getVfStatus() {
+ return vfStatus;
+ }
+
+ /**
+ * virtual function status enumeration (Required)
+ *
+ */
+ @JsonProperty("vfStatus")
+ public void setVfStatus(FaultFields.VfStatus vfStatus) {
+ this.vfStatus = vfStatus;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(alarmAdditionalInformation).append(alarmCondition)
+ .append(alarmInterfaceA).append(eventCategory).append(eventSeverity)
+ .append(eventSourceType).append(faultFieldsVersion).append(specificProblem)
+ .append(vfStatus).append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum EventSeverity {
+
+ CRITICAL("CRITICAL"), MAJOR("MAJOR"), MINOR("MINOR"), WARNING("WARNING"), NORMAL("NORMAL");
+ private final String value;
+ private final static Map<String, FaultFields.EventSeverity> CONSTANTS =
+ new HashMap<String, FaultFields.EventSeverity>();
+
+ static {
+ for (FaultFields.EventSeverity c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private EventSeverity(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static FaultFields.EventSeverity fromValue(String value) {
+ FaultFields.EventSeverity constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+ public enum VfStatus {
+
+ ACTIVE("Active"), IDLE("Idle"), PREPARING_TO_TERMINATE(
+ "Preparing to terminate"), READY_TO_TERMINATE(
+ "Ready to terminate"), REQUESTING_TERMINATION("Requesting termination");
+ private final String value;
+ private final static Map<String, FaultFields.VfStatus> CONSTANTS =
+ new HashMap<String, FaultFields.VfStatus>();
+
+ static {
+ for (FaultFields.VfStatus c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private VfStatus(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static FaultFields.VfStatus fromValue(String value) {
+ FaultFields.VfStatus constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArray.java new file mode 100644 index 0000000..d755b60 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArray.java @@ -0,0 +1,125 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * number of times an identified feature was used over the measurementInterval
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"featureIdentifier", "featureUtilization"})
+public class FeatureUsageArray {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureIdentifier")
+ private String featureIdentifier;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureUtilization")
+ private Integer featureUtilization;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureIdentifier")
+ public String getFeatureIdentifier() {
+ return featureIdentifier;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureIdentifier")
+ public void setFeatureIdentifier(String featureIdentifier) {
+ this.featureIdentifier = featureIdentifier;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureUtilization")
+ public Integer getFeatureUtilization() {
+ return featureUtilization;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("featureUtilization")
+ public void setFeatureUtilization(Integer featureUtilization) {
+ this.featureUtilization = featureUtilization;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(featureIdentifier).append(featureUtilization)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArray.java new file mode 100644 index 0000000..9c6673e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArray.java @@ -0,0 +1,261 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * disk usage of an identified virtual machine in gigabytes and/or gigabytes per second
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"blockConfigured", "blockIops", "blockUsed", "ephemeralConfigured",
+ "ephemeralIops", "ephemeralUsed", "filesystemName"})
+public class FilesystemUsageArray {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockConfigured")
+ private Double blockConfigured;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockIops")
+ private Double blockIops;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockUsed")
+ private Double blockUsed;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralConfigured")
+ private Double ephemeralConfigured;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralIops")
+ private Double ephemeralIops;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralUsed")
+ private Double ephemeralUsed;
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("filesystemName")
+ private String filesystemName;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockConfigured")
+ public Double getBlockConfigured() {
+ return blockConfigured;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockConfigured")
+ public void setBlockConfigured(Double blockConfigured) {
+ this.blockConfigured = blockConfigured;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockIops")
+ public Double getBlockIops() {
+ return blockIops;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockIops")
+ public void setBlockIops(Double blockIops) {
+ this.blockIops = blockIops;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockUsed")
+ public Double getBlockUsed() {
+ return blockUsed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("blockUsed")
+ public void setBlockUsed(Double blockUsed) {
+ this.blockUsed = blockUsed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralConfigured")
+ public Double getEphemeralConfigured() {
+ return ephemeralConfigured;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralConfigured")
+ public void setEphemeralConfigured(Double ephemeralConfigured) {
+ this.ephemeralConfigured = ephemeralConfigured;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralIops")
+ public Double getEphemeralIops() {
+ return ephemeralIops;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralIops")
+ public void setEphemeralIops(Double ephemeralIops) {
+ this.ephemeralIops = ephemeralIops;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralUsed")
+ public Double getEphemeralUsed() {
+ return ephemeralUsed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("ephemeralUsed")
+ public void setEphemeralUsed(Double ephemeralUsed) {
+ this.ephemeralUsed = ephemeralUsed;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("filesystemName")
+ public String getFilesystemName() {
+ return filesystemName;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("filesystemName")
+ public void setFilesystemName(String filesystemName) {
+ this.filesystemName = filesystemName;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(blockConfigured).append(blockIops).append(blockUsed)
+ .append(ephemeralConfigured).append(ephemeralIops).append(ephemeralUsed)
+ .append(filesystemName).append(additionalProperties).toHashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetrics.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetrics.java new file mode 100644 index 0000000..f32cdb1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetrics.java @@ -0,0 +1,1409 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * Mobility GTP Protocol per flow metrics
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"avgBitErrorRate", "avgPacketDelayVariation", "avgPacketLatency",
+ "avgReceiveThroughput", "avgTransmitThroughput", "durConnectionFailedStatus",
+ "durTunnelFailedStatus", "flowActivatedBy", "flowActivationEpoch", "flowActivationMicrosec",
+ "flowActivationTime", "flowDeactivatedBy", "flowDeactivationEpoch",
+ "flowDeactivationMicrosec", "flowDeactivationTime", "flowStatus", "gtpConnectionStatus",
+ "gtpTunnelStatus", "ipTosCountList", "ipTosList", "largePacketRtt", "largePacketThreshold",
+ "maxPacketDelayVariation", "maxReceiveBitRate", "maxTransmitBitRate",
+ "mobileQciCosCountList", "mobileQciCosList", "numActivationFailures", "numBitErrors",
+ "numBytesReceived", "numBytesTransmitted", "numDroppedPackets", "numGtpEchoFailures",
+ "numGtpTunnelErrors", "numHttpErrors", "numL7BytesReceived", "numL7BytesTransmitted",
+ "numLostPackets", "numOutOfOrderPackets", "numPacketErrors",
+ "numPacketsReceivedExclRetrans", "numPacketsReceivedInclRetrans",
+ "numPacketsTransmittedInclRetrans", "numRetries", "numTimeouts",
+ "numTunneledL7BytesReceived", "roundTripTime", "tcpFlagCountList", "tcpFlagList",
+ "timeToFirstByte"})
+public class GtpPerFlowMetrics {
+
+ /**
+ * average bit error rate (Required)
+ *
+ */
+ @JsonProperty("avgBitErrorRate")
+ @JsonPropertyDescription("average bit error rate")
+ private Double avgBitErrorRate;
+ /**
+ * Average packet delay variation or jitter in milliseconds for received packets: Average
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("avgPacketDelayVariation")
+ @JsonPropertyDescription("Average packet delay variation or jitter in milliseconds for received packets: Average difference between the packet timestamp and time received for all pairs of consecutive packets")
+ private Double avgPacketDelayVariation;
+ /**
+ * average delivery latency (Required)
+ *
+ */
+ @JsonProperty("avgPacketLatency")
+ @JsonPropertyDescription("average delivery latency")
+ private Double avgPacketLatency;
+ /**
+ * average receive throughput (Required)
+ *
+ */
+ @JsonProperty("avgReceiveThroughput")
+ @JsonPropertyDescription("average receive throughput")
+ private Double avgReceiveThroughput;
+ /**
+ * average transmit throughput (Required)
+ *
+ */
+ @JsonProperty("avgTransmitThroughput")
+ @JsonPropertyDescription("average transmit throughput")
+ private Double avgTransmitThroughput;
+ /**
+ * duration of failed state in milliseconds, computed as the cumulative time between a failed
+ * echo request and the next following successful error request, over this reporting interval
+ *
+ */
+ @JsonProperty("durConnectionFailedStatus")
+ @JsonPropertyDescription("duration of failed state in milliseconds, computed as the cumulative time between a failed echo request and the next following successful error request, over this reporting interval")
+ private Double durConnectionFailedStatus;
+ /**
+ * Duration of errored state, computed as the cumulative time between a tunnel error indicator
+ * and the next following non-errored indicator, over this reporting interval
+ *
+ */
+ @JsonProperty("durTunnelFailedStatus")
+ @JsonPropertyDescription("Duration of errored state, computed as the cumulative time between a tunnel error indicator and the next following non-errored indicator, over this reporting interval")
+ private Double durTunnelFailedStatus;
+ /**
+ * Endpoint activating the flow
+ *
+ */
+ @JsonProperty("flowActivatedBy")
+ @JsonPropertyDescription("Endpoint activating the flow")
+ private String flowActivatedBy;
+ /**
+ * Time the connection is activated in the flow (connection) being reported on, or transmission
+ * time of the first packet if activation time is not available (Required)
+ *
+ */
+ @JsonProperty("flowActivationEpoch")
+ @JsonPropertyDescription("Time the connection is activated in the flow (connection) being reported on, or transmission time of the first packet if activation time is not available")
+ private Double flowActivationEpoch;
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowActivationMicrosec")
+ @JsonPropertyDescription("Integer microseconds for the start of the flow connection")
+ private Double flowActivationMicrosec;
+ /**
+ * time the connection is activated in the flow being reported on, or transmission time of the
+ * first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800
+ *
+ */
+ @JsonProperty("flowActivationTime")
+ @JsonPropertyDescription("time the connection is activated in the flow being reported on, or transmission time of the first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800")
+ private String flowActivationTime;
+ /**
+ * Endpoint deactivating the flow
+ *
+ */
+ @JsonProperty("flowDeactivatedBy")
+ @JsonPropertyDescription("Endpoint deactivating the flow")
+ private String flowDeactivatedBy;
+ /**
+ * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationEpoch")
+ @JsonPropertyDescription("Time for the start of the flow connection, in integer UTC epoch time aka UNIX time")
+ private Double flowDeactivationEpoch;
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationMicrosec")
+ @JsonPropertyDescription("Integer microseconds for the start of the flow connection")
+ private Double flowDeactivationMicrosec;
+ /**
+ * Transmission time of the first packet in the flow connection being reported on; with RFC 2822
+ * compliant format: Sat, 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationTime")
+ @JsonPropertyDescription("Transmission time of the first packet in the flow connection being reported on; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800")
+ private String flowDeactivationTime;
+ /**
+ * connection status at reporting time as a working / inactive / failed indicator value
+ * (Required)
+ *
+ */
+ @JsonProperty("flowStatus")
+ @JsonPropertyDescription("connection status at reporting time as a working / inactive / failed indicator value")
+ private String flowStatus;
+ /**
+ * Current connection state at reporting time
+ *
+ */
+ @JsonProperty("gtpConnectionStatus")
+ @JsonPropertyDescription("Current connection state at reporting time")
+ private String gtpConnectionStatus;
+ /**
+ * Current tunnel state at reporting time
+ *
+ */
+ @JsonProperty("gtpTunnelStatus")
+ @JsonPropertyDescription("Current tunnel state at reporting time")
+ private String gtpTunnelStatus;
+ /**
+ * array of key: value pairs where the keys are drawn from the IP Type-of-Service identifiers
+ * which range from '0' to '255', and the values are the count of packets that had those ToS
+ * identifiers in the flow
+ *
+ */
+ @JsonProperty("ipTosCountList")
+ @JsonPropertyDescription("array of key: value pairs where the keys are drawn from the IP Type-of-Service identifiers which range from '0' to '255', and the values are the count of packets that had those ToS identifiers in the flow")
+ private List<List<Object>> ipTosCountList = new ArrayList<List<Object>>();
+ /**
+ * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to
+ * '255'
+ *
+ */
+ @JsonProperty("ipTosList")
+ @JsonPropertyDescription("Array of unique IP Type-of-Service values observed in the flow where values range from '0' to '255'")
+ private List<String> ipTosList = new ArrayList<String>();
+ /**
+ * large packet round trip time
+ *
+ */
+ @JsonProperty("largePacketRtt")
+ @JsonPropertyDescription("large packet round trip time")
+ private Double largePacketRtt;
+ /**
+ * large packet threshold being applied
+ *
+ */
+ @JsonProperty("largePacketThreshold")
+ @JsonPropertyDescription("large packet threshold being applied")
+ private Double largePacketThreshold;
+ /**
+ * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("maxPacketDelayVariation")
+ @JsonPropertyDescription("Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the difference between the packet timestamp and time received for all pairs of consecutive packets")
+ private Double maxPacketDelayVariation;
+ /**
+ * maximum receive bit rate
+ *
+ */
+ @JsonProperty("maxReceiveBitRate")
+ @JsonPropertyDescription("maximum receive bit rate")
+ private Double maxReceiveBitRate;
+ /**
+ * maximum transmit bit rate
+ *
+ */
+ @JsonProperty("maxTransmitBitRate")
+ @JsonPropertyDescription("maximum transmit bit rate")
+ private Double maxTransmitBitRate;
+ /**
+ * array of key: value pairs where the keys are drawn from LTE QCI or UMTS class of service
+ * strings, and the values are the count of packets that had those strings in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosCountList")
+ @JsonPropertyDescription("array of key: value pairs where the keys are drawn from LTE QCI or UMTS class of service strings, and the values are the count of packets that had those strings in the flow")
+ private List<List<Object>> mobileQciCosCountList = new ArrayList<List<Object>>();
+ /**
+ * Array of unique LTE QCI or UMTS class-of-service values observed in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosList")
+ @JsonPropertyDescription("Array of unique LTE QCI or UMTS class-of-service values observed in the flow")
+ private List<String> mobileQciCosList = new ArrayList<String>();
+ /**
+ * Number of failed activation requests, as observed by the reporting node (Required)
+ *
+ */
+ @JsonProperty("numActivationFailures")
+ @JsonPropertyDescription("Number of failed activation requests, as observed by the reporting node")
+ private Double numActivationFailures;
+ /**
+ * number of errored bits (Required)
+ *
+ */
+ @JsonProperty("numBitErrors")
+ @JsonPropertyDescription("number of errored bits")
+ private Double numBitErrors;
+ /**
+ * number of bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesReceived")
+ @JsonPropertyDescription("number of bytes received, including retransmissions")
+ private Double numBytesReceived;
+ /**
+ * number of bytes transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesTransmitted")
+ @JsonPropertyDescription("number of bytes transmitted, including retransmissions")
+ private Double numBytesTransmitted;
+ /**
+ * number of received packets dropped due to errors per virtual interface (Required)
+ *
+ */
+ @JsonProperty("numDroppedPackets")
+ @JsonPropertyDescription("number of received packets dropped due to errors per virtual interface")
+ private Double numDroppedPackets;
+ /**
+ * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec
+ * 7.2.1 and 3GPP TS 29.060 sec. 11.2
+ *
+ */
+ @JsonProperty("numGtpEchoFailures")
+ @JsonPropertyDescription("Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec 7.2.1 and 3GPP TS 29.060 sec. 11.2")
+ private Double numGtpEchoFailures;
+ /**
+ * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and
+ * 3GPP TS 29.060 sec. 11.1
+ *
+ */
+ @JsonProperty("numGtpTunnelErrors")
+ @JsonPropertyDescription("Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and 3GPP TS 29.060 sec. 11.1")
+ private Double numGtpTunnelErrors;
+ /**
+ * Http error count
+ *
+ */
+ @JsonProperty("numHttpErrors")
+ @JsonPropertyDescription("Http error count")
+ private Double numHttpErrors;
+ /**
+ * number of tunneled layer 7 bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesReceived")
+ @JsonPropertyDescription("number of tunneled layer 7 bytes received, including retransmissions")
+ private Double numL7BytesReceived;
+ /**
+ * number of tunneled layer 7 bytes transmitted, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesTransmitted")
+ @JsonPropertyDescription("number of tunneled layer 7 bytes transmitted, excluding retransmissions")
+ private Double numL7BytesTransmitted;
+ /**
+ * number of lost packets (Required)
+ *
+ */
+ @JsonProperty("numLostPackets")
+ @JsonPropertyDescription("number of lost packets")
+ private Double numLostPackets;
+ /**
+ * number of out-of-order packets (Required)
+ *
+ */
+ @JsonProperty("numOutOfOrderPackets")
+ @JsonPropertyDescription("number of out-of-order packets")
+ private Double numOutOfOrderPackets;
+ /**
+ * number of errored packets (Required)
+ *
+ */
+ @JsonProperty("numPacketErrors")
+ @JsonPropertyDescription("number of errored packets")
+ private Double numPacketErrors;
+ /**
+ * number of packets received, excluding retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedExclRetrans")
+ @JsonPropertyDescription("number of packets received, excluding retransmission")
+ private Double numPacketsReceivedExclRetrans;
+ /**
+ * number of packets received, including retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedInclRetrans")
+ @JsonPropertyDescription("number of packets received, including retransmission")
+ private Double numPacketsReceivedInclRetrans;
+ /**
+ * number of packets transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numPacketsTransmittedInclRetrans")
+ @JsonPropertyDescription("number of packets transmitted, including retransmissions")
+ private Double numPacketsTransmittedInclRetrans;
+ /**
+ * number of packet retries (Required)
+ *
+ */
+ @JsonProperty("numRetries")
+ @JsonPropertyDescription("number of packet retries")
+ private Double numRetries;
+ /**
+ * number of packet timeouts (Required)
+ *
+ */
+ @JsonProperty("numTimeouts")
+ @JsonPropertyDescription("number of packet timeouts")
+ private Double numTimeouts;
+ /**
+ * number of tunneled layer 7 bytes received, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numTunneledL7BytesReceived")
+ @JsonPropertyDescription("number of tunneled layer 7 bytes received, excluding retransmissions")
+ private Double numTunneledL7BytesReceived;
+ /**
+ * round trip time (Required)
+ *
+ */
+ @JsonProperty("roundTripTime")
+ @JsonPropertyDescription("round trip time")
+ private Double roundTripTime;
+ /**
+ * array of key: value pairs where the keys are drawn from TCP Flags and the values are the
+ * count of packets that had that TCP Flag in the flow
+ *
+ */
+ @JsonProperty("tcpFlagCountList")
+ @JsonPropertyDescription("array of key: value pairs where the keys are drawn from TCP Flags and the values are the count of packets that had that TCP Flag in the flow")
+ private List<List<Object>> tcpFlagCountList = new ArrayList<List<Object>>();
+ /**
+ * Array of unique TCP Flags observed in the flow
+ *
+ */
+ @JsonProperty("tcpFlagList")
+ @JsonPropertyDescription("Array of unique TCP Flags observed in the flow")
+ private List<String> tcpFlagList = new ArrayList<String>();
+ /**
+ * Time in milliseconds between the connection activation and first byte received (Required)
+ *
+ */
+ @JsonProperty("timeToFirstByte")
+ @JsonPropertyDescription("Time in milliseconds between the connection activation and first byte received")
+ private Double timeToFirstByte;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * average bit error rate (Required)
+ *
+ */
+ @JsonProperty("avgBitErrorRate")
+ public Double getAvgBitErrorRate() {
+ return avgBitErrorRate;
+ }
+
+ /**
+ * average bit error rate (Required)
+ *
+ */
+ @JsonProperty("avgBitErrorRate")
+ public void setAvgBitErrorRate(Double avgBitErrorRate) {
+ this.avgBitErrorRate = avgBitErrorRate;
+ }
+
+ /**
+ * Average packet delay variation or jitter in milliseconds for received packets: Average
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("avgPacketDelayVariation")
+ public Double getAvgPacketDelayVariation() {
+ return avgPacketDelayVariation;
+ }
+
+ /**
+ * Average packet delay variation or jitter in milliseconds for received packets: Average
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("avgPacketDelayVariation")
+ public void setAvgPacketDelayVariation(Double avgPacketDelayVariation) {
+ this.avgPacketDelayVariation = avgPacketDelayVariation;
+ }
+
+ /**
+ * average delivery latency (Required)
+ *
+ */
+ @JsonProperty("avgPacketLatency")
+ public Double getAvgPacketLatency() {
+ return avgPacketLatency;
+ }
+
+ /**
+ * average delivery latency (Required)
+ *
+ */
+ @JsonProperty("avgPacketLatency")
+ public void setAvgPacketLatency(Double avgPacketLatency) {
+ this.avgPacketLatency = avgPacketLatency;
+ }
+
+ /**
+ * average receive throughput (Required)
+ *
+ */
+ @JsonProperty("avgReceiveThroughput")
+ public Double getAvgReceiveThroughput() {
+ return avgReceiveThroughput;
+ }
+
+ /**
+ * average receive throughput (Required)
+ *
+ */
+ @JsonProperty("avgReceiveThroughput")
+ public void setAvgReceiveThroughput(Double avgReceiveThroughput) {
+ this.avgReceiveThroughput = avgReceiveThroughput;
+ }
+
+ /**
+ * average transmit throughput (Required)
+ *
+ */
+ @JsonProperty("avgTransmitThroughput")
+ public Double getAvgTransmitThroughput() {
+ return avgTransmitThroughput;
+ }
+
+ /**
+ * average transmit throughput (Required)
+ *
+ */
+ @JsonProperty("avgTransmitThroughput")
+ public void setAvgTransmitThroughput(Double avgTransmitThroughput) {
+ this.avgTransmitThroughput = avgTransmitThroughput;
+ }
+
+ /**
+ * duration of failed state in milliseconds, computed as the cumulative time between a failed
+ * echo request and the next following successful error request, over this reporting interval
+ *
+ */
+ @JsonProperty("durConnectionFailedStatus")
+ public Double getDurConnectionFailedStatus() {
+ return durConnectionFailedStatus;
+ }
+
+ /**
+ * duration of failed state in milliseconds, computed as the cumulative time between a failed
+ * echo request and the next following successful error request, over this reporting interval
+ *
+ */
+ @JsonProperty("durConnectionFailedStatus")
+ public void setDurConnectionFailedStatus(Double durConnectionFailedStatus) {
+ this.durConnectionFailedStatus = durConnectionFailedStatus;
+ }
+
+ /**
+ * Duration of errored state, computed as the cumulative time between a tunnel error indicator
+ * and the next following non-errored indicator, over this reporting interval
+ *
+ */
+ @JsonProperty("durTunnelFailedStatus")
+ public Double getDurTunnelFailedStatus() {
+ return durTunnelFailedStatus;
+ }
+
+ /**
+ * Duration of errored state, computed as the cumulative time between a tunnel error indicator
+ * and the next following non-errored indicator, over this reporting interval
+ *
+ */
+ @JsonProperty("durTunnelFailedStatus")
+ public void setDurTunnelFailedStatus(Double durTunnelFailedStatus) {
+ this.durTunnelFailedStatus = durTunnelFailedStatus;
+ }
+
+ /**
+ * Endpoint activating the flow
+ *
+ */
+ @JsonProperty("flowActivatedBy")
+ public String getFlowActivatedBy() {
+ return flowActivatedBy;
+ }
+
+ /**
+ * Endpoint activating the flow
+ *
+ */
+ @JsonProperty("flowActivatedBy")
+ public void setFlowActivatedBy(String flowActivatedBy) {
+ this.flowActivatedBy = flowActivatedBy;
+ }
+
+ /**
+ * Time the connection is activated in the flow (connection) being reported on, or transmission
+ * time of the first packet if activation time is not available (Required)
+ *
+ */
+ @JsonProperty("flowActivationEpoch")
+ public Double getFlowActivationEpoch() {
+ return flowActivationEpoch;
+ }
+
+ /**
+ * Time the connection is activated in the flow (connection) being reported on, or transmission
+ * time of the first packet if activation time is not available (Required)
+ *
+ */
+ @JsonProperty("flowActivationEpoch")
+ public void setFlowActivationEpoch(Double flowActivationEpoch) {
+ this.flowActivationEpoch = flowActivationEpoch;
+ }
+
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowActivationMicrosec")
+ public Double getFlowActivationMicrosec() {
+ return flowActivationMicrosec;
+ }
+
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowActivationMicrosec")
+ public void setFlowActivationMicrosec(Double flowActivationMicrosec) {
+ this.flowActivationMicrosec = flowActivationMicrosec;
+ }
+
+ /**
+ * time the connection is activated in the flow being reported on, or transmission time of the
+ * first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800
+ *
+ */
+ @JsonProperty("flowActivationTime")
+ public String getFlowActivationTime() {
+ return flowActivationTime;
+ }
+
+ /**
+ * time the connection is activated in the flow being reported on, or transmission time of the
+ * first packet if activation time is not available; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800
+ *
+ */
+ @JsonProperty("flowActivationTime")
+ public void setFlowActivationTime(String flowActivationTime) {
+ this.flowActivationTime = flowActivationTime;
+ }
+
+ /**
+ * Endpoint deactivating the flow
+ *
+ */
+ @JsonProperty("flowDeactivatedBy")
+ public String getFlowDeactivatedBy() {
+ return flowDeactivatedBy;
+ }
+
+ /**
+ * Endpoint deactivating the flow
+ *
+ */
+ @JsonProperty("flowDeactivatedBy")
+ public void setFlowDeactivatedBy(String flowDeactivatedBy) {
+ this.flowDeactivatedBy = flowDeactivatedBy;
+ }
+
+ /**
+ * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationEpoch")
+ public Double getFlowDeactivationEpoch() {
+ return flowDeactivationEpoch;
+ }
+
+ /**
+ * Time for the start of the flow connection, in integer UTC epoch time aka UNIX time (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationEpoch")
+ public void setFlowDeactivationEpoch(Double flowDeactivationEpoch) {
+ this.flowDeactivationEpoch = flowDeactivationEpoch;
+ }
+
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationMicrosec")
+ public Double getFlowDeactivationMicrosec() {
+ return flowDeactivationMicrosec;
+ }
+
+ /**
+ * Integer microseconds for the start of the flow connection (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationMicrosec")
+ public void setFlowDeactivationMicrosec(Double flowDeactivationMicrosec) {
+ this.flowDeactivationMicrosec = flowDeactivationMicrosec;
+ }
+
+ /**
+ * Transmission time of the first packet in the flow connection being reported on; with RFC 2822
+ * compliant format: Sat, 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationTime")
+ public String getFlowDeactivationTime() {
+ return flowDeactivationTime;
+ }
+
+ /**
+ * Transmission time of the first packet in the flow connection being reported on; with RFC 2822
+ * compliant format: Sat, 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("flowDeactivationTime")
+ public void setFlowDeactivationTime(String flowDeactivationTime) {
+ this.flowDeactivationTime = flowDeactivationTime;
+ }
+
+ /**
+ * connection status at reporting time as a working / inactive / failed indicator value
+ * (Required)
+ *
+ */
+ @JsonProperty("flowStatus")
+ public String getFlowStatus() {
+ return flowStatus;
+ }
+
+ /**
+ * connection status at reporting time as a working / inactive / failed indicator value
+ * (Required)
+ *
+ */
+ @JsonProperty("flowStatus")
+ public void setFlowStatus(String flowStatus) {
+ this.flowStatus = flowStatus;
+ }
+
+ /**
+ * Current connection state at reporting time
+ *
+ */
+ @JsonProperty("gtpConnectionStatus")
+ public String getGtpConnectionStatus() {
+ return gtpConnectionStatus;
+ }
+
+ /**
+ * Current connection state at reporting time
+ *
+ */
+ @JsonProperty("gtpConnectionStatus")
+ public void setGtpConnectionStatus(String gtpConnectionStatus) {
+ this.gtpConnectionStatus = gtpConnectionStatus;
+ }
+
+ /**
+ * Current tunnel state at reporting time
+ *
+ */
+ @JsonProperty("gtpTunnelStatus")
+ public String getGtpTunnelStatus() {
+ return gtpTunnelStatus;
+ }
+
+ /**
+ * Current tunnel state at reporting time
+ *
+ */
+ @JsonProperty("gtpTunnelStatus")
+ public void setGtpTunnelStatus(String gtpTunnelStatus) {
+ this.gtpTunnelStatus = gtpTunnelStatus;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from the IP Type-of-Service identifiers
+ * which range from '0' to '255', and the values are the count of packets that had those ToS
+ * identifiers in the flow
+ *
+ */
+ @JsonProperty("ipTosCountList")
+ public List<List<Object>> getIpTosCountList() {
+ return ipTosCountList;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from the IP Type-of-Service identifiers
+ * which range from '0' to '255', and the values are the count of packets that had those ToS
+ * identifiers in the flow
+ *
+ */
+ @JsonProperty("ipTosCountList")
+ public void setIpTosCountList(List<List<Object>> ipTosCountList) {
+ this.ipTosCountList = ipTosCountList;
+ }
+
+ /**
+ * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to
+ * '255'
+ *
+ */
+ @JsonProperty("ipTosList")
+ public List<String> getIpTosList() {
+ return ipTosList;
+ }
+
+ /**
+ * Array of unique IP Type-of-Service values observed in the flow where values range from '0' to
+ * '255'
+ *
+ */
+ @JsonProperty("ipTosList")
+ public void setIpTosList(List<String> ipTosList) {
+ this.ipTosList = ipTosList;
+ }
+
+ /**
+ * large packet round trip time
+ *
+ */
+ @JsonProperty("largePacketRtt")
+ public Double getLargePacketRtt() {
+ return largePacketRtt;
+ }
+
+ /**
+ * large packet round trip time
+ *
+ */
+ @JsonProperty("largePacketRtt")
+ public void setLargePacketRtt(Double largePacketRtt) {
+ this.largePacketRtt = largePacketRtt;
+ }
+
+ /**
+ * large packet threshold being applied
+ *
+ */
+ @JsonProperty("largePacketThreshold")
+ public Double getLargePacketThreshold() {
+ return largePacketThreshold;
+ }
+
+ /**
+ * large packet threshold being applied
+ *
+ */
+ @JsonProperty("largePacketThreshold")
+ public void setLargePacketThreshold(Double largePacketThreshold) {
+ this.largePacketThreshold = largePacketThreshold;
+ }
+
+ /**
+ * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("maxPacketDelayVariation")
+ public Double getMaxPacketDelayVariation() {
+ return maxPacketDelayVariation;
+ }
+
+ /**
+ * Maximum packet delay variation or jitter in milliseconds for received packets: Maximum of the
+ * difference between the packet timestamp and time received for all pairs of consecutive
+ * packets (Required)
+ *
+ */
+ @JsonProperty("maxPacketDelayVariation")
+ public void setMaxPacketDelayVariation(Double maxPacketDelayVariation) {
+ this.maxPacketDelayVariation = maxPacketDelayVariation;
+ }
+
+ /**
+ * maximum receive bit rate
+ *
+ */
+ @JsonProperty("maxReceiveBitRate")
+ public Double getMaxReceiveBitRate() {
+ return maxReceiveBitRate;
+ }
+
+ /**
+ * maximum receive bit rate
+ *
+ */
+ @JsonProperty("maxReceiveBitRate")
+ public void setMaxReceiveBitRate(Double maxReceiveBitRate) {
+ this.maxReceiveBitRate = maxReceiveBitRate;
+ }
+
+ /**
+ * maximum transmit bit rate
+ *
+ */
+ @JsonProperty("maxTransmitBitRate")
+ public Double getMaxTransmitBitRate() {
+ return maxTransmitBitRate;
+ }
+
+ /**
+ * maximum transmit bit rate
+ *
+ */
+ @JsonProperty("maxTransmitBitRate")
+ public void setMaxTransmitBitRate(Double maxTransmitBitRate) {
+ this.maxTransmitBitRate = maxTransmitBitRate;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from LTE QCI or UMTS class of service
+ * strings, and the values are the count of packets that had those strings in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosCountList")
+ public List<List<Object>> getMobileQciCosCountList() {
+ return mobileQciCosCountList;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from LTE QCI or UMTS class of service
+ * strings, and the values are the count of packets that had those strings in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosCountList")
+ public void setMobileQciCosCountList(List<List<Object>> mobileQciCosCountList) {
+ this.mobileQciCosCountList = mobileQciCosCountList;
+ }
+
+ /**
+ * Array of unique LTE QCI or UMTS class-of-service values observed in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosList")
+ public List<String> getMobileQciCosList() {
+ return mobileQciCosList;
+ }
+
+ /**
+ * Array of unique LTE QCI or UMTS class-of-service values observed in the flow
+ *
+ */
+ @JsonProperty("mobileQciCosList")
+ public void setMobileQciCosList(List<String> mobileQciCosList) {
+ this.mobileQciCosList = mobileQciCosList;
+ }
+
+ /**
+ * Number of failed activation requests, as observed by the reporting node (Required)
+ *
+ */
+ @JsonProperty("numActivationFailures")
+ public Double getNumActivationFailures() {
+ return numActivationFailures;
+ }
+
+ /**
+ * Number of failed activation requests, as observed by the reporting node (Required)
+ *
+ */
+ @JsonProperty("numActivationFailures")
+ public void setNumActivationFailures(Double numActivationFailures) {
+ this.numActivationFailures = numActivationFailures;
+ }
+
+ /**
+ * number of errored bits (Required)
+ *
+ */
+ @JsonProperty("numBitErrors")
+ public Double getNumBitErrors() {
+ return numBitErrors;
+ }
+
+ /**
+ * number of errored bits (Required)
+ *
+ */
+ @JsonProperty("numBitErrors")
+ public void setNumBitErrors(Double numBitErrors) {
+ this.numBitErrors = numBitErrors;
+ }
+
+ /**
+ * number of bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesReceived")
+ public Double getNumBytesReceived() {
+ return numBytesReceived;
+ }
+
+ /**
+ * number of bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesReceived")
+ public void setNumBytesReceived(Double numBytesReceived) {
+ this.numBytesReceived = numBytesReceived;
+ }
+
+ /**
+ * number of bytes transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesTransmitted")
+ public Double getNumBytesTransmitted() {
+ return numBytesTransmitted;
+ }
+
+ /**
+ * number of bytes transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numBytesTransmitted")
+ public void setNumBytesTransmitted(Double numBytesTransmitted) {
+ this.numBytesTransmitted = numBytesTransmitted;
+ }
+
+ /**
+ * number of received packets dropped due to errors per virtual interface (Required)
+ *
+ */
+ @JsonProperty("numDroppedPackets")
+ public Double getNumDroppedPackets() {
+ return numDroppedPackets;
+ }
+
+ /**
+ * number of received packets dropped due to errors per virtual interface (Required)
+ *
+ */
+ @JsonProperty("numDroppedPackets")
+ public void setNumDroppedPackets(Double numDroppedPackets) {
+ this.numDroppedPackets = numDroppedPackets;
+ }
+
+ /**
+ * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec
+ * 7.2.1 and 3GPP TS 29.060 sec. 11.2
+ *
+ */
+ @JsonProperty("numGtpEchoFailures")
+ public Double getNumGtpEchoFailures() {
+ return numGtpEchoFailures;
+ }
+
+ /**
+ * Number of Echo request path failures where failed paths are defined in 3GPP TS 29.281 sec
+ * 7.2.1 and 3GPP TS 29.060 sec. 11.2
+ *
+ */
+ @JsonProperty("numGtpEchoFailures")
+ public void setNumGtpEchoFailures(Double numGtpEchoFailures) {
+ this.numGtpEchoFailures = numGtpEchoFailures;
+ }
+
+ /**
+ * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and
+ * 3GPP TS 29.060 sec. 11.1
+ *
+ */
+ @JsonProperty("numGtpTunnelErrors")
+ public Double getNumGtpTunnelErrors() {
+ return numGtpTunnelErrors;
+ }
+
+ /**
+ * Number of tunnel error indications where errors are defined in 3GPP TS 29.281 sec 7.3.1 and
+ * 3GPP TS 29.060 sec. 11.1
+ *
+ */
+ @JsonProperty("numGtpTunnelErrors")
+ public void setNumGtpTunnelErrors(Double numGtpTunnelErrors) {
+ this.numGtpTunnelErrors = numGtpTunnelErrors;
+ }
+
+ /**
+ * Http error count
+ *
+ */
+ @JsonProperty("numHttpErrors")
+ public Double getNumHttpErrors() {
+ return numHttpErrors;
+ }
+
+ /**
+ * Http error count
+ *
+ */
+ @JsonProperty("numHttpErrors")
+ public void setNumHttpErrors(Double numHttpErrors) {
+ this.numHttpErrors = numHttpErrors;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesReceived")
+ public Double getNumL7BytesReceived() {
+ return numL7BytesReceived;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes received, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesReceived")
+ public void setNumL7BytesReceived(Double numL7BytesReceived) {
+ this.numL7BytesReceived = numL7BytesReceived;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes transmitted, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesTransmitted")
+ public Double getNumL7BytesTransmitted() {
+ return numL7BytesTransmitted;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes transmitted, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numL7BytesTransmitted")
+ public void setNumL7BytesTransmitted(Double numL7BytesTransmitted) {
+ this.numL7BytesTransmitted = numL7BytesTransmitted;
+ }
+
+ /**
+ * number of lost packets (Required)
+ *
+ */
+ @JsonProperty("numLostPackets")
+ public Double getNumLostPackets() {
+ return numLostPackets;
+ }
+
+ /**
+ * number of lost packets (Required)
+ *
+ */
+ @JsonProperty("numLostPackets")
+ public void setNumLostPackets(Double numLostPackets) {
+ this.numLostPackets = numLostPackets;
+ }
+
+ /**
+ * number of out-of-order packets (Required)
+ *
+ */
+ @JsonProperty("numOutOfOrderPackets")
+ public Double getNumOutOfOrderPackets() {
+ return numOutOfOrderPackets;
+ }
+
+ /**
+ * number of out-of-order packets (Required)
+ *
+ */
+ @JsonProperty("numOutOfOrderPackets")
+ public void setNumOutOfOrderPackets(Double numOutOfOrderPackets) {
+ this.numOutOfOrderPackets = numOutOfOrderPackets;
+ }
+
+ /**
+ * number of errored packets (Required)
+ *
+ */
+ @JsonProperty("numPacketErrors")
+ public Double getNumPacketErrors() {
+ return numPacketErrors;
+ }
+
+ /**
+ * number of errored packets (Required)
+ *
+ */
+ @JsonProperty("numPacketErrors")
+ public void setNumPacketErrors(Double numPacketErrors) {
+ this.numPacketErrors = numPacketErrors;
+ }
+
+ /**
+ * number of packets received, excluding retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedExclRetrans")
+ public Double getNumPacketsReceivedExclRetrans() {
+ return numPacketsReceivedExclRetrans;
+ }
+
+ /**
+ * number of packets received, excluding retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedExclRetrans")
+ public void setNumPacketsReceivedExclRetrans(Double numPacketsReceivedExclRetrans) {
+ this.numPacketsReceivedExclRetrans = numPacketsReceivedExclRetrans;
+ }
+
+ /**
+ * number of packets received, including retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedInclRetrans")
+ public Double getNumPacketsReceivedInclRetrans() {
+ return numPacketsReceivedInclRetrans;
+ }
+
+ /**
+ * number of packets received, including retransmission (Required)
+ *
+ */
+ @JsonProperty("numPacketsReceivedInclRetrans")
+ public void setNumPacketsReceivedInclRetrans(Double numPacketsReceivedInclRetrans) {
+ this.numPacketsReceivedInclRetrans = numPacketsReceivedInclRetrans;
+ }
+
+ /**
+ * number of packets transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numPacketsTransmittedInclRetrans")
+ public Double getNumPacketsTransmittedInclRetrans() {
+ return numPacketsTransmittedInclRetrans;
+ }
+
+ /**
+ * number of packets transmitted, including retransmissions (Required)
+ *
+ */
+ @JsonProperty("numPacketsTransmittedInclRetrans")
+ public void setNumPacketsTransmittedInclRetrans(Double numPacketsTransmittedInclRetrans) {
+ this.numPacketsTransmittedInclRetrans = numPacketsTransmittedInclRetrans;
+ }
+
+ /**
+ * number of packet retries (Required)
+ *
+ */
+ @JsonProperty("numRetries")
+ public Double getNumRetries() {
+ return numRetries;
+ }
+
+ /**
+ * number of packet retries (Required)
+ *
+ */
+ @JsonProperty("numRetries")
+ public void setNumRetries(Double numRetries) {
+ this.numRetries = numRetries;
+ }
+
+ /**
+ * number of packet timeouts (Required)
+ *
+ */
+ @JsonProperty("numTimeouts")
+ public Double getNumTimeouts() {
+ return numTimeouts;
+ }
+
+ /**
+ * number of packet timeouts (Required)
+ *
+ */
+ @JsonProperty("numTimeouts")
+ public void setNumTimeouts(Double numTimeouts) {
+ this.numTimeouts = numTimeouts;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes received, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numTunneledL7BytesReceived")
+ public Double getNumTunneledL7BytesReceived() {
+ return numTunneledL7BytesReceived;
+ }
+
+ /**
+ * number of tunneled layer 7 bytes received, excluding retransmissions (Required)
+ *
+ */
+ @JsonProperty("numTunneledL7BytesReceived")
+ public void setNumTunneledL7BytesReceived(Double numTunneledL7BytesReceived) {
+ this.numTunneledL7BytesReceived = numTunneledL7BytesReceived;
+ }
+
+ /**
+ * round trip time (Required)
+ *
+ */
+ @JsonProperty("roundTripTime")
+ public Double getRoundTripTime() {
+ return roundTripTime;
+ }
+
+ /**
+ * round trip time (Required)
+ *
+ */
+ @JsonProperty("roundTripTime")
+ public void setRoundTripTime(Double roundTripTime) {
+ this.roundTripTime = roundTripTime;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from TCP Flags and the values are the
+ * count of packets that had that TCP Flag in the flow
+ *
+ */
+ @JsonProperty("tcpFlagCountList")
+ public List<List<Object>> getTcpFlagCountList() {
+ return tcpFlagCountList;
+ }
+
+ /**
+ * array of key: value pairs where the keys are drawn from TCP Flags and the values are the
+ * count of packets that had that TCP Flag in the flow
+ *
+ */
+ @JsonProperty("tcpFlagCountList")
+ public void setTcpFlagCountList(List<List<Object>> tcpFlagCountList) {
+ this.tcpFlagCountList = tcpFlagCountList;
+ }
+
+ /**
+ * Array of unique TCP Flags observed in the flow
+ *
+ */
+ @JsonProperty("tcpFlagList")
+ public List<String> getTcpFlagList() {
+ return tcpFlagList;
+ }
+
+ /**
+ * Array of unique TCP Flags observed in the flow
+ *
+ */
+ @JsonProperty("tcpFlagList")
+ public void setTcpFlagList(List<String> tcpFlagList) {
+ this.tcpFlagList = tcpFlagList;
+ }
+
+ /**
+ * Time in milliseconds between the connection activation and first byte received (Required)
+ *
+ */
+ @JsonProperty("timeToFirstByte")
+ public Double getTimeToFirstByte() {
+ return timeToFirstByte;
+ }
+
+ /**
+ * Time in milliseconds between the connection activation and first byte received (Required)
+ *
+ */
+ @JsonProperty("timeToFirstByte")
+ public void setTimeToFirstByte(Double timeToFirstByte) {
+ this.timeToFirstByte = timeToFirstByte;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(avgBitErrorRate).append(avgPacketDelayVariation)
+ .append(avgPacketLatency).append(avgReceiveThroughput).append(avgTransmitThroughput)
+ .append(durConnectionFailedStatus).append(durTunnelFailedStatus)
+ .append(flowActivatedBy).append(flowActivationEpoch).append(flowActivationMicrosec)
+ .append(flowActivationTime).append(flowDeactivatedBy).append(flowDeactivationEpoch)
+ .append(flowDeactivationMicrosec).append(flowDeactivationTime).append(flowStatus)
+ .append(gtpConnectionStatus).append(gtpTunnelStatus).append(ipTosCountList)
+ .append(ipTosList).append(largePacketRtt).append(largePacketThreshold)
+ .append(maxPacketDelayVariation).append(maxReceiveBitRate)
+ .append(maxTransmitBitRate).append(mobileQciCosCountList).append(mobileQciCosList)
+ .append(numActivationFailures).append(numBitErrors).append(numBytesReceived)
+ .append(numBytesTransmitted).append(numDroppedPackets).append(numGtpEchoFailures)
+ .append(numGtpTunnelErrors).append(numHttpErrors).append(numL7BytesReceived)
+ .append(numL7BytesTransmitted).append(numLostPackets).append(numOutOfOrderPackets)
+ .append(numPacketErrors).append(numPacketsReceivedExclRetrans)
+ .append(numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans)
+ .append(numRetries).append(numTimeouts).append(numTunneledL7BytesReceived)
+ .append(roundTripTime).append(tcpFlagCountList).append(tcpFlagList)
+ .append(timeToFirstByte).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFields.java new file mode 100644 index 0000000..977fd94 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFields.java @@ -0,0 +1,150 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * optional field block for fields specific to heartbeat events
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "heartbeatFieldsVersion", "heartbeatInterval"})
+public class HeartbeatFields {
+
+ /**
+ * additional heartbeat fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional heartbeat fields if needed")
+ private List<AlarmAdditionalInformation> additionalFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * version of the heartbeatFields block (Required)
+ *
+ */
+ @JsonProperty("heartbeatFieldsVersion")
+ @JsonPropertyDescription("version of the heartbeatFields block")
+ private Double heartbeatFieldsVersion;
+ /**
+ * current heartbeat interval in seconds (Required)
+ *
+ */
+ @JsonProperty("heartbeatInterval")
+ @JsonPropertyDescription("current heartbeat interval in seconds")
+ private Integer heartbeatInterval;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional heartbeat fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public List<AlarmAdditionalInformation> getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional heartbeat fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(List<AlarmAdditionalInformation> additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * version of the heartbeatFields block (Required)
+ *
+ */
+ @JsonProperty("heartbeatFieldsVersion")
+ public Double getHeartbeatFieldsVersion() {
+ return heartbeatFieldsVersion;
+ }
+
+ /**
+ * version of the heartbeatFields block (Required)
+ *
+ */
+ @JsonProperty("heartbeatFieldsVersion")
+ public void setHeartbeatFieldsVersion(Double heartbeatFieldsVersion) {
+ this.heartbeatFieldsVersion = heartbeatFieldsVersion;
+ }
+
+ /**
+ * current heartbeat interval in seconds (Required)
+ *
+ */
+ @JsonProperty("heartbeatInterval")
+ public Integer getHeartbeatInterval() {
+ return heartbeatInterval;
+ }
+
+ /**
+ * current heartbeat interval in seconds (Required)
+ *
+ */
+ @JsonProperty("heartbeatInterval")
+ public void setHeartbeatInterval(Integer heartbeatInterval) {
+ this.heartbeatInterval = heartbeatInterval;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(heartbeatFieldsVersion)
+ .append(heartbeatInterval).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFields.java new file mode 100644 index 0000000..5072e70 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFields.java @@ -0,0 +1,71 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * enrichment fields for internal VES Event Listener service use only, not supplied by event sources
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({
+
+})
+public class InternalHeaderFields {
+
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistribution.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistribution.java new file mode 100644 index 0000000..c41974b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistribution.java @@ -0,0 +1,122 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * number of counts falling within a defined latency bucket
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"countsInTheBucket", "highEndOfLatencyBucket", "lowEndOfLatencyBucket"})
+public class LatencyDistribution {
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("countsInTheBucket")
+ private Double countsInTheBucket;
+ @JsonProperty("highEndOfLatencyBucket")
+ private Double highEndOfLatencyBucket;
+ @JsonProperty("lowEndOfLatencyBucket")
+ private Double lowEndOfLatencyBucket;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("countsInTheBucket")
+ public Double getCountsInTheBucket() {
+ return countsInTheBucket;
+ }
+
+ /**
+ *
+ * (Required)
+ *
+ */
+ @JsonProperty("countsInTheBucket")
+ public void setCountsInTheBucket(Double countsInTheBucket) {
+ this.countsInTheBucket = countsInTheBucket;
+ }
+
+ @JsonProperty("highEndOfLatencyBucket")
+ public Double getHighEndOfLatencyBucket() {
+ return highEndOfLatencyBucket;
+ }
+
+ @JsonProperty("highEndOfLatencyBucket")
+ public void setHighEndOfLatencyBucket(Double highEndOfLatencyBucket) {
+ this.highEndOfLatencyBucket = highEndOfLatencyBucket;
+ }
+
+ @JsonProperty("lowEndOfLatencyBucket")
+ public Double getLowEndOfLatencyBucket() {
+ return lowEndOfLatencyBucket;
+ }
+
+ @JsonProperty("lowEndOfLatencyBucket")
+ public void setLowEndOfLatencyBucket(Double lowEndOfLatencyBucket) {
+ this.lowEndOfLatencyBucket = lowEndOfLatencyBucket;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket)
+ .append(lowEndOfLatencyBucket).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFields.java new file mode 100644 index 0000000..f21f7a0 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFields.java @@ -0,0 +1,571 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * measurementsForVfScaling fields
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "additionalMeasurements", "additionalObjects",
+ "codecUsageArray", "concurrentSessions", "configuredEntities", "cpuUsageArray",
+ "diskUsageArray", "featureUsageArray", "filesystemUsageArray", "latencyDistribution",
+ "meanRequestLatency", "measurementInterval", "measurementsForVfScalingVersion",
+ "memoryUsageArray", "numberOfMediaPortsInUse", "requestRate", "vnfcScalingMetric",
+ "vNicPerformanceArray"})
+public class MeasurementsForVfScalingFields {
+
+ /**
+ * additional name-value-pair fields
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional name-value-pair fields")
+ private List<AlarmAdditionalInformation> additionalFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("additionalMeasurements")
+ @JsonPropertyDescription("array of named name-value-pair arrays")
+ private List<AdditionalMeasurement> additionalMeasurements =
+ new ArrayList<AdditionalMeasurement>();
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("additionalObjects")
+ @JsonPropertyDescription("array of JSON objects described by name, schema and other meta-information")
+ private List<AdditionalObject> additionalObjects = new ArrayList<AdditionalObject>();
+ /**
+ * array of codecs in use
+ *
+ */
+ @JsonProperty("codecUsageArray")
+ @JsonPropertyDescription("array of codecs in use")
+ private List<CodecUsageArray> codecUsageArray = new ArrayList<CodecUsageArray>();
+ /**
+ * peak concurrent sessions for the VM or VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("concurrentSessions")
+ @JsonPropertyDescription("peak concurrent sessions for the VM or VNF over the measurementInterval")
+ private Integer concurrentSessions;
+ /**
+ * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies,
+ * etc., for the VM, or subscribers, devices, etc., for the VNF
+ *
+ */
+ @JsonProperty("configuredEntities")
+ @JsonPropertyDescription("over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the VNF")
+ private Integer configuredEntities;
+ /**
+ * usage of an array of CPUs
+ *
+ */
+ @JsonProperty("cpuUsageArray")
+ @JsonPropertyDescription("usage of an array of CPUs")
+ private List<CpuUsageArray> cpuUsageArray = new ArrayList<CpuUsageArray>();
+ /**
+ * usage of an array of disks
+ *
+ */
+ @JsonProperty("diskUsageArray")
+ @JsonPropertyDescription("usage of an array of disks")
+ private List<DiskUsageArray> diskUsageArray = new ArrayList<DiskUsageArray>();
+ /**
+ * array of features in use
+ *
+ */
+ @JsonProperty("featureUsageArray")
+ @JsonPropertyDescription("array of features in use")
+ private List<FeatureUsageArray> featureUsageArray = new ArrayList<FeatureUsageArray>();
+ /**
+ * filesystem usage of the VM on which the VNFC reporting the event is running
+ *
+ */
+ @JsonProperty("filesystemUsageArray")
+ @JsonPropertyDescription("filesystem usage of the VM on which the VNFC reporting the event is running")
+ private List<FilesystemUsageArray> filesystemUsageArray = new ArrayList<FilesystemUsageArray>();
+ /**
+ * array of integers representing counts of requests whose latency in milliseconds falls within
+ * per-VNF configured ranges
+ *
+ */
+ @JsonProperty("latencyDistribution")
+ @JsonPropertyDescription("array of integers representing counts of requests whose latency in milliseconds falls within per-VNF configured ranges")
+ private List<LatencyDistribution> latencyDistribution = new ArrayList<LatencyDistribution>();
+ /**
+ * mean seconds required to respond to each request for the VM on which the VNFC reporting the
+ * event is running
+ *
+ */
+ @JsonProperty("meanRequestLatency")
+ @JsonPropertyDescription("mean seconds required to respond to each request for the VM on which the VNFC reporting the event is running")
+ private Double meanRequestLatency;
+ /**
+ * interval over which measurements are being reported in seconds (Required)
+ *
+ */
+ @JsonProperty("measurementInterval")
+ @JsonPropertyDescription("interval over which measurements are being reported in seconds")
+ private Double measurementInterval;
+ /**
+ * version of the measurementsForVfScaling block (Required)
+ *
+ */
+ @JsonProperty("measurementsForVfScalingVersion")
+ @JsonPropertyDescription("version of the measurementsForVfScaling block")
+ private Double measurementsForVfScalingVersion;
+ /**
+ * memory usage of an array of VMs
+ *
+ */
+ @JsonProperty("memoryUsageArray")
+ @JsonPropertyDescription("memory usage of an array of VMs")
+ private List<MemoryUsageArray> memoryUsageArray = new ArrayList<MemoryUsageArray>();
+ /**
+ * number of media ports in use
+ *
+ */
+ @JsonProperty("numberOfMediaPortsInUse")
+ @JsonPropertyDescription("number of media ports in use")
+ private Integer numberOfMediaPortsInUse;
+ /**
+ * peak rate of service requests per second to the VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("requestRate")
+ @JsonPropertyDescription("peak rate of service requests per second to the VNF over the measurementInterval")
+ private Double requestRate;
+ /**
+ * represents busy-ness of the VNF from 0 to 100 as reported by the VNFC
+ *
+ */
+ @JsonProperty("vnfcScalingMetric")
+ @JsonPropertyDescription("represents busy-ness of the VNF from 0 to 100 as reported by the VNFC")
+ private Integer vnfcScalingMetric;
+ /**
+ * usage of an array of virtual network interface cards
+ *
+ */
+ @JsonProperty("vNicPerformanceArray")
+ @JsonPropertyDescription("usage of an array of virtual network interface cards")
+ private List<VNicPerformanceArray> vNicPerformanceArray = new ArrayList<VNicPerformanceArray>();
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional name-value-pair fields
+ *
+ */
+ @JsonProperty("additionalFields")
+ public List<AlarmAdditionalInformation> getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional name-value-pair fields
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(List<AlarmAdditionalInformation> additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("additionalMeasurements")
+ public List<AdditionalMeasurement> getAdditionalMeasurements() {
+ return additionalMeasurements;
+ }
+
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("additionalMeasurements")
+ public void setAdditionalMeasurements(List<AdditionalMeasurement> additionalMeasurements) {
+ this.additionalMeasurements = additionalMeasurements;
+ }
+
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("additionalObjects")
+ public List<AdditionalObject> getAdditionalObjects() {
+ return additionalObjects;
+ }
+
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("additionalObjects")
+ public void setAdditionalObjects(List<AdditionalObject> additionalObjects) {
+ this.additionalObjects = additionalObjects;
+ }
+
+ /**
+ * array of codecs in use
+ *
+ */
+ @JsonProperty("codecUsageArray")
+ public List<CodecUsageArray> getCodecUsageArray() {
+ return codecUsageArray;
+ }
+
+ /**
+ * array of codecs in use
+ *
+ */
+ @JsonProperty("codecUsageArray")
+ public void setCodecUsageArray(List<CodecUsageArray> codecUsageArray) {
+ this.codecUsageArray = codecUsageArray;
+ }
+
+ /**
+ * peak concurrent sessions for the VM or VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("concurrentSessions")
+ public Integer getConcurrentSessions() {
+ return concurrentSessions;
+ }
+
+ /**
+ * peak concurrent sessions for the VM or VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("concurrentSessions")
+ public void setConcurrentSessions(Integer concurrentSessions) {
+ this.concurrentSessions = concurrentSessions;
+ }
+
+ /**
+ * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies,
+ * etc., for the VM, or subscribers, devices, etc., for the VNF
+ *
+ */
+ @JsonProperty("configuredEntities")
+ public Integer getConfiguredEntities() {
+ return configuredEntities;
+ }
+
+ /**
+ * over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies,
+ * etc., for the VM, or subscribers, devices, etc., for the VNF
+ *
+ */
+ @JsonProperty("configuredEntities")
+ public void setConfiguredEntities(Integer configuredEntities) {
+ this.configuredEntities = configuredEntities;
+ }
+
+ /**
+ * usage of an array of CPUs
+ *
+ */
+ @JsonProperty("cpuUsageArray")
+ public List<CpuUsageArray> getCpuUsageArray() {
+ return cpuUsageArray;
+ }
+
+ /**
+ * usage of an array of CPUs
+ *
+ */
+ @JsonProperty("cpuUsageArray")
+ public void setCpuUsageArray(List<CpuUsageArray> cpuUsageArray) {
+ this.cpuUsageArray = cpuUsageArray;
+ }
+
+ /**
+ * usage of an array of disks
+ *
+ */
+ @JsonProperty("diskUsageArray")
+ public List<DiskUsageArray> getDiskUsageArray() {
+ return diskUsageArray;
+ }
+
+ /**
+ * usage of an array of disks
+ *
+ */
+ @JsonProperty("diskUsageArray")
+ public void setDiskUsageArray(List<DiskUsageArray> diskUsageArray) {
+ this.diskUsageArray = diskUsageArray;
+ }
+
+ /**
+ * array of features in use
+ *
+ */
+ @JsonProperty("featureUsageArray")
+ public List<FeatureUsageArray> getFeatureUsageArray() {
+ return featureUsageArray;
+ }
+
+ /**
+ * array of features in use
+ *
+ */
+ @JsonProperty("featureUsageArray")
+ public void setFeatureUsageArray(List<FeatureUsageArray> featureUsageArray) {
+ this.featureUsageArray = featureUsageArray;
+ }
+
+ /**
+ * filesystem usage of the VM on which the VNFC reporting the event is running
+ *
+ */
+ @JsonProperty("filesystemUsageArray")
+ public List<FilesystemUsageArray> getFilesystemUsageArray() {
+ return filesystemUsageArray;
+ }
+
+ /**
+ * filesystem usage of the VM on which the VNFC reporting the event is running
+ *
+ */
+ @JsonProperty("filesystemUsageArray")
+ public void setFilesystemUsageArray(List<FilesystemUsageArray> filesystemUsageArray) {
+ this.filesystemUsageArray = filesystemUsageArray;
+ }
+
+ /**
+ * array of integers representing counts of requests whose latency in milliseconds falls within
+ * per-VNF configured ranges
+ *
+ */
+ @JsonProperty("latencyDistribution")
+ public List<LatencyDistribution> getLatencyDistribution() {
+ return latencyDistribution;
+ }
+
+ /**
+ * array of integers representing counts of requests whose latency in milliseconds falls within
+ * per-VNF configured ranges
+ *
+ */
+ @JsonProperty("latencyDistribution")
+ public void setLatencyDistribution(List<LatencyDistribution> latencyDistribution) {
+ this.latencyDistribution = latencyDistribution;
+ }
+
+ /**
+ * mean seconds required to respond to each request for the VM on which the VNFC reporting the
+ * event is running
+ *
+ */
+ @JsonProperty("meanRequestLatency")
+ public Double getMeanRequestLatency() {
+ return meanRequestLatency;
+ }
+
+ /**
+ * mean seconds required to respond to each request for the VM on which the VNFC reporting the
+ * event is running
+ *
+ */
+ @JsonProperty("meanRequestLatency")
+ public void setMeanRequestLatency(Double meanRequestLatency) {
+ this.meanRequestLatency = meanRequestLatency;
+ }
+
+ /**
+ * interval over which measurements are being reported in seconds (Required)
+ *
+ */
+ @JsonProperty("measurementInterval")
+ public Double getMeasurementInterval() {
+ return measurementInterval;
+ }
+
+ /**
+ * interval over which measurements are being reported in seconds (Required)
+ *
+ */
+ @JsonProperty("measurementInterval")
+ public void setMeasurementInterval(Double measurementInterval) {
+ this.measurementInterval = measurementInterval;
+ }
+
+ /**
+ * version of the measurementsForVfScaling block (Required)
+ *
+ */
+ @JsonProperty("measurementsForVfScalingVersion")
+ public Double getMeasurementsForVfScalingVersion() {
+ return measurementsForVfScalingVersion;
+ }
+
+ /**
+ * version of the measurementsForVfScaling block (Required)
+ *
+ */
+ @JsonProperty("measurementsForVfScalingVersion")
+ public void setMeasurementsForVfScalingVersion(Double measurementsForVfScalingVersion) {
+ this.measurementsForVfScalingVersion = measurementsForVfScalingVersion;
+ }
+
+ /**
+ * memory usage of an array of VMs
+ *
+ */
+ @JsonProperty("memoryUsageArray")
+ public List<MemoryUsageArray> getMemoryUsageArray() {
+ return memoryUsageArray;
+ }
+
+ /**
+ * memory usage of an array of VMs
+ *
+ */
+ @JsonProperty("memoryUsageArray")
+ public void setMemoryUsageArray(List<MemoryUsageArray> memoryUsageArray) {
+ this.memoryUsageArray = memoryUsageArray;
+ }
+
+ /**
+ * number of media ports in use
+ *
+ */
+ @JsonProperty("numberOfMediaPortsInUse")
+ public Integer getNumberOfMediaPortsInUse() {
+ return numberOfMediaPortsInUse;
+ }
+
+ /**
+ * number of media ports in use
+ *
+ */
+ @JsonProperty("numberOfMediaPortsInUse")
+ public void setNumberOfMediaPortsInUse(Integer numberOfMediaPortsInUse) {
+ this.numberOfMediaPortsInUse = numberOfMediaPortsInUse;
+ }
+
+ /**
+ * peak rate of service requests per second to the VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("requestRate")
+ public Double getRequestRate() {
+ return requestRate;
+ }
+
+ /**
+ * peak rate of service requests per second to the VNF over the measurementInterval
+ *
+ */
+ @JsonProperty("requestRate")
+ public void setRequestRate(Double requestRate) {
+ this.requestRate = requestRate;
+ }
+
+ /**
+ * represents busy-ness of the VNF from 0 to 100 as reported by the VNFC
+ *
+ */
+ @JsonProperty("vnfcScalingMetric")
+ public Integer getVnfcScalingMetric() {
+ return vnfcScalingMetric;
+ }
+
+ /**
+ * represents busy-ness of the VNF from 0 to 100 as reported by the VNFC
+ *
+ */
+ @JsonProperty("vnfcScalingMetric")
+ public void setVnfcScalingMetric(Integer vnfcScalingMetric) {
+ this.vnfcScalingMetric = vnfcScalingMetric;
+ }
+
+ /**
+ * usage of an array of virtual network interface cards
+ *
+ */
+ @JsonProperty("vNicPerformanceArray")
+ public List<VNicPerformanceArray> getVNicPerformanceArray() {
+ return vNicPerformanceArray;
+ }
+
+ /**
+ * usage of an array of virtual network interface cards
+ *
+ */
+ @JsonProperty("vNicPerformanceArray")
+ public void setVNicPerformanceArray(List<VNicPerformanceArray> vNicPerformanceArray) {
+ this.vNicPerformanceArray = vNicPerformanceArray;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(additionalMeasurements)
+ .append(additionalObjects).append(codecUsageArray).append(concurrentSessions)
+ .append(configuredEntities).append(cpuUsageArray).append(diskUsageArray)
+ .append(featureUsageArray).append(filesystemUsageArray).append(latencyDistribution)
+ .append(meanRequestLatency).append(measurementInterval)
+ .append(measurementsForVfScalingVersion).append(memoryUsageArray)
+ .append(numberOfMediaPortsInUse).append(requestRate).append(vnfcScalingMetric)
+ .append(vNicPerformanceArray).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArray.java new file mode 100644 index 0000000..4ba85cf --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArray.java @@ -0,0 +1,281 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * memory usage of an identified virtual machine
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"memoryBuffered", "memoryCached", "memoryConfigured", "memoryFree",
+ "memorySlabRecl", "memorySlabUnrecl", "memoryUsed", "vmIdentifier"})
+public class MemoryUsageArray {
+
+ /**
+ * kibibytes of temporary storage for raw disk blocks
+ *
+ */
+ @JsonProperty("memoryBuffered")
+ @JsonPropertyDescription("kibibytes of temporary storage for raw disk blocks")
+ private Double memoryBuffered;
+ /**
+ * kibibytes of memory used for cache
+ *
+ */
+ @JsonProperty("memoryCached")
+ @JsonPropertyDescription("kibibytes of memory used for cache")
+ private Double memoryCached;
+ /**
+ * kibibytes of memory configured in the virtual machine on which the VNFC reporting the event
+ * is running
+ *
+ */
+ @JsonProperty("memoryConfigured")
+ @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the VNFC reporting the event is running")
+ private Double memoryConfigured;
+ /**
+ * kibibytes of physical RAM left unused by the system (Required)
+ *
+ */
+ @JsonProperty("memoryFree")
+ @JsonPropertyDescription("kibibytes of physical RAM left unused by the system")
+ private Double memoryFree;
+ /**
+ * the part of the slab that can be reclaimed such as caches measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabRecl")
+ @JsonPropertyDescription("the part of the slab that can be reclaimed such as caches measured in kibibytes")
+ private Double memorySlabRecl;
+ /**
+ * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabUnrecl")
+ @JsonPropertyDescription("the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes")
+ private Double memorySlabUnrecl;
+ /**
+ * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
+ * (Required)
+ *
+ */
+ @JsonProperty("memoryUsed")
+ @JsonPropertyDescription("total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes")
+ private Double memoryUsed;
+ /**
+ * virtual machine identifier associated with the memory metrics (Required)
+ *
+ */
+ @JsonProperty("vmIdentifier")
+ @JsonPropertyDescription("virtual machine identifier associated with the memory metrics")
+ private String vmIdentifier;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * kibibytes of temporary storage for raw disk blocks
+ *
+ */
+ @JsonProperty("memoryBuffered")
+ public Double getMemoryBuffered() {
+ return memoryBuffered;
+ }
+
+ /**
+ * kibibytes of temporary storage for raw disk blocks
+ *
+ */
+ @JsonProperty("memoryBuffered")
+ public void setMemoryBuffered(Double memoryBuffered) {
+ this.memoryBuffered = memoryBuffered;
+ }
+
+ /**
+ * kibibytes of memory used for cache
+ *
+ */
+ @JsonProperty("memoryCached")
+ public Double getMemoryCached() {
+ return memoryCached;
+ }
+
+ /**
+ * kibibytes of memory used for cache
+ *
+ */
+ @JsonProperty("memoryCached")
+ public void setMemoryCached(Double memoryCached) {
+ this.memoryCached = memoryCached;
+ }
+
+ /**
+ * kibibytes of memory configured in the virtual machine on which the VNFC reporting the event
+ * is running
+ *
+ */
+ @JsonProperty("memoryConfigured")
+ public Double getMemoryConfigured() {
+ return memoryConfigured;
+ }
+
+ /**
+ * kibibytes of memory configured in the virtual machine on which the VNFC reporting the event
+ * is running
+ *
+ */
+ @JsonProperty("memoryConfigured")
+ public void setMemoryConfigured(Double memoryConfigured) {
+ this.memoryConfigured = memoryConfigured;
+ }
+
+ /**
+ * kibibytes of physical RAM left unused by the system (Required)
+ *
+ */
+ @JsonProperty("memoryFree")
+ public Double getMemoryFree() {
+ return memoryFree;
+ }
+
+ /**
+ * kibibytes of physical RAM left unused by the system (Required)
+ *
+ */
+ @JsonProperty("memoryFree")
+ public void setMemoryFree(Double memoryFree) {
+ this.memoryFree = memoryFree;
+ }
+
+ /**
+ * the part of the slab that can be reclaimed such as caches measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabRecl")
+ public Double getMemorySlabRecl() {
+ return memorySlabRecl;
+ }
+
+ /**
+ * the part of the slab that can be reclaimed such as caches measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabRecl")
+ public void setMemorySlabRecl(Double memorySlabRecl) {
+ this.memorySlabRecl = memorySlabRecl;
+ }
+
+ /**
+ * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabUnrecl")
+ public Double getMemorySlabUnrecl() {
+ return memorySlabUnrecl;
+ }
+
+ /**
+ * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
+ *
+ */
+ @JsonProperty("memorySlabUnrecl")
+ public void setMemorySlabUnrecl(Double memorySlabUnrecl) {
+ this.memorySlabUnrecl = memorySlabUnrecl;
+ }
+
+ /**
+ * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
+ * (Required)
+ *
+ */
+ @JsonProperty("memoryUsed")
+ public Double getMemoryUsed() {
+ return memoryUsed;
+ }
+
+ /**
+ * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
+ * (Required)
+ *
+ */
+ @JsonProperty("memoryUsed")
+ public void setMemoryUsed(Double memoryUsed) {
+ this.memoryUsed = memoryUsed;
+ }
+
+ /**
+ * virtual machine identifier associated with the memory metrics (Required)
+ *
+ */
+ @JsonProperty("vmIdentifier")
+ public String getVmIdentifier() {
+ return vmIdentifier;
+ }
+
+ /**
+ * virtual machine identifier associated with the memory metrics (Required)
+ *
+ */
+ @JsonProperty("vmIdentifier")
+ public void setVmIdentifier(String vmIdentifier) {
+ this.vmIdentifier = vmIdentifier;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(memoryBuffered).append(memoryCached)
+ .append(memoryConfigured).append(memoryFree).append(memorySlabRecl)
+ .append(memorySlabUnrecl).append(memoryUsed).append(vmIdentifier)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFields.java new file mode 100644 index 0000000..34834be --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFields.java @@ -0,0 +1,929 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * mobileFlow fields
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "applicationType", "appProtocolType", "appProtocolVersion",
+ "cid", "connectionType", "ecgi", "flowDirection", "gtpPerFlowMetrics", "gtpProtocolType",
+ "gtpVersion", "httpHeader", "imei", "imsi", "ipProtocolType", "ipVersion", "lac", "mcc",
+ "mnc", "mobileFlowFieldsVersion", "msisdn", "otherEndpointIpAddress", "otherEndpointPort",
+ "otherFunctionalRole", "rac", "radioAccessTechnology", "reportingEndpointIpAddr",
+ "reportingEndpointPort", "sac", "samplingAlgorithm", "tac", "tunnelId", "vlanId"})
+public class MobileFlowFields {
+
+ /**
+ * additional mobileFlow fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional mobileFlow fields if needed")
+ private List<AlarmAdditionalInformation> additionalFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * Application type inferred
+ *
+ */
+ @JsonProperty("applicationType")
+ @JsonPropertyDescription("Application type inferred")
+ private String applicationType;
+ /**
+ * application protocol
+ *
+ */
+ @JsonProperty("appProtocolType")
+ @JsonPropertyDescription("application protocol")
+ private String appProtocolType;
+ /**
+ * application protocol version
+ *
+ */
+ @JsonProperty("appProtocolVersion")
+ @JsonPropertyDescription("application protocol version")
+ private String appProtocolVersion;
+ /**
+ * cell id
+ *
+ */
+ @JsonProperty("cid")
+ @JsonPropertyDescription("cell id")
+ private String cid;
+ /**
+ * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc
+ *
+ */
+ @JsonProperty("connectionType")
+ @JsonPropertyDescription("Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc")
+ private String connectionType;
+ /**
+ * Evolved Cell Global Id
+ *
+ */
+ @JsonProperty("ecgi")
+ @JsonPropertyDescription("Evolved Cell Global Id")
+ private String ecgi;
+ /**
+ * Flow direction, indicating if the reporting node is the source of the flow or destination for
+ * the flow (Required)
+ *
+ */
+ @JsonProperty("flowDirection")
+ @JsonPropertyDescription("Flow direction, indicating if the reporting node is the source of the flow or destination for the flow")
+ private String flowDirection;
+ /**
+ * Mobility GTP Protocol per flow metrics (Required)
+ *
+ */
+ @JsonProperty("gtpPerFlowMetrics")
+ @JsonPropertyDescription("Mobility GTP Protocol per flow metrics")
+ private GtpPerFlowMetrics gtpPerFlowMetrics;
+ /**
+ * GTP protocol
+ *
+ */
+ @JsonProperty("gtpProtocolType")
+ @JsonPropertyDescription("GTP protocol")
+ private String gtpProtocolType;
+ /**
+ * GTP protocol version
+ *
+ */
+ @JsonProperty("gtpVersion")
+ @JsonPropertyDescription("GTP protocol version")
+ private String gtpVersion;
+ /**
+ * HTTP request header, if the flow connects to a node referenced by HTTP
+ *
+ */
+ @JsonProperty("httpHeader")
+ @JsonPropertyDescription("HTTP request header, if the flow connects to a node referenced by HTTP")
+ private String httpHeader;
+ /**
+ * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imei")
+ @JsonPropertyDescription("IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device")
+ private String imei;
+ /**
+ * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imsi")
+ @JsonPropertyDescription("IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device")
+ private String imsi;
+ /**
+ * IP protocol type e.g., TCP, UDP, RTP... (Required)
+ *
+ */
+ @JsonProperty("ipProtocolType")
+ @JsonPropertyDescription("IP protocol type e.g., TCP, UDP, RTP...")
+ private String ipProtocolType;
+ /**
+ * IP protocol version e.g., IPv4, IPv6 (Required)
+ *
+ */
+ @JsonProperty("ipVersion")
+ @JsonPropertyDescription("IP protocol version e.g., IPv4, IPv6")
+ private String ipVersion;
+ /**
+ * location area code
+ *
+ */
+ @JsonProperty("lac")
+ @JsonPropertyDescription("location area code")
+ private String lac;
+ /**
+ * mobile country code
+ *
+ */
+ @JsonProperty("mcc")
+ @JsonPropertyDescription("mobile country code")
+ private String mcc;
+ /**
+ * mobile network code
+ *
+ */
+ @JsonProperty("mnc")
+ @JsonPropertyDescription("mobile network code")
+ private String mnc;
+ /**
+ * version of the mobileFlowFields block (Required)
+ *
+ */
+ @JsonProperty("mobileFlowFieldsVersion")
+ @JsonPropertyDescription("version of the mobileFlowFields block")
+ private Double mobileFlowFieldsVersion;
+ /**
+ * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a
+ * mobile device
+ *
+ */
+ @JsonProperty("msisdn")
+ @JsonPropertyDescription("MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a mobile device")
+ private String msisdn;
+ /**
+ * IP address for the other endpoint, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointIpAddress")
+ @JsonPropertyDescription("IP address for the other endpoint, as used for the flow being reported on")
+ private String otherEndpointIpAddress;
+ /**
+ * IP Port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointPort")
+ @JsonPropertyDescription("IP Port for the reporting entity, as used for the flow being reported on")
+ private Integer otherEndpointPort;
+ /**
+ * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW,
+ * PCRF...
+ *
+ */
+ @JsonProperty("otherFunctionalRole")
+ @JsonPropertyDescription("Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW, PCRF...")
+ private String otherFunctionalRole;
+ /**
+ * routing area code
+ *
+ */
+ @JsonProperty("rac")
+ @JsonPropertyDescription("routing area code")
+ private String rac;
+ /**
+ * Radio Access Technology e.g., 2G, 3G, LTE
+ *
+ */
+ @JsonProperty("radioAccessTechnology")
+ @JsonPropertyDescription("Radio Access Technology e.g., 2G, 3G, LTE")
+ private String radioAccessTechnology;
+ /**
+ * IP address for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointIpAddr")
+ @JsonPropertyDescription("IP address for the reporting entity, as used for the flow being reported on")
+ private String reportingEndpointIpAddr;
+ /**
+ * IP port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointPort")
+ @JsonPropertyDescription("IP port for the reporting entity, as used for the flow being reported on")
+ private Integer reportingEndpointPort;
+ /**
+ * service area code
+ *
+ */
+ @JsonProperty("sac")
+ @JsonPropertyDescription("service area code")
+ private String sac;
+ /**
+ * Integer identifier for the sampling algorithm or rule being applied in calculating the flow
+ * metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is
+ * applied
+ *
+ */
+ @JsonProperty("samplingAlgorithm")
+ @JsonPropertyDescription("Integer identifier for the sampling algorithm or rule being applied in calculating the flow metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is applied")
+ private Integer samplingAlgorithm;
+ /**
+ * transport area code
+ *
+ */
+ @JsonProperty("tac")
+ @JsonPropertyDescription("transport area code")
+ private String tac;
+ /**
+ * tunnel identifier
+ *
+ */
+ @JsonProperty("tunnelId")
+ @JsonPropertyDescription("tunnel identifier")
+ private String tunnelId;
+ /**
+ * VLAN identifier used by this flow
+ *
+ */
+ @JsonProperty("vlanId")
+ @JsonPropertyDescription("VLAN identifier used by this flow")
+ private String vlanId;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional mobileFlow fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public List<AlarmAdditionalInformation> getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional mobileFlow fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(List<AlarmAdditionalInformation> additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * Application type inferred
+ *
+ */
+ @JsonProperty("applicationType")
+ public String getApplicationType() {
+ return applicationType;
+ }
+
+ /**
+ * Application type inferred
+ *
+ */
+ @JsonProperty("applicationType")
+ public void setApplicationType(String applicationType) {
+ this.applicationType = applicationType;
+ }
+
+ /**
+ * application protocol
+ *
+ */
+ @JsonProperty("appProtocolType")
+ public String getAppProtocolType() {
+ return appProtocolType;
+ }
+
+ /**
+ * application protocol
+ *
+ */
+ @JsonProperty("appProtocolType")
+ public void setAppProtocolType(String appProtocolType) {
+ this.appProtocolType = appProtocolType;
+ }
+
+ /**
+ * application protocol version
+ *
+ */
+ @JsonProperty("appProtocolVersion")
+ public String getAppProtocolVersion() {
+ return appProtocolVersion;
+ }
+
+ /**
+ * application protocol version
+ *
+ */
+ @JsonProperty("appProtocolVersion")
+ public void setAppProtocolVersion(String appProtocolVersion) {
+ this.appProtocolVersion = appProtocolVersion;
+ }
+
+ /**
+ * cell id
+ *
+ */
+ @JsonProperty("cid")
+ public String getCid() {
+ return cid;
+ }
+
+ /**
+ * cell id
+ *
+ */
+ @JsonProperty("cid")
+ public void setCid(String cid) {
+ this.cid = cid;
+ }
+
+ /**
+ * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc
+ *
+ */
+ @JsonProperty("connectionType")
+ public String getConnectionType() {
+ return connectionType;
+ }
+
+ /**
+ * Abbreviation referencing a 3GPP reference point e.g., S1-U, S11, etc
+ *
+ */
+ @JsonProperty("connectionType")
+ public void setConnectionType(String connectionType) {
+ this.connectionType = connectionType;
+ }
+
+ /**
+ * Evolved Cell Global Id
+ *
+ */
+ @JsonProperty("ecgi")
+ public String getEcgi() {
+ return ecgi;
+ }
+
+ /**
+ * Evolved Cell Global Id
+ *
+ */
+ @JsonProperty("ecgi")
+ public void setEcgi(String ecgi) {
+ this.ecgi = ecgi;
+ }
+
+ /**
+ * Flow direction, indicating if the reporting node is the source of the flow or destination for
+ * the flow (Required)
+ *
+ */
+ @JsonProperty("flowDirection")
+ public String getFlowDirection() {
+ return flowDirection;
+ }
+
+ /**
+ * Flow direction, indicating if the reporting node is the source of the flow or destination for
+ * the flow (Required)
+ *
+ */
+ @JsonProperty("flowDirection")
+ public void setFlowDirection(String flowDirection) {
+ this.flowDirection = flowDirection;
+ }
+
+ /**
+ * Mobility GTP Protocol per flow metrics (Required)
+ *
+ */
+ @JsonProperty("gtpPerFlowMetrics")
+ public GtpPerFlowMetrics getGtpPerFlowMetrics() {
+ return gtpPerFlowMetrics;
+ }
+
+ /**
+ * Mobility GTP Protocol per flow metrics (Required)
+ *
+ */
+ @JsonProperty("gtpPerFlowMetrics")
+ public void setGtpPerFlowMetrics(GtpPerFlowMetrics gtpPerFlowMetrics) {
+ this.gtpPerFlowMetrics = gtpPerFlowMetrics;
+ }
+
+ /**
+ * GTP protocol
+ *
+ */
+ @JsonProperty("gtpProtocolType")
+ public String getGtpProtocolType() {
+ return gtpProtocolType;
+ }
+
+ /**
+ * GTP protocol
+ *
+ */
+ @JsonProperty("gtpProtocolType")
+ public void setGtpProtocolType(String gtpProtocolType) {
+ this.gtpProtocolType = gtpProtocolType;
+ }
+
+ /**
+ * GTP protocol version
+ *
+ */
+ @JsonProperty("gtpVersion")
+ public String getGtpVersion() {
+ return gtpVersion;
+ }
+
+ /**
+ * GTP protocol version
+ *
+ */
+ @JsonProperty("gtpVersion")
+ public void setGtpVersion(String gtpVersion) {
+ this.gtpVersion = gtpVersion;
+ }
+
+ /**
+ * HTTP request header, if the flow connects to a node referenced by HTTP
+ *
+ */
+ @JsonProperty("httpHeader")
+ public String getHttpHeader() {
+ return httpHeader;
+ }
+
+ /**
+ * HTTP request header, if the flow connects to a node referenced by HTTP
+ *
+ */
+ @JsonProperty("httpHeader")
+ public void setHttpHeader(String httpHeader) {
+ this.httpHeader = httpHeader;
+ }
+
+ /**
+ * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imei")
+ public String getImei() {
+ return imei;
+ }
+
+ /**
+ * IMEI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imei")
+ public void setImei(String imei) {
+ this.imei = imei;
+ }
+
+ /**
+ * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imsi")
+ public String getImsi() {
+ return imsi;
+ }
+
+ /**
+ * IMSI for the subscriber UE used in this flow, if the flow connects to a mobile device
+ *
+ */
+ @JsonProperty("imsi")
+ public void setImsi(String imsi) {
+ this.imsi = imsi;
+ }
+
+ /**
+ * IP protocol type e.g., TCP, UDP, RTP... (Required)
+ *
+ */
+ @JsonProperty("ipProtocolType")
+ public String getIpProtocolType() {
+ return ipProtocolType;
+ }
+
+ /**
+ * IP protocol type e.g., TCP, UDP, RTP... (Required)
+ *
+ */
+ @JsonProperty("ipProtocolType")
+ public void setIpProtocolType(String ipProtocolType) {
+ this.ipProtocolType = ipProtocolType;
+ }
+
+ /**
+ * IP protocol version e.g., IPv4, IPv6 (Required)
+ *
+ */
+ @JsonProperty("ipVersion")
+ public String getIpVersion() {
+ return ipVersion;
+ }
+
+ /**
+ * IP protocol version e.g., IPv4, IPv6 (Required)
+ *
+ */
+ @JsonProperty("ipVersion")
+ public void setIpVersion(String ipVersion) {
+ this.ipVersion = ipVersion;
+ }
+
+ /**
+ * location area code
+ *
+ */
+ @JsonProperty("lac")
+ public String getLac() {
+ return lac;
+ }
+
+ /**
+ * location area code
+ *
+ */
+ @JsonProperty("lac")
+ public void setLac(String lac) {
+ this.lac = lac;
+ }
+
+ /**
+ * mobile country code
+ *
+ */
+ @JsonProperty("mcc")
+ public String getMcc() {
+ return mcc;
+ }
+
+ /**
+ * mobile country code
+ *
+ */
+ @JsonProperty("mcc")
+ public void setMcc(String mcc) {
+ this.mcc = mcc;
+ }
+
+ /**
+ * mobile network code
+ *
+ */
+ @JsonProperty("mnc")
+ public String getMnc() {
+ return mnc;
+ }
+
+ /**
+ * mobile network code
+ *
+ */
+ @JsonProperty("mnc")
+ public void setMnc(String mnc) {
+ this.mnc = mnc;
+ }
+
+ /**
+ * version of the mobileFlowFields block (Required)
+ *
+ */
+ @JsonProperty("mobileFlowFieldsVersion")
+ public Double getMobileFlowFieldsVersion() {
+ return mobileFlowFieldsVersion;
+ }
+
+ /**
+ * version of the mobileFlowFields block (Required)
+ *
+ */
+ @JsonProperty("mobileFlowFieldsVersion")
+ public void setMobileFlowFieldsVersion(Double mobileFlowFieldsVersion) {
+ this.mobileFlowFieldsVersion = mobileFlowFieldsVersion;
+ }
+
+ /**
+ * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a
+ * mobile device
+ *
+ */
+ @JsonProperty("msisdn")
+ public String getMsisdn() {
+ return msisdn;
+ }
+
+ /**
+ * MSISDN for the subscriber UE used in this flow, as an integer, if the flow connects to a
+ * mobile device
+ *
+ */
+ @JsonProperty("msisdn")
+ public void setMsisdn(String msisdn) {
+ this.msisdn = msisdn;
+ }
+
+ /**
+ * IP address for the other endpoint, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointIpAddress")
+ public String getOtherEndpointIpAddress() {
+ return otherEndpointIpAddress;
+ }
+
+ /**
+ * IP address for the other endpoint, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointIpAddress")
+ public void setOtherEndpointIpAddress(String otherEndpointIpAddress) {
+ this.otherEndpointIpAddress = otherEndpointIpAddress;
+ }
+
+ /**
+ * IP Port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointPort")
+ public Integer getOtherEndpointPort() {
+ return otherEndpointPort;
+ }
+
+ /**
+ * IP Port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("otherEndpointPort")
+ public void setOtherEndpointPort(Integer otherEndpointPort) {
+ this.otherEndpointPort = otherEndpointPort;
+ }
+
+ /**
+ * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW,
+ * PCRF...
+ *
+ */
+ @JsonProperty("otherFunctionalRole")
+ public String getOtherFunctionalRole() {
+ return otherFunctionalRole;
+ }
+
+ /**
+ * Functional role of the other endpoint for the flow being reported on e.g., MME, S-GW, P-GW,
+ * PCRF...
+ *
+ */
+ @JsonProperty("otherFunctionalRole")
+ public void setOtherFunctionalRole(String otherFunctionalRole) {
+ this.otherFunctionalRole = otherFunctionalRole;
+ }
+
+ /**
+ * routing area code
+ *
+ */
+ @JsonProperty("rac")
+ public String getRac() {
+ return rac;
+ }
+
+ /**
+ * routing area code
+ *
+ */
+ @JsonProperty("rac")
+ public void setRac(String rac) {
+ this.rac = rac;
+ }
+
+ /**
+ * Radio Access Technology e.g., 2G, 3G, LTE
+ *
+ */
+ @JsonProperty("radioAccessTechnology")
+ public String getRadioAccessTechnology() {
+ return radioAccessTechnology;
+ }
+
+ /**
+ * Radio Access Technology e.g., 2G, 3G, LTE
+ *
+ */
+ @JsonProperty("radioAccessTechnology")
+ public void setRadioAccessTechnology(String radioAccessTechnology) {
+ this.radioAccessTechnology = radioAccessTechnology;
+ }
+
+ /**
+ * IP address for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointIpAddr")
+ public String getReportingEndpointIpAddr() {
+ return reportingEndpointIpAddr;
+ }
+
+ /**
+ * IP address for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointIpAddr")
+ public void setReportingEndpointIpAddr(String reportingEndpointIpAddr) {
+ this.reportingEndpointIpAddr = reportingEndpointIpAddr;
+ }
+
+ /**
+ * IP port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointPort")
+ public Integer getReportingEndpointPort() {
+ return reportingEndpointPort;
+ }
+
+ /**
+ * IP port for the reporting entity, as used for the flow being reported on (Required)
+ *
+ */
+ @JsonProperty("reportingEndpointPort")
+ public void setReportingEndpointPort(Integer reportingEndpointPort) {
+ this.reportingEndpointPort = reportingEndpointPort;
+ }
+
+ /**
+ * service area code
+ *
+ */
+ @JsonProperty("sac")
+ public String getSac() {
+ return sac;
+ }
+
+ /**
+ * service area code
+ *
+ */
+ @JsonProperty("sac")
+ public void setSac(String sac) {
+ this.sac = sac;
+ }
+
+ /**
+ * Integer identifier for the sampling algorithm or rule being applied in calculating the flow
+ * metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is
+ * applied
+ *
+ */
+ @JsonProperty("samplingAlgorithm")
+ public Integer getSamplingAlgorithm() {
+ return samplingAlgorithm;
+ }
+
+ /**
+ * Integer identifier for the sampling algorithm or rule being applied in calculating the flow
+ * metrics if metrics are calculated based on a sample of packets, or 0 if no sampling is
+ * applied
+ *
+ */
+ @JsonProperty("samplingAlgorithm")
+ public void setSamplingAlgorithm(Integer samplingAlgorithm) {
+ this.samplingAlgorithm = samplingAlgorithm;
+ }
+
+ /**
+ * transport area code
+ *
+ */
+ @JsonProperty("tac")
+ public String getTac() {
+ return tac;
+ }
+
+ /**
+ * transport area code
+ *
+ */
+ @JsonProperty("tac")
+ public void setTac(String tac) {
+ this.tac = tac;
+ }
+
+ /**
+ * tunnel identifier
+ *
+ */
+ @JsonProperty("tunnelId")
+ public String getTunnelId() {
+ return tunnelId;
+ }
+
+ /**
+ * tunnel identifier
+ *
+ */
+ @JsonProperty("tunnelId")
+ public void setTunnelId(String tunnelId) {
+ this.tunnelId = tunnelId;
+ }
+
+ /**
+ * VLAN identifier used by this flow
+ *
+ */
+ @JsonProperty("vlanId")
+ public String getVlanId() {
+ return vlanId;
+ }
+
+ /**
+ * VLAN identifier used by this flow
+ *
+ */
+ @JsonProperty("vlanId")
+ public void setVlanId(String vlanId) {
+ this.vlanId = vlanId;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(applicationType)
+ .append(appProtocolType).append(appProtocolVersion).append(cid)
+ .append(connectionType).append(ecgi).append(flowDirection).append(gtpPerFlowMetrics)
+ .append(gtpProtocolType).append(gtpVersion).append(httpHeader).append(imei)
+ .append(imsi).append(ipProtocolType).append(ipVersion).append(lac).append(mcc)
+ .append(mnc).append(mobileFlowFieldsVersion).append(msisdn)
+ .append(otherEndpointIpAddress).append(otherEndpointPort)
+ .append(otherFunctionalRole).append(rac).append(radioAccessTechnology)
+ .append(reportingEndpointIpAddr).append(reportingEndpointPort).append(sac)
+ .append(samplingAlgorithm).append(tac).append(tunnelId).append(vlanId)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstance.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstance.java new file mode 100644 index 0000000..bf9419f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstance.java @@ -0,0 +1,152 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * meta-information about an instance of a jsonObject along with the actual object instance
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"objectInstance", "objectInstanceEpochMicrosec", "objectKeys"})
+public class ObjectInstance {
+
+ /**
+ * an instance conforming to the jsonObject schema (Required)
+ *
+ */
+ @JsonProperty("objectInstance")
+ @JsonPropertyDescription("an instance conforming to the jsonObject schema")
+ private ObjectInstance objectInstance;
+ /**
+ * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed
+ * since 1 Jan 1970 not including leap seconds
+ *
+ */
+ @JsonProperty("objectInstanceEpochMicrosec")
+ @JsonPropertyDescription("the unix time aka epoch time associated with this objectInstance--as microseconds elapsed since 1 Jan 1970 not including leap seconds")
+ private Double objectInstanceEpochMicrosec;
+ /**
+ * an ordered set of keys that identifies this particular instance of jsonObject
+ *
+ */
+ @JsonProperty("objectKeys")
+ @JsonPropertyDescription("an ordered set of keys that identifies this particular instance of jsonObject")
+ private List<ObjectKey> objectKeys = new ArrayList<ObjectKey>();
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * an instance conforming to the jsonObject schema (Required)
+ *
+ */
+ @JsonProperty("objectInstance")
+ public ObjectInstance getObjectInstance() {
+ return objectInstance;
+ }
+
+ /**
+ * an instance conforming to the jsonObject schema (Required)
+ *
+ */
+ @JsonProperty("objectInstance")
+ public void setObjectInstance(ObjectInstance objectInstance) {
+ this.objectInstance = objectInstance;
+ }
+
+ /**
+ * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed
+ * since 1 Jan 1970 not including leap seconds
+ *
+ */
+ @JsonProperty("objectInstanceEpochMicrosec")
+ public Double getObjectInstanceEpochMicrosec() {
+ return objectInstanceEpochMicrosec;
+ }
+
+ /**
+ * the unix time aka epoch time associated with this objectInstance--as microseconds elapsed
+ * since 1 Jan 1970 not including leap seconds
+ *
+ */
+ @JsonProperty("objectInstanceEpochMicrosec")
+ public void setObjectInstanceEpochMicrosec(Double objectInstanceEpochMicrosec) {
+ this.objectInstanceEpochMicrosec = objectInstanceEpochMicrosec;
+ }
+
+ /**
+ * an ordered set of keys that identifies this particular instance of jsonObject
+ *
+ */
+ @JsonProperty("objectKeys")
+ public List<ObjectKey> getObjectKeys() {
+ return objectKeys;
+ }
+
+ /**
+ * an ordered set of keys that identifies this particular instance of jsonObject
+ *
+ */
+ @JsonProperty("objectKeys")
+ public void setObjectKeys(List<ObjectKey> objectKeys) {
+ this.objectKeys = objectKeys;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(objectInstance).append(objectInstanceEpochMicrosec)
+ .append(objectKeys).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKey.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKey.java new file mode 100644 index 0000000..194db17 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKey.java @@ -0,0 +1,147 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * tuple which provides the name of a key along with its value and relative order
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"keyName", "keyOrder", "keyValue"})
+public class ObjectKey {
+
+ /**
+ * name of the key (Required)
+ *
+ */
+ @JsonProperty("keyName")
+ @JsonPropertyDescription("name of the key")
+ private String keyName;
+ /**
+ * relative sequence or order of the key with respect to other keys
+ *
+ */
+ @JsonProperty("keyOrder")
+ @JsonPropertyDescription("relative sequence or order of the key with respect to other keys")
+ private Integer keyOrder;
+ /**
+ * value of the key
+ *
+ */
+ @JsonProperty("keyValue")
+ @JsonPropertyDescription("value of the key")
+ private String keyValue;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * name of the key (Required)
+ *
+ */
+ @JsonProperty("keyName")
+ public String getKeyName() {
+ return keyName;
+ }
+
+ /**
+ * name of the key (Required)
+ *
+ */
+ @JsonProperty("keyName")
+ public void setKeyName(String keyName) {
+ this.keyName = keyName;
+ }
+
+ /**
+ * relative sequence or order of the key with respect to other keys
+ *
+ */
+ @JsonProperty("keyOrder")
+ public Integer getKeyOrder() {
+ return keyOrder;
+ }
+
+ /**
+ * relative sequence or order of the key with respect to other keys
+ *
+ */
+ @JsonProperty("keyOrder")
+ public void setKeyOrder(Integer keyOrder) {
+ this.keyOrder = keyOrder;
+ }
+
+ /**
+ * value of the key
+ *
+ */
+ @JsonProperty("keyValue")
+ public String getKeyValue() {
+ return keyValue;
+ }
+
+ /**
+ * value of the key
+ *
+ */
+ @JsonProperty("keyValue")
+ public void setKeyValue(String keyValue) {
+ this.keyValue = keyValue;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(keyName).append(keyOrder).append(keyValue)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/OtherFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/OtherFields.java new file mode 100644 index 0000000..1fe76cb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/OtherFields.java @@ -0,0 +1,179 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"hashOfNameValuePairArrays", "jsonObjects", "nameValuePairs",
+ "otherFieldsVersion"})
+public class OtherFields {
+
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("hashOfNameValuePairArrays")
+ @JsonPropertyDescription("array of named name-value-pair arrays")
+ private List<AdditionalMeasurement> hashOfNameValuePairArrays =
+ new ArrayList<AdditionalMeasurement>();
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("jsonObjects")
+ @JsonPropertyDescription("array of JSON objects described by name, schema and other meta-information")
+ private List<AdditionalObject> jsonObjects = new ArrayList<AdditionalObject>();
+ /**
+ * array of name-value pairs
+ *
+ */
+ @JsonProperty("nameValuePairs")
+ @JsonPropertyDescription("array of name-value pairs")
+ private List<AlarmAdditionalInformation> nameValuePairs =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * version of the otherFields block (Required)
+ *
+ */
+ @JsonProperty("otherFieldsVersion")
+ @JsonPropertyDescription("version of the otherFields block")
+ private Double otherFieldsVersion;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("hashOfNameValuePairArrays")
+ public List<AdditionalMeasurement> getHashOfNameValuePairArrays() {
+ return hashOfNameValuePairArrays;
+ }
+
+ /**
+ * array of named name-value-pair arrays
+ *
+ */
+ @JsonProperty("hashOfNameValuePairArrays")
+ public void setHashOfNameValuePairArrays(
+ List<AdditionalMeasurement> hashOfNameValuePairArrays) {
+ this.hashOfNameValuePairArrays = hashOfNameValuePairArrays;
+ }
+
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("jsonObjects")
+ public List<AdditionalObject> getJsonObjects() {
+ return jsonObjects;
+ }
+
+ /**
+ * array of JSON objects described by name, schema and other meta-information
+ *
+ */
+ @JsonProperty("jsonObjects")
+ public void setJsonObjects(List<AdditionalObject> jsonObjects) {
+ this.jsonObjects = jsonObjects;
+ }
+
+ /**
+ * array of name-value pairs
+ *
+ */
+ @JsonProperty("nameValuePairs")
+ public List<AlarmAdditionalInformation> getNameValuePairs() {
+ return nameValuePairs;
+ }
+
+ /**
+ * array of name-value pairs
+ *
+ */
+ @JsonProperty("nameValuePairs")
+ public void setNameValuePairs(List<AlarmAdditionalInformation> nameValuePairs) {
+ this.nameValuePairs = nameValuePairs;
+ }
+
+ /**
+ * version of the otherFields block (Required)
+ *
+ */
+ @JsonProperty("otherFieldsVersion")
+ public Double getOtherFieldsVersion() {
+ return otherFieldsVersion;
+ }
+
+ /**
+ * version of the otherFields block (Required)
+ *
+ */
+ @JsonProperty("otherFieldsVersion")
+ public void setOtherFieldsVersion(Double otherFieldsVersion) {
+ this.otherFieldsVersion = otherFieldsVersion;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(hashOfNameValuePairArrays).append(jsonObjects)
+ .append(nameValuePairs).append(otherFieldsVersion).append(additionalProperties)
+ .toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFields.java new file mode 100644 index 0000000..ce7631e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFields.java @@ -0,0 +1,329 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * sip signaling fields
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalInformation", "compressedSip", "correlator", "localIpAddress",
+ "localPort", "remoteIpAddress", "remotePort", "sipSignalingFieldsVersion", "summarySip",
+ "vendorVnfNameFields"})
+public class SipSignalingFields {
+
+ /**
+ * additional sip signaling fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ @JsonPropertyDescription("additional sip signaling fields if needed")
+ private List<AlarmAdditionalInformation> additionalInformation =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * the full SIP request/response including headers and bodies
+ *
+ */
+ @JsonProperty("compressedSip")
+ @JsonPropertyDescription("the full SIP request/response including headers and bodies")
+ private String compressedSip;
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ @JsonPropertyDescription("this is the same for all events on this call")
+ private String correlator;
+ /**
+ * IP address on VNF (Required)
+ *
+ */
+ @JsonProperty("localIpAddress")
+ @JsonPropertyDescription("IP address on VNF")
+ private String localIpAddress;
+ /**
+ * port on VNF (Required)
+ *
+ */
+ @JsonProperty("localPort")
+ @JsonPropertyDescription("port on VNF")
+ private String localPort;
+ /**
+ * IP address of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remoteIpAddress")
+ @JsonPropertyDescription("IP address of peer endpoint")
+ private String remoteIpAddress;
+ /**
+ * port of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remotePort")
+ @JsonPropertyDescription("port of peer endpoint")
+ private String remotePort;
+ /**
+ * version of the sipSignalingFields block (Required)
+ *
+ */
+ @JsonProperty("sipSignalingFieldsVersion")
+ @JsonPropertyDescription("version of the sipSignalingFields block")
+ private Double sipSignalingFieldsVersion;
+ /**
+ * the SIP Method or Response (‘INVITE’, ‘200 OK’, ‘BYE’, etc)
+ *
+ */
+ @JsonProperty("summarySip")
+ @JsonPropertyDescription("the SIP Method or Response (\u2018INVITE\u2019, \u2018200 OK\u2019, \u2018BYE\u2019, etc)")
+ private String summarySip;
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ @JsonPropertyDescription("provides vendor, vnf and vfModule identifying information")
+ private VendorVnfNameFields vendorVnfNameFields;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional sip signaling fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ public List<AlarmAdditionalInformation> getAdditionalInformation() {
+ return additionalInformation;
+ }
+
+ /**
+ * additional sip signaling fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ public void setAdditionalInformation(List<AlarmAdditionalInformation> additionalInformation) {
+ this.additionalInformation = additionalInformation;
+ }
+
+ /**
+ * the full SIP request/response including headers and bodies
+ *
+ */
+ @JsonProperty("compressedSip")
+ public String getCompressedSip() {
+ return compressedSip;
+ }
+
+ /**
+ * the full SIP request/response including headers and bodies
+ *
+ */
+ @JsonProperty("compressedSip")
+ public void setCompressedSip(String compressedSip) {
+ this.compressedSip = compressedSip;
+ }
+
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ public String getCorrelator() {
+ return correlator;
+ }
+
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ public void setCorrelator(String correlator) {
+ this.correlator = correlator;
+ }
+
+ /**
+ * IP address on VNF (Required)
+ *
+ */
+ @JsonProperty("localIpAddress")
+ public String getLocalIpAddress() {
+ return localIpAddress;
+ }
+
+ /**
+ * IP address on VNF (Required)
+ *
+ */
+ @JsonProperty("localIpAddress")
+ public void setLocalIpAddress(String localIpAddress) {
+ this.localIpAddress = localIpAddress;
+ }
+
+ /**
+ * port on VNF (Required)
+ *
+ */
+ @JsonProperty("localPort")
+ public String getLocalPort() {
+ return localPort;
+ }
+
+ /**
+ * port on VNF (Required)
+ *
+ */
+ @JsonProperty("localPort")
+ public void setLocalPort(String localPort) {
+ this.localPort = localPort;
+ }
+
+ /**
+ * IP address of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remoteIpAddress")
+ public String getRemoteIpAddress() {
+ return remoteIpAddress;
+ }
+
+ /**
+ * IP address of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remoteIpAddress")
+ public void setRemoteIpAddress(String remoteIpAddress) {
+ this.remoteIpAddress = remoteIpAddress;
+ }
+
+ /**
+ * port of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remotePort")
+ public String getRemotePort() {
+ return remotePort;
+ }
+
+ /**
+ * port of peer endpoint (Required)
+ *
+ */
+ @JsonProperty("remotePort")
+ public void setRemotePort(String remotePort) {
+ this.remotePort = remotePort;
+ }
+
+ /**
+ * version of the sipSignalingFields block (Required)
+ *
+ */
+ @JsonProperty("sipSignalingFieldsVersion")
+ public Double getSipSignalingFieldsVersion() {
+ return sipSignalingFieldsVersion;
+ }
+
+ /**
+ * version of the sipSignalingFields block (Required)
+ *
+ */
+ @JsonProperty("sipSignalingFieldsVersion")
+ public void setSipSignalingFieldsVersion(Double sipSignalingFieldsVersion) {
+ this.sipSignalingFieldsVersion = sipSignalingFieldsVersion;
+ }
+
+ /**
+ * the SIP Method or Response (‘INVITE’, ‘200 OK’, ‘BYE’, etc)
+ *
+ */
+ @JsonProperty("summarySip")
+ public String getSummarySip() {
+ return summarySip;
+ }
+
+ /**
+ * the SIP Method or Response (‘INVITE’, ‘200 OK’, ‘BYE’, etc)
+ *
+ */
+ @JsonProperty("summarySip")
+ public void setSummarySip(String summarySip) {
+ this.summarySip = summarySip;
+ }
+
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ public VendorVnfNameFields getVendorVnfNameFields() {
+ return vendorVnfNameFields;
+ }
+
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ public void setVendorVnfNameFields(VendorVnfNameFields vendorVnfNameFields) {
+ this.vendorVnfNameFields = vendorVnfNameFields;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalInformation).append(compressedSip)
+ .append(correlator).append(localIpAddress).append(localPort).append(remoteIpAddress)
+ .append(remotePort).append(sipSignalingFieldsVersion).append(summarySip)
+ .append(vendorVnfNameFields).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFields.java new file mode 100644 index 0000000..5a3500a --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFields.java @@ -0,0 +1,282 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * stateChange fields
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "newState", "oldState", "stateChangeFieldsVersion",
+ "stateInterface"})
+public class StateChangeFields {
+
+ /**
+ * additional stateChange fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional stateChange fields if needed")
+ private List<AlarmAdditionalInformation> additionalFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * new state of the entity (Required)
+ *
+ */
+ @JsonProperty("newState")
+ @JsonPropertyDescription("new state of the entity")
+ private StateChangeFields.NewState newState;
+ /**
+ * previous state of the entity (Required)
+ *
+ */
+ @JsonProperty("oldState")
+ @JsonPropertyDescription("previous state of the entity")
+ private StateChangeFields.OldState oldState;
+ /**
+ * version of the stateChangeFields block (Required)
+ *
+ */
+ @JsonProperty("stateChangeFieldsVersion")
+ @JsonPropertyDescription("version of the stateChangeFields block")
+ private Double stateChangeFieldsVersion;
+ /**
+ * card or port name of the entity that changed state (Required)
+ *
+ */
+ @JsonProperty("stateInterface")
+ @JsonPropertyDescription("card or port name of the entity that changed state")
+ private String stateInterface;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional stateChange fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public List<AlarmAdditionalInformation> getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional stateChange fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(List<AlarmAdditionalInformation> additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * new state of the entity (Required)
+ *
+ */
+ @JsonProperty("newState")
+ public StateChangeFields.NewState getNewState() {
+ return newState;
+ }
+
+ /**
+ * new state of the entity (Required)
+ *
+ */
+ @JsonProperty("newState")
+ public void setNewState(StateChangeFields.NewState newState) {
+ this.newState = newState;
+ }
+
+ /**
+ * previous state of the entity (Required)
+ *
+ */
+ @JsonProperty("oldState")
+ public StateChangeFields.OldState getOldState() {
+ return oldState;
+ }
+
+ /**
+ * previous state of the entity (Required)
+ *
+ */
+ @JsonProperty("oldState")
+ public void setOldState(StateChangeFields.OldState oldState) {
+ this.oldState = oldState;
+ }
+
+ /**
+ * version of the stateChangeFields block (Required)
+ *
+ */
+ @JsonProperty("stateChangeFieldsVersion")
+ public Double getStateChangeFieldsVersion() {
+ return stateChangeFieldsVersion;
+ }
+
+ /**
+ * version of the stateChangeFields block (Required)
+ *
+ */
+ @JsonProperty("stateChangeFieldsVersion")
+ public void setStateChangeFieldsVersion(Double stateChangeFieldsVersion) {
+ this.stateChangeFieldsVersion = stateChangeFieldsVersion;
+ }
+
+ /**
+ * card or port name of the entity that changed state (Required)
+ *
+ */
+ @JsonProperty("stateInterface")
+ public String getStateInterface() {
+ return stateInterface;
+ }
+
+ /**
+ * card or port name of the entity that changed state (Required)
+ *
+ */
+ @JsonProperty("stateInterface")
+ public void setStateInterface(String stateInterface) {
+ this.stateInterface = stateInterface;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(newState).append(oldState)
+ .append(stateChangeFieldsVersion).append(stateInterface)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum NewState {
+
+ IN_SERVICE("inService"), MAINTENANCE("maintenance"), OUT_OF_SERVICE("outOfService");
+ private final String value;
+ private final static Map<String, StateChangeFields.NewState> CONSTANTS =
+ new HashMap<String, StateChangeFields.NewState>();
+
+ static {
+ for (StateChangeFields.NewState c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private NewState(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static StateChangeFields.NewState fromValue(String value) {
+ StateChangeFields.NewState constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+ public enum OldState {
+
+ IN_SERVICE("inService"), MAINTENANCE("maintenance"), OUT_OF_SERVICE("outOfService");
+ private final String value;
+ private final static Map<String, StateChangeFields.OldState> CONSTANTS =
+ new HashMap<String, StateChangeFields.OldState>();
+
+ static {
+ for (StateChangeFields.OldState c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private OldState(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static StateChangeFields.OldState fromValue(String value) {
+ StateChangeFields.OldState constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFields.java new file mode 100644 index 0000000..d3c2ef1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFields.java @@ -0,0 +1,481 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * sysLog fields
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "eventSourceHost", "eventSourceType", "syslogFacility",
+ "syslogFieldsVersion", "syslogMsg", "syslogPri", "syslogProc", "syslogProcId",
+ "syslogSData", "syslogSdId", "syslogSev", "syslogTag", "syslogVer"})
+public class SyslogFields {
+
+ /**
+ * additional syslog fields if needed provided as name=value delimited by a pipe ‘|’ symbol, for
+ * example: 'name1=value1|name2=value2|…'
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional syslog fields if needed provided as name=value delimited by a pipe \u2018|\u2019 symbol, for example: 'name1=value1|name2=value2|\u2026'")
+ private String additionalFields;
+ /**
+ * hostname of the device
+ *
+ */
+ @JsonProperty("eventSourceHost")
+ @JsonPropertyDescription("hostname of the device")
+ private String eventSourceHost;
+ /**
+ * type of event source; examples: other, router, switch, host, card, port, slotThreshold,
+ * portThreshold, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ @JsonPropertyDescription("type of event source; examples: other, router, switch, host, card, port, slotThreshold, portThreshold, virtualMachine, virtualNetworkFunction")
+ private String eventSourceType;
+ /**
+ * numeric code from 0 to 23 for facility--see table in documentation
+ *
+ */
+ @JsonProperty("syslogFacility")
+ @JsonPropertyDescription("numeric code from 0 to 23 for facility--see table in documentation")
+ private Integer syslogFacility;
+ /**
+ * version of the syslogFields block (Required)
+ *
+ */
+ @JsonProperty("syslogFieldsVersion")
+ @JsonPropertyDescription("version of the syslogFields block")
+ private Double syslogFieldsVersion;
+ /**
+ * syslog message (Required)
+ *
+ */
+ @JsonProperty("syslogMsg")
+ @JsonPropertyDescription("syslog message")
+ private String syslogMsg;
+ /**
+ * 0-192 combined severity and facility
+ *
+ */
+ @JsonProperty("syslogPri")
+ @JsonPropertyDescription("0-192 combined severity and facility")
+ private Integer syslogPri;
+ /**
+ * identifies the application that originated the message
+ *
+ */
+ @JsonProperty("syslogProc")
+ @JsonPropertyDescription("identifies the application that originated the message")
+ private String syslogProc;
+ /**
+ * a change in the value of this field indicates a discontinuity in syslog reporting
+ *
+ */
+ @JsonProperty("syslogProcId")
+ @JsonPropertyDescription("a change in the value of this field indicates a discontinuity in syslog reporting")
+ private Double syslogProcId;
+ /**
+ * syslog structured data consisting of a structured data Id followed by a set of key value
+ * pairs
+ *
+ */
+ @JsonProperty("syslogSData")
+ @JsonPropertyDescription("syslog structured data consisting of a structured data Id followed by a set of key value pairs")
+ private String syslogSData;
+ /**
+ * 0-32 char in format name@number for example ourSDID@32473
+ *
+ */
+ @JsonProperty("syslogSdId")
+ @JsonPropertyDescription("0-32 char in format name@number for example ourSDID@32473")
+ private String syslogSdId;
+ /**
+ * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8
+ *
+ */
+ @JsonProperty("syslogSev")
+ @JsonPropertyDescription("numerical Code for severity derived from syslogPri as remaider of syslogPri / 8")
+ private SyslogFields.SyslogSev syslogSev;
+ /**
+ * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no
+ * other value can be provided (Required)
+ *
+ */
+ @JsonProperty("syslogTag")
+ @JsonPropertyDescription("msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no other value can be provided")
+ private String syslogTag;
+ /**
+ * IANA assigned version of the syslog protocol specification - typically 1
+ *
+ */
+ @JsonProperty("syslogVer")
+ @JsonPropertyDescription("IANA assigned version of the syslog protocol specification - typically 1")
+ private Double syslogVer;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional syslog fields if needed provided as name=value delimited by a pipe ‘|’ symbol, for
+ * example: 'name1=value1|name2=value2|…'
+ *
+ */
+ @JsonProperty("additionalFields")
+ public String getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional syslog fields if needed provided as name=value delimited by a pipe ‘|’ symbol, for
+ * example: 'name1=value1|name2=value2|…'
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(String additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * hostname of the device
+ *
+ */
+ @JsonProperty("eventSourceHost")
+ public String getEventSourceHost() {
+ return eventSourceHost;
+ }
+
+ /**
+ * hostname of the device
+ *
+ */
+ @JsonProperty("eventSourceHost")
+ public void setEventSourceHost(String eventSourceHost) {
+ this.eventSourceHost = eventSourceHost;
+ }
+
+ /**
+ * type of event source; examples: other, router, switch, host, card, port, slotThreshold,
+ * portThreshold, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ public String getEventSourceType() {
+ return eventSourceType;
+ }
+
+ /**
+ * type of event source; examples: other, router, switch, host, card, port, slotThreshold,
+ * portThreshold, virtualMachine, virtualNetworkFunction (Required)
+ *
+ */
+ @JsonProperty("eventSourceType")
+ public void setEventSourceType(String eventSourceType) {
+ this.eventSourceType = eventSourceType;
+ }
+
+ /**
+ * numeric code from 0 to 23 for facility--see table in documentation
+ *
+ */
+ @JsonProperty("syslogFacility")
+ public Integer getSyslogFacility() {
+ return syslogFacility;
+ }
+
+ /**
+ * numeric code from 0 to 23 for facility--see table in documentation
+ *
+ */
+ @JsonProperty("syslogFacility")
+ public void setSyslogFacility(Integer syslogFacility) {
+ this.syslogFacility = syslogFacility;
+ }
+
+ /**
+ * version of the syslogFields block (Required)
+ *
+ */
+ @JsonProperty("syslogFieldsVersion")
+ public Double getSyslogFieldsVersion() {
+ return syslogFieldsVersion;
+ }
+
+ /**
+ * version of the syslogFields block (Required)
+ *
+ */
+ @JsonProperty("syslogFieldsVersion")
+ public void setSyslogFieldsVersion(Double syslogFieldsVersion) {
+ this.syslogFieldsVersion = syslogFieldsVersion;
+ }
+
+ /**
+ * syslog message (Required)
+ *
+ */
+ @JsonProperty("syslogMsg")
+ public String getSyslogMsg() {
+ return syslogMsg;
+ }
+
+ /**
+ * syslog message (Required)
+ *
+ */
+ @JsonProperty("syslogMsg")
+ public void setSyslogMsg(String syslogMsg) {
+ this.syslogMsg = syslogMsg;
+ }
+
+ /**
+ * 0-192 combined severity and facility
+ *
+ */
+ @JsonProperty("syslogPri")
+ public Integer getSyslogPri() {
+ return syslogPri;
+ }
+
+ /**
+ * 0-192 combined severity and facility
+ *
+ */
+ @JsonProperty("syslogPri")
+ public void setSyslogPri(Integer syslogPri) {
+ this.syslogPri = syslogPri;
+ }
+
+ /**
+ * identifies the application that originated the message
+ *
+ */
+ @JsonProperty("syslogProc")
+ public String getSyslogProc() {
+ return syslogProc;
+ }
+
+ /**
+ * identifies the application that originated the message
+ *
+ */
+ @JsonProperty("syslogProc")
+ public void setSyslogProc(String syslogProc) {
+ this.syslogProc = syslogProc;
+ }
+
+ /**
+ * a change in the value of this field indicates a discontinuity in syslog reporting
+ *
+ */
+ @JsonProperty("syslogProcId")
+ public Double getSyslogProcId() {
+ return syslogProcId;
+ }
+
+ /**
+ * a change in the value of this field indicates a discontinuity in syslog reporting
+ *
+ */
+ @JsonProperty("syslogProcId")
+ public void setSyslogProcId(Double syslogProcId) {
+ this.syslogProcId = syslogProcId;
+ }
+
+ /**
+ * syslog structured data consisting of a structured data Id followed by a set of key value
+ * pairs
+ *
+ */
+ @JsonProperty("syslogSData")
+ public String getSyslogSData() {
+ return syslogSData;
+ }
+
+ /**
+ * syslog structured data consisting of a structured data Id followed by a set of key value
+ * pairs
+ *
+ */
+ @JsonProperty("syslogSData")
+ public void setSyslogSData(String syslogSData) {
+ this.syslogSData = syslogSData;
+ }
+
+ /**
+ * 0-32 char in format name@number for example ourSDID@32473
+ *
+ */
+ @JsonProperty("syslogSdId")
+ public String getSyslogSdId() {
+ return syslogSdId;
+ }
+
+ /**
+ * 0-32 char in format name@number for example ourSDID@32473
+ *
+ */
+ @JsonProperty("syslogSdId")
+ public void setSyslogSdId(String syslogSdId) {
+ this.syslogSdId = syslogSdId;
+ }
+
+ /**
+ * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8
+ *
+ */
+ @JsonProperty("syslogSev")
+ public SyslogFields.SyslogSev getSyslogSev() {
+ return syslogSev;
+ }
+
+ /**
+ * numerical Code for severity derived from syslogPri as remaider of syslogPri / 8
+ *
+ */
+ @JsonProperty("syslogSev")
+ public void setSyslogSev(SyslogFields.SyslogSev syslogSev) {
+ this.syslogSev = syslogSev;
+ }
+
+ /**
+ * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no
+ * other value can be provided (Required)
+ *
+ */
+ @JsonProperty("syslogTag")
+ public String getSyslogTag() {
+ return syslogTag;
+ }
+
+ /**
+ * msgId indicating the type of message such as TCPOUT or TCPIN; NILVALUE should be used when no
+ * other value can be provided (Required)
+ *
+ */
+ @JsonProperty("syslogTag")
+ public void setSyslogTag(String syslogTag) {
+ this.syslogTag = syslogTag;
+ }
+
+ /**
+ * IANA assigned version of the syslog protocol specification - typically 1
+ *
+ */
+ @JsonProperty("syslogVer")
+ public Double getSyslogVer() {
+ return syslogVer;
+ }
+
+ /**
+ * IANA assigned version of the syslog protocol specification - typically 1
+ *
+ */
+ @JsonProperty("syslogVer")
+ public void setSyslogVer(Double syslogVer) {
+ this.syslogVer = syslogVer;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(eventSourceHost)
+ .append(eventSourceType).append(syslogFacility).append(syslogFieldsVersion)
+ .append(syslogMsg).append(syslogPri).append(syslogProc).append(syslogProcId)
+ .append(syslogSData).append(syslogSdId).append(syslogSev).append(syslogTag)
+ .append(syslogVer).append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum SyslogSev {
+
+ ALERT("Alert"), CRITICAL("Critical"), DEBUG("Debug"), EMERGENCY("Emergency"), ERROR(
+ "Error"), INFO("Info"), NOTICE("Notice"), WARNING("Warning");
+ private final String value;
+ private final static Map<String, SyslogFields.SyslogSev> CONSTANTS =
+ new HashMap<String, SyslogFields.SyslogSev>();
+
+ static {
+ for (SyslogFields.SyslogSev c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private SyslogSev(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static SyslogFields.SyslogSev fromValue(String value) {
+ SyslogFields.SyslogSev constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFields.java new file mode 100644 index 0000000..f26f57d --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFields.java @@ -0,0 +1,608 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * fields specific to threshold crossing alert events
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalFields", "additionalParameters", "alertAction", "alertDescription",
+ "alertType", "alertValue", "associatedAlertIdList", "collectionTimestamp", "dataCollector",
+ "elementType", "eventSeverity", "eventStartTimestamp", "interfaceName", "networkService",
+ "possibleRootCause", "thresholdCrossingFieldsVersion"})
+public class ThresholdCrossingAlertFields {
+
+ /**
+ * additional threshold crossing alert fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ @JsonPropertyDescription("additional threshold crossing alert fields if needed")
+ private List<AlarmAdditionalInformation> additionalFields =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * performance counters (Required)
+ *
+ */
+ @JsonProperty("additionalParameters")
+ @JsonPropertyDescription("performance counters")
+ private List<AdditionalParameter> additionalParameters = new ArrayList<AdditionalParameter>();
+ /**
+ * Event action (Required)
+ *
+ */
+ @JsonProperty("alertAction")
+ @JsonPropertyDescription("Event action")
+ private ThresholdCrossingAlertFields.AlertAction alertAction;
+ /**
+ * Unique short alert description such as IF-SHUB-ERRDROP (Required)
+ *
+ */
+ @JsonProperty("alertDescription")
+ @JsonPropertyDescription("Unique short alert description such as IF-SHUB-ERRDROP")
+ private String alertDescription;
+ /**
+ * Event type (Required)
+ *
+ */
+ @JsonProperty("alertType")
+ @JsonPropertyDescription("Event type")
+ private ThresholdCrossingAlertFields.AlertType alertType;
+ /**
+ * Calculated API value (if applicable)
+ *
+ */
+ @JsonProperty("alertValue")
+ @JsonPropertyDescription("Calculated API value (if applicable)")
+ private String alertValue;
+ /**
+ * List of eventIds associated with the event being reported
+ *
+ */
+ @JsonProperty("associatedAlertIdList")
+ @JsonPropertyDescription("List of eventIds associated with the event being reported")
+ private List<String> associatedAlertIdList = new ArrayList<String>();
+ /**
+ * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat,
+ * 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("collectionTimestamp")
+ @JsonPropertyDescription("Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800")
+ private String collectionTimestamp;
+ /**
+ * Specific performance collector instance used
+ *
+ */
+ @JsonProperty("dataCollector")
+ @JsonPropertyDescription("Specific performance collector instance used")
+ private String dataCollector;
+ /**
+ * type of network element - internal ATT field
+ *
+ */
+ @JsonProperty("elementType")
+ @JsonPropertyDescription("type of network element - internal ATT field")
+ private String elementType;
+ /**
+ * event severity or priority (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ @JsonPropertyDescription("event severity or priority")
+ private ThresholdCrossingAlertFields.EventSeverity eventSeverity;
+ /**
+ * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("eventStartTimestamp")
+ @JsonPropertyDescription("Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar 2010 11:29:05 -0800")
+ private String eventStartTimestamp;
+ /**
+ * Physical or logical port or card (if applicable)
+ *
+ */
+ @JsonProperty("interfaceName")
+ @JsonPropertyDescription("Physical or logical port or card (if applicable)")
+ private String interfaceName;
+ /**
+ * network name - internal ATT field
+ *
+ */
+ @JsonProperty("networkService")
+ @JsonPropertyDescription("network name - internal ATT field")
+ private String networkService;
+ /**
+ * Reserved for future use
+ *
+ */
+ @JsonProperty("possibleRootCause")
+ @JsonPropertyDescription("Reserved for future use")
+ private String possibleRootCause;
+ /**
+ * version of the thresholdCrossingAlertFields block (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossingFieldsVersion")
+ @JsonPropertyDescription("version of the thresholdCrossingAlertFields block")
+ private Double thresholdCrossingFieldsVersion;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional threshold crossing alert fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public List<AlarmAdditionalInformation> getAdditionalFields() {
+ return additionalFields;
+ }
+
+ /**
+ * additional threshold crossing alert fields if needed
+ *
+ */
+ @JsonProperty("additionalFields")
+ public void setAdditionalFields(List<AlarmAdditionalInformation> additionalFields) {
+ this.additionalFields = additionalFields;
+ }
+
+ /**
+ * performance counters (Required)
+ *
+ */
+ @JsonProperty("additionalParameters")
+ public List<AdditionalParameter> getAdditionalParameters() {
+ return additionalParameters;
+ }
+
+ /**
+ * performance counters (Required)
+ *
+ */
+ @JsonProperty("additionalParameters")
+ public void setAdditionalParameters(List<AdditionalParameter> additionalParameters) {
+ this.additionalParameters = additionalParameters;
+ }
+
+ /**
+ * Event action (Required)
+ *
+ */
+ @JsonProperty("alertAction")
+ public ThresholdCrossingAlertFields.AlertAction getAlertAction() {
+ return alertAction;
+ }
+
+ /**
+ * Event action (Required)
+ *
+ */
+ @JsonProperty("alertAction")
+ public void setAlertAction(ThresholdCrossingAlertFields.AlertAction alertAction) {
+ this.alertAction = alertAction;
+ }
+
+ /**
+ * Unique short alert description such as IF-SHUB-ERRDROP (Required)
+ *
+ */
+ @JsonProperty("alertDescription")
+ public String getAlertDescription() {
+ return alertDescription;
+ }
+
+ /**
+ * Unique short alert description such as IF-SHUB-ERRDROP (Required)
+ *
+ */
+ @JsonProperty("alertDescription")
+ public void setAlertDescription(String alertDescription) {
+ this.alertDescription = alertDescription;
+ }
+
+ /**
+ * Event type (Required)
+ *
+ */
+ @JsonProperty("alertType")
+ public ThresholdCrossingAlertFields.AlertType getAlertType() {
+ return alertType;
+ }
+
+ /**
+ * Event type (Required)
+ *
+ */
+ @JsonProperty("alertType")
+ public void setAlertType(ThresholdCrossingAlertFields.AlertType alertType) {
+ this.alertType = alertType;
+ }
+
+ /**
+ * Calculated API value (if applicable)
+ *
+ */
+ @JsonProperty("alertValue")
+ public String getAlertValue() {
+ return alertValue;
+ }
+
+ /**
+ * Calculated API value (if applicable)
+ *
+ */
+ @JsonProperty("alertValue")
+ public void setAlertValue(String alertValue) {
+ this.alertValue = alertValue;
+ }
+
+ /**
+ * List of eventIds associated with the event being reported
+ *
+ */
+ @JsonProperty("associatedAlertIdList")
+ public List<String> getAssociatedAlertIdList() {
+ return associatedAlertIdList;
+ }
+
+ /**
+ * List of eventIds associated with the event being reported
+ *
+ */
+ @JsonProperty("associatedAlertIdList")
+ public void setAssociatedAlertIdList(List<String> associatedAlertIdList) {
+ this.associatedAlertIdList = associatedAlertIdList;
+ }
+
+ /**
+ * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat,
+ * 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("collectionTimestamp")
+ public String getCollectionTimestamp() {
+ return collectionTimestamp;
+ }
+
+ /**
+ * Time when the performance collector picked up the data; with RFC 2822 compliant format: Sat,
+ * 13 Mar 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("collectionTimestamp")
+ public void setCollectionTimestamp(String collectionTimestamp) {
+ this.collectionTimestamp = collectionTimestamp;
+ }
+
+ /**
+ * Specific performance collector instance used
+ *
+ */
+ @JsonProperty("dataCollector")
+ public String getDataCollector() {
+ return dataCollector;
+ }
+
+ /**
+ * Specific performance collector instance used
+ *
+ */
+ @JsonProperty("dataCollector")
+ public void setDataCollector(String dataCollector) {
+ this.dataCollector = dataCollector;
+ }
+
+ /**
+ * type of network element - internal ATT field
+ *
+ */
+ @JsonProperty("elementType")
+ public String getElementType() {
+ return elementType;
+ }
+
+ /**
+ * type of network element - internal ATT field
+ *
+ */
+ @JsonProperty("elementType")
+ public void setElementType(String elementType) {
+ this.elementType = elementType;
+ }
+
+ /**
+ * event severity or priority (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ public ThresholdCrossingAlertFields.EventSeverity getEventSeverity() {
+ return eventSeverity;
+ }
+
+ /**
+ * event severity or priority (Required)
+ *
+ */
+ @JsonProperty("eventSeverity")
+ public void setEventSeverity(ThresholdCrossingAlertFields.EventSeverity eventSeverity) {
+ this.eventSeverity = eventSeverity;
+ }
+
+ /**
+ * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("eventStartTimestamp")
+ public String getEventStartTimestamp() {
+ return eventStartTimestamp;
+ }
+
+ /**
+ * Time closest to when the measurement was made; with RFC 2822 compliant format: Sat, 13 Mar
+ * 2010 11:29:05 -0800 (Required)
+ *
+ */
+ @JsonProperty("eventStartTimestamp")
+ public void setEventStartTimestamp(String eventStartTimestamp) {
+ this.eventStartTimestamp = eventStartTimestamp;
+ }
+
+ /**
+ * Physical or logical port or card (if applicable)
+ *
+ */
+ @JsonProperty("interfaceName")
+ public String getInterfaceName() {
+ return interfaceName;
+ }
+
+ /**
+ * Physical or logical port or card (if applicable)
+ *
+ */
+ @JsonProperty("interfaceName")
+ public void setInterfaceName(String interfaceName) {
+ this.interfaceName = interfaceName;
+ }
+
+ /**
+ * network name - internal ATT field
+ *
+ */
+ @JsonProperty("networkService")
+ public String getNetworkService() {
+ return networkService;
+ }
+
+ /**
+ * network name - internal ATT field
+ *
+ */
+ @JsonProperty("networkService")
+ public void setNetworkService(String networkService) {
+ this.networkService = networkService;
+ }
+
+ /**
+ * Reserved for future use
+ *
+ */
+ @JsonProperty("possibleRootCause")
+ public String getPossibleRootCause() {
+ return possibleRootCause;
+ }
+
+ /**
+ * Reserved for future use
+ *
+ */
+ @JsonProperty("possibleRootCause")
+ public void setPossibleRootCause(String possibleRootCause) {
+ this.possibleRootCause = possibleRootCause;
+ }
+
+ /**
+ * version of the thresholdCrossingAlertFields block (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossingFieldsVersion")
+ public Double getThresholdCrossingFieldsVersion() {
+ return thresholdCrossingFieldsVersion;
+ }
+
+ /**
+ * version of the thresholdCrossingAlertFields block (Required)
+ *
+ */
+ @JsonProperty("thresholdCrossingFieldsVersion")
+ public void setThresholdCrossingFieldsVersion(Double thresholdCrossingFieldsVersion) {
+ this.thresholdCrossingFieldsVersion = thresholdCrossingFieldsVersion;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalFields).append(additionalParameters)
+ .append(alertAction).append(alertDescription).append(alertType).append(alertValue)
+ .append(associatedAlertIdList).append(collectionTimestamp).append(dataCollector)
+ .append(elementType).append(eventSeverity).append(eventStartTimestamp)
+ .append(interfaceName).append(networkService).append(possibleRootCause)
+ .append(thresholdCrossingFieldsVersion).append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum AlertAction {
+
+ CLEAR("CLEAR"), CONT("CONT"), SET("SET");
+ private final String value;
+ private final static Map<String, ThresholdCrossingAlertFields.AlertAction> CONSTANTS =
+ new HashMap<String, ThresholdCrossingAlertFields.AlertAction>();
+
+ static {
+ for (ThresholdCrossingAlertFields.AlertAction c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private AlertAction(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static ThresholdCrossingAlertFields.AlertAction fromValue(String value) {
+ ThresholdCrossingAlertFields.AlertAction constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+ public enum AlertType {
+
+ CARD_ANOMALY("CARD-ANOMALY"), ELEMENT_ANOMALY("ELEMENT-ANOMALY"), INTERFACE_ANOMALY(
+ "INTERFACE-ANOMALY"), SERVICE_ANOMALY("SERVICE-ANOMALY");
+ private final String value;
+ private final static Map<String, ThresholdCrossingAlertFields.AlertType> CONSTANTS =
+ new HashMap<String, ThresholdCrossingAlertFields.AlertType>();
+
+ static {
+ for (ThresholdCrossingAlertFields.AlertType c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private AlertType(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static ThresholdCrossingAlertFields.AlertType fromValue(String value) {
+ ThresholdCrossingAlertFields.AlertType constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+ public enum EventSeverity {
+
+ CRITICAL("CRITICAL"), MAJOR("MAJOR"), MINOR("MINOR"), WARNING("WARNING"), NORMAL("NORMAL");
+ private final String value;
+ private final static Map<String, ThresholdCrossingAlertFields.EventSeverity> CONSTANTS =
+ new HashMap<String, ThresholdCrossingAlertFields.EventSeverity>();
+
+ static {
+ for (ThresholdCrossingAlertFields.EventSeverity c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private EventSeverity(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static ThresholdCrossingAlertFields.EventSeverity fromValue(String value) {
+ ThresholdCrossingAlertFields.EventSeverity constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArray.java new file mode 100644 index 0000000..adf008b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArray.java @@ -0,0 +1,910 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonCreator;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+
+/**
+ * describes the performance and errors of an identified virtual network interface card
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"receivedBroadcastPacketsAccumulated", "receivedBroadcastPacketsDelta",
+ "receivedDiscardedPacketsAccumulated", "receivedDiscardedPacketsDelta",
+ "receivedErrorPacketsAccumulated", "receivedErrorPacketsDelta",
+ "receivedMulticastPacketsAccumulated", "receivedMulticastPacketsDelta",
+ "receivedOctetsAccumulated", "receivedOctetsDelta", "receivedTotalPacketsAccumulated",
+ "receivedTotalPacketsDelta", "receivedUnicastPacketsAccumulated",
+ "receivedUnicastPacketsDelta", "transmittedBroadcastPacketsAccumulated",
+ "transmittedBroadcastPacketsDelta", "transmittedDiscardedPacketsAccumulated",
+ "transmittedDiscardedPacketsDelta", "transmittedErrorPacketsAccumulated",
+ "transmittedErrorPacketsDelta", "transmittedMulticastPacketsAccumulated",
+ "transmittedMulticastPacketsDelta", "transmittedOctetsAccumulated",
+ "transmittedOctetsDelta", "transmittedTotalPacketsAccumulated",
+ "transmittedTotalPacketsDelta", "transmittedUnicastPacketsAccumulated",
+ "transmittedUnicastPacketsDelta", "valuesAreSuspect", "vNicIdentifier"})
+public class VNicPerformanceArray {
+
+ /**
+ * Cumulative count of broadcast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of broadcast packets received as read at the end of the measurement interval")
+ private Double receivedBroadcastPacketsAccumulated;
+ /**
+ * Count of broadcast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsDelta")
+ @JsonPropertyDescription("Count of broadcast packets received within the measurement interval")
+ private Double receivedBroadcastPacketsDelta;
+ /**
+ * Cumulative count of discarded packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of discarded packets received as read at the end of the measurement interval")
+ private Double receivedDiscardedPacketsAccumulated;
+ /**
+ * Count of discarded packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsDelta")
+ @JsonPropertyDescription("Count of discarded packets received within the measurement interval")
+ private Double receivedDiscardedPacketsDelta;
+ /**
+ * Cumulative count of error packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of error packets received as read at the end of the measurement interval")
+ private Double receivedErrorPacketsAccumulated;
+ /**
+ * Count of error packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsDelta")
+ @JsonPropertyDescription("Count of error packets received within the measurement interval")
+ private Double receivedErrorPacketsDelta;
+ /**
+ * Cumulative count of multicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of multicast packets received as read at the end of the measurement interval")
+ private Double receivedMulticastPacketsAccumulated;
+ /**
+ * Count of multicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsDelta")
+ @JsonPropertyDescription("Count of multicast packets received within the measurement interval")
+ private Double receivedMulticastPacketsDelta;
+ /**
+ * Cumulative count of octets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsAccumulated")
+ @JsonPropertyDescription("Cumulative count of octets received as read at the end of the measurement interval")
+ private Double receivedOctetsAccumulated;
+ /**
+ * Count of octets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsDelta")
+ @JsonPropertyDescription("Count of octets received within the measurement interval")
+ private Double receivedOctetsDelta;
+ /**
+ * Cumulative count of all packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of all packets received as read at the end of the measurement interval")
+ private Double receivedTotalPacketsAccumulated;
+ /**
+ * Count of all packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsDelta")
+ @JsonPropertyDescription("Count of all packets received within the measurement interval")
+ private Double receivedTotalPacketsDelta;
+ /**
+ * Cumulative count of unicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of unicast packets received as read at the end of the measurement interval")
+ private Double receivedUnicastPacketsAccumulated;
+ /**
+ * Count of unicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsDelta")
+ @JsonPropertyDescription("Count of unicast packets received within the measurement interval")
+ private Double receivedUnicastPacketsDelta;
+ /**
+ * Cumulative count of broadcast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of broadcast packets transmitted as read at the end of the measurement interval")
+ private Double transmittedBroadcastPacketsAccumulated;
+ /**
+ * Count of broadcast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsDelta")
+ @JsonPropertyDescription("Count of broadcast packets transmitted within the measurement interval")
+ private Double transmittedBroadcastPacketsDelta;
+ /**
+ * Cumulative count of discarded packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of discarded packets transmitted as read at the end of the measurement interval")
+ private Double transmittedDiscardedPacketsAccumulated;
+ /**
+ * Count of discarded packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsDelta")
+ @JsonPropertyDescription("Count of discarded packets transmitted within the measurement interval")
+ private Double transmittedDiscardedPacketsDelta;
+ /**
+ * Cumulative count of error packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of error packets transmitted as read at the end of the measurement interval")
+ private Double transmittedErrorPacketsAccumulated;
+ /**
+ * Count of error packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsDelta")
+ @JsonPropertyDescription("Count of error packets transmitted within the measurement interval")
+ private Double transmittedErrorPacketsDelta;
+ /**
+ * Cumulative count of multicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of multicast packets transmitted as read at the end of the measurement interval")
+ private Double transmittedMulticastPacketsAccumulated;
+ /**
+ * Count of multicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsDelta")
+ @JsonPropertyDescription("Count of multicast packets transmitted within the measurement interval")
+ private Double transmittedMulticastPacketsDelta;
+ /**
+ * Cumulative count of octets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsAccumulated")
+ @JsonPropertyDescription("Cumulative count of octets transmitted as read at the end of the measurement interval")
+ private Double transmittedOctetsAccumulated;
+ /**
+ * Count of octets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsDelta")
+ @JsonPropertyDescription("Count of octets transmitted within the measurement interval")
+ private Double transmittedOctetsDelta;
+ /**
+ * Cumulative count of all packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of all packets transmitted as read at the end of the measurement interval")
+ private Double transmittedTotalPacketsAccumulated;
+ /**
+ * Count of all packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsDelta")
+ @JsonPropertyDescription("Count of all packets transmitted within the measurement interval")
+ private Double transmittedTotalPacketsDelta;
+ /**
+ * Cumulative count of unicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsAccumulated")
+ @JsonPropertyDescription("Cumulative count of unicast packets transmitted as read at the end of the measurement interval")
+ private Double transmittedUnicastPacketsAccumulated;
+ /**
+ * Count of unicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsDelta")
+ @JsonPropertyDescription("Count of unicast packets transmitted within the measurement interval")
+ private Double transmittedUnicastPacketsDelta;
+ /**
+ * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or
+ * other condtions (Required)
+ *
+ */
+ @JsonProperty("valuesAreSuspect")
+ @JsonPropertyDescription("Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions")
+ private VNicPerformanceArray.ValuesAreSuspect valuesAreSuspect;
+ /**
+ * vNic identification (Required)
+ *
+ */
+ @JsonProperty("vNicIdentifier")
+ @JsonPropertyDescription("vNic identification")
+ private String vNicIdentifier;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * Cumulative count of broadcast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsAccumulated")
+ public Double getReceivedBroadcastPacketsAccumulated() {
+ return receivedBroadcastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of broadcast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsAccumulated")
+ public void setReceivedBroadcastPacketsAccumulated(Double receivedBroadcastPacketsAccumulated) {
+ this.receivedBroadcastPacketsAccumulated = receivedBroadcastPacketsAccumulated;
+ }
+
+ /**
+ * Count of broadcast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsDelta")
+ public Double getReceivedBroadcastPacketsDelta() {
+ return receivedBroadcastPacketsDelta;
+ }
+
+ /**
+ * Count of broadcast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedBroadcastPacketsDelta")
+ public void setReceivedBroadcastPacketsDelta(Double receivedBroadcastPacketsDelta) {
+ this.receivedBroadcastPacketsDelta = receivedBroadcastPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of discarded packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsAccumulated")
+ public Double getReceivedDiscardedPacketsAccumulated() {
+ return receivedDiscardedPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of discarded packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsAccumulated")
+ public void setReceivedDiscardedPacketsAccumulated(Double receivedDiscardedPacketsAccumulated) {
+ this.receivedDiscardedPacketsAccumulated = receivedDiscardedPacketsAccumulated;
+ }
+
+ /**
+ * Count of discarded packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsDelta")
+ public Double getReceivedDiscardedPacketsDelta() {
+ return receivedDiscardedPacketsDelta;
+ }
+
+ /**
+ * Count of discarded packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedDiscardedPacketsDelta")
+ public void setReceivedDiscardedPacketsDelta(Double receivedDiscardedPacketsDelta) {
+ this.receivedDiscardedPacketsDelta = receivedDiscardedPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of error packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsAccumulated")
+ public Double getReceivedErrorPacketsAccumulated() {
+ return receivedErrorPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of error packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsAccumulated")
+ public void setReceivedErrorPacketsAccumulated(Double receivedErrorPacketsAccumulated) {
+ this.receivedErrorPacketsAccumulated = receivedErrorPacketsAccumulated;
+ }
+
+ /**
+ * Count of error packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsDelta")
+ public Double getReceivedErrorPacketsDelta() {
+ return receivedErrorPacketsDelta;
+ }
+
+ /**
+ * Count of error packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedErrorPacketsDelta")
+ public void setReceivedErrorPacketsDelta(Double receivedErrorPacketsDelta) {
+ this.receivedErrorPacketsDelta = receivedErrorPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of multicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsAccumulated")
+ public Double getReceivedMulticastPacketsAccumulated() {
+ return receivedMulticastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of multicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsAccumulated")
+ public void setReceivedMulticastPacketsAccumulated(Double receivedMulticastPacketsAccumulated) {
+ this.receivedMulticastPacketsAccumulated = receivedMulticastPacketsAccumulated;
+ }
+
+ /**
+ * Count of multicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsDelta")
+ public Double getReceivedMulticastPacketsDelta() {
+ return receivedMulticastPacketsDelta;
+ }
+
+ /**
+ * Count of multicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedMulticastPacketsDelta")
+ public void setReceivedMulticastPacketsDelta(Double receivedMulticastPacketsDelta) {
+ this.receivedMulticastPacketsDelta = receivedMulticastPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of octets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsAccumulated")
+ public Double getReceivedOctetsAccumulated() {
+ return receivedOctetsAccumulated;
+ }
+
+ /**
+ * Cumulative count of octets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsAccumulated")
+ public void setReceivedOctetsAccumulated(Double receivedOctetsAccumulated) {
+ this.receivedOctetsAccumulated = receivedOctetsAccumulated;
+ }
+
+ /**
+ * Count of octets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsDelta")
+ public Double getReceivedOctetsDelta() {
+ return receivedOctetsDelta;
+ }
+
+ /**
+ * Count of octets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedOctetsDelta")
+ public void setReceivedOctetsDelta(Double receivedOctetsDelta) {
+ this.receivedOctetsDelta = receivedOctetsDelta;
+ }
+
+ /**
+ * Cumulative count of all packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsAccumulated")
+ public Double getReceivedTotalPacketsAccumulated() {
+ return receivedTotalPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of all packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsAccumulated")
+ public void setReceivedTotalPacketsAccumulated(Double receivedTotalPacketsAccumulated) {
+ this.receivedTotalPacketsAccumulated = receivedTotalPacketsAccumulated;
+ }
+
+ /**
+ * Count of all packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsDelta")
+ public Double getReceivedTotalPacketsDelta() {
+ return receivedTotalPacketsDelta;
+ }
+
+ /**
+ * Count of all packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedTotalPacketsDelta")
+ public void setReceivedTotalPacketsDelta(Double receivedTotalPacketsDelta) {
+ this.receivedTotalPacketsDelta = receivedTotalPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of unicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsAccumulated")
+ public Double getReceivedUnicastPacketsAccumulated() {
+ return receivedUnicastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of unicast packets received as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsAccumulated")
+ public void setReceivedUnicastPacketsAccumulated(Double receivedUnicastPacketsAccumulated) {
+ this.receivedUnicastPacketsAccumulated = receivedUnicastPacketsAccumulated;
+ }
+
+ /**
+ * Count of unicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsDelta")
+ public Double getReceivedUnicastPacketsDelta() {
+ return receivedUnicastPacketsDelta;
+ }
+
+ /**
+ * Count of unicast packets received within the measurement interval
+ *
+ */
+ @JsonProperty("receivedUnicastPacketsDelta")
+ public void setReceivedUnicastPacketsDelta(Double receivedUnicastPacketsDelta) {
+ this.receivedUnicastPacketsDelta = receivedUnicastPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of broadcast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsAccumulated")
+ public Double getTransmittedBroadcastPacketsAccumulated() {
+ return transmittedBroadcastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of broadcast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsAccumulated")
+ public void setTransmittedBroadcastPacketsAccumulated(
+ Double transmittedBroadcastPacketsAccumulated) {
+ this.transmittedBroadcastPacketsAccumulated = transmittedBroadcastPacketsAccumulated;
+ }
+
+ /**
+ * Count of broadcast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsDelta")
+ public Double getTransmittedBroadcastPacketsDelta() {
+ return transmittedBroadcastPacketsDelta;
+ }
+
+ /**
+ * Count of broadcast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedBroadcastPacketsDelta")
+ public void setTransmittedBroadcastPacketsDelta(Double transmittedBroadcastPacketsDelta) {
+ this.transmittedBroadcastPacketsDelta = transmittedBroadcastPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of discarded packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsAccumulated")
+ public Double getTransmittedDiscardedPacketsAccumulated() {
+ return transmittedDiscardedPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of discarded packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsAccumulated")
+ public void setTransmittedDiscardedPacketsAccumulated(
+ Double transmittedDiscardedPacketsAccumulated) {
+ this.transmittedDiscardedPacketsAccumulated = transmittedDiscardedPacketsAccumulated;
+ }
+
+ /**
+ * Count of discarded packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsDelta")
+ public Double getTransmittedDiscardedPacketsDelta() {
+ return transmittedDiscardedPacketsDelta;
+ }
+
+ /**
+ * Count of discarded packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedDiscardedPacketsDelta")
+ public void setTransmittedDiscardedPacketsDelta(Double transmittedDiscardedPacketsDelta) {
+ this.transmittedDiscardedPacketsDelta = transmittedDiscardedPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of error packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsAccumulated")
+ public Double getTransmittedErrorPacketsAccumulated() {
+ return transmittedErrorPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of error packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsAccumulated")
+ public void setTransmittedErrorPacketsAccumulated(Double transmittedErrorPacketsAccumulated) {
+ this.transmittedErrorPacketsAccumulated = transmittedErrorPacketsAccumulated;
+ }
+
+ /**
+ * Count of error packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsDelta")
+ public Double getTransmittedErrorPacketsDelta() {
+ return transmittedErrorPacketsDelta;
+ }
+
+ /**
+ * Count of error packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedErrorPacketsDelta")
+ public void setTransmittedErrorPacketsDelta(Double transmittedErrorPacketsDelta) {
+ this.transmittedErrorPacketsDelta = transmittedErrorPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of multicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsAccumulated")
+ public Double getTransmittedMulticastPacketsAccumulated() {
+ return transmittedMulticastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of multicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsAccumulated")
+ public void setTransmittedMulticastPacketsAccumulated(
+ Double transmittedMulticastPacketsAccumulated) {
+ this.transmittedMulticastPacketsAccumulated = transmittedMulticastPacketsAccumulated;
+ }
+
+ /**
+ * Count of multicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsDelta")
+ public Double getTransmittedMulticastPacketsDelta() {
+ return transmittedMulticastPacketsDelta;
+ }
+
+ /**
+ * Count of multicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedMulticastPacketsDelta")
+ public void setTransmittedMulticastPacketsDelta(Double transmittedMulticastPacketsDelta) {
+ this.transmittedMulticastPacketsDelta = transmittedMulticastPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of octets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsAccumulated")
+ public Double getTransmittedOctetsAccumulated() {
+ return transmittedOctetsAccumulated;
+ }
+
+ /**
+ * Cumulative count of octets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsAccumulated")
+ public void setTransmittedOctetsAccumulated(Double transmittedOctetsAccumulated) {
+ this.transmittedOctetsAccumulated = transmittedOctetsAccumulated;
+ }
+
+ /**
+ * Count of octets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsDelta")
+ public Double getTransmittedOctetsDelta() {
+ return transmittedOctetsDelta;
+ }
+
+ /**
+ * Count of octets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedOctetsDelta")
+ public void setTransmittedOctetsDelta(Double transmittedOctetsDelta) {
+ this.transmittedOctetsDelta = transmittedOctetsDelta;
+ }
+
+ /**
+ * Cumulative count of all packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsAccumulated")
+ public Double getTransmittedTotalPacketsAccumulated() {
+ return transmittedTotalPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of all packets transmitted as read at the end of the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsAccumulated")
+ public void setTransmittedTotalPacketsAccumulated(Double transmittedTotalPacketsAccumulated) {
+ this.transmittedTotalPacketsAccumulated = transmittedTotalPacketsAccumulated;
+ }
+
+ /**
+ * Count of all packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsDelta")
+ public Double getTransmittedTotalPacketsDelta() {
+ return transmittedTotalPacketsDelta;
+ }
+
+ /**
+ * Count of all packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedTotalPacketsDelta")
+ public void setTransmittedTotalPacketsDelta(Double transmittedTotalPacketsDelta) {
+ this.transmittedTotalPacketsDelta = transmittedTotalPacketsDelta;
+ }
+
+ /**
+ * Cumulative count of unicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsAccumulated")
+ public Double getTransmittedUnicastPacketsAccumulated() {
+ return transmittedUnicastPacketsAccumulated;
+ }
+
+ /**
+ * Cumulative count of unicast packets transmitted as read at the end of the measurement
+ * interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsAccumulated")
+ public void setTransmittedUnicastPacketsAccumulated(
+ Double transmittedUnicastPacketsAccumulated) {
+ this.transmittedUnicastPacketsAccumulated = transmittedUnicastPacketsAccumulated;
+ }
+
+ /**
+ * Count of unicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsDelta")
+ public Double getTransmittedUnicastPacketsDelta() {
+ return transmittedUnicastPacketsDelta;
+ }
+
+ /**
+ * Count of unicast packets transmitted within the measurement interval
+ *
+ */
+ @JsonProperty("transmittedUnicastPacketsDelta")
+ public void setTransmittedUnicastPacketsDelta(Double transmittedUnicastPacketsDelta) {
+ this.transmittedUnicastPacketsDelta = transmittedUnicastPacketsDelta;
+ }
+
+ /**
+ * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or
+ * other condtions (Required)
+ *
+ */
+ @JsonProperty("valuesAreSuspect")
+ public VNicPerformanceArray.ValuesAreSuspect getValuesAreSuspect() {
+ return valuesAreSuspect;
+ }
+
+ /**
+ * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or
+ * other condtions (Required)
+ *
+ */
+ @JsonProperty("valuesAreSuspect")
+ public void setValuesAreSuspect(VNicPerformanceArray.ValuesAreSuspect valuesAreSuspect) {
+ this.valuesAreSuspect = valuesAreSuspect;
+ }
+
+ /**
+ * vNic identification (Required)
+ *
+ */
+ @JsonProperty("vNicIdentifier")
+ public String getVNicIdentifier() {
+ return vNicIdentifier;
+ }
+
+ /**
+ * vNic identification (Required)
+ *
+ */
+ @JsonProperty("vNicIdentifier")
+ public void setVNicIdentifier(String vNicIdentifier) {
+ this.vNicIdentifier = vNicIdentifier;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(receivedBroadcastPacketsAccumulated)
+ .append(receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated)
+ .append(receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated)
+ .append(receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated)
+ .append(receivedMulticastPacketsDelta).append(receivedOctetsAccumulated)
+ .append(receivedOctetsDelta).append(receivedTotalPacketsAccumulated)
+ .append(receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated)
+ .append(receivedUnicastPacketsDelta).append(transmittedBroadcastPacketsAccumulated)
+ .append(transmittedBroadcastPacketsDelta)
+ .append(transmittedDiscardedPacketsAccumulated)
+ .append(transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated)
+ .append(transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated)
+ .append(transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated)
+ .append(transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated)
+ .append(transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated)
+ .append(transmittedUnicastPacketsDelta).append(valuesAreSuspect)
+ .append(vNicIdentifier).append(additionalProperties).toHashCode();
+ }
+
+
+
+ public enum ValuesAreSuspect {
+
+ TRUE("true"), FALSE("false");
+ private final String value;
+ private final static Map<String, VNicPerformanceArray.ValuesAreSuspect> CONSTANTS =
+ new HashMap<String, VNicPerformanceArray.ValuesAreSuspect>();
+
+ static {
+ for (VNicPerformanceArray.ValuesAreSuspect c : values()) {
+ CONSTANTS.put(c.value, c);
+ }
+ }
+
+ private ValuesAreSuspect(String value) {
+ this.value = value;
+ }
+
+ @Override
+ public String toString() {
+ return this.value;
+ }
+
+ @JsonValue
+ public String value() {
+ return this.value;
+ }
+
+ @JsonCreator
+ public static VNicPerformanceArray.ValuesAreSuspect fromValue(String value) {
+ VNicPerformanceArray.ValuesAreSuspect constant = CONSTANTS.get(value);
+ if (constant == null) {
+ throw new IllegalArgumentException(value);
+ } else {
+ return constant;
+ }
+ }
+
+ }
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFields.java new file mode 100644 index 0000000..45c6c9f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFields.java @@ -0,0 +1,146 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * provides vendor, vnf and vfModule identifying information
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"vendorName", "vfModuleName", "vnfName"})
+public class VendorVnfNameFields {
+
+ /**
+ * VNF vendor name (Required)
+ *
+ */
+ @JsonProperty("vendorName")
+ @JsonPropertyDescription("VNF vendor name")
+ private String vendorName;
+ /**
+ * ASDC vfModuleName for the vfModule generating the event
+ *
+ */
+ @JsonProperty("vfModuleName")
+ @JsonPropertyDescription("ASDC vfModuleName for the vfModule generating the event")
+ private String vfModuleName;
+ /**
+ * ASDC modelName for the VNF generating the event
+ *
+ */
+ @JsonProperty("vnfName")
+ @JsonPropertyDescription("ASDC modelName for the VNF generating the event")
+ private String vnfName;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * VNF vendor name (Required)
+ *
+ */
+ @JsonProperty("vendorName")
+ public String getVendorName() {
+ return vendorName;
+ }
+
+ /**
+ * VNF vendor name (Required)
+ *
+ */
+ @JsonProperty("vendorName")
+ public void setVendorName(String vendorName) {
+ this.vendorName = vendorName;
+ }
+
+ /**
+ * ASDC vfModuleName for the vfModule generating the event
+ *
+ */
+ @JsonProperty("vfModuleName")
+ public String getVfModuleName() {
+ return vfModuleName;
+ }
+
+ /**
+ * ASDC vfModuleName for the vfModule generating the event
+ *
+ */
+ @JsonProperty("vfModuleName")
+ public void setVfModuleName(String vfModuleName) {
+ this.vfModuleName = vfModuleName;
+ }
+
+ /**
+ * ASDC modelName for the VNF generating the event
+ *
+ */
+ @JsonProperty("vnfName")
+ public String getVnfName() {
+ return vnfName;
+ }
+
+ /**
+ * ASDC modelName for the VNF generating the event
+ *
+ */
+ @JsonProperty("vnfName")
+ public void setVnfName(String vnfName) {
+ this.vnfName = vnfName;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(vendorName).append(vfModuleName).append(vnfName)
+ .append(additionalProperties).toHashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VesEvent.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VesEvent.java new file mode 100644 index 0000000..7c525cb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VesEvent.java @@ -0,0 +1,103 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * VES Event Listener
+ * <p>
+ *
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"event",
+
+})
+public class VesEvent {
+
+ /**
+ * the root level of the common event format
+ *
+ */
+ @JsonProperty("event")
+ @JsonPropertyDescription("the root level of the common event format")
+ private Event event;
+
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * the root level of the common event format
+ *
+ */
+ @JsonProperty("event")
+ public Event getEvent() {
+ return event;
+ }
+
+ /**
+ * the root level of the common event format
+ *
+ */
+ @JsonProperty("event")
+ public void setEvent(Event event) {
+ this.event = event;
+ }
+
+
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(event).append(additionalProperties).toHashCode();
+ }
+
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFields.java new file mode 100644 index 0000000..6d5d4ff --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFields.java @@ -0,0 +1,303 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+import java.util.ArrayList;
+import java.util.HashMap;
+import java.util.List;
+import java.util.Map;
+
+import org.apache.commons.lang.builder.HashCodeBuilder;
+import org.apache.commons.lang.builder.ToStringBuilder;
+
+import com.fasterxml.jackson.annotation.JsonAnyGetter;
+import com.fasterxml.jackson.annotation.JsonAnySetter;
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import com.fasterxml.jackson.annotation.JsonInclude;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import com.fasterxml.jackson.annotation.JsonPropertyDescription;
+import com.fasterxml.jackson.annotation.JsonPropertyOrder;
+
+
+/**
+ * provides statistics related to customer facing voice products
+ *
+ */
+@JsonInclude(JsonInclude.Include.NON_NULL)
+@JsonPropertyOrder({"additionalInformation", "calleeSideCodec", "callerSideCodec", "correlator",
+ "endOfCallVqmSummaries", "phoneNumber", "midCallRtcp", "vendorVnfNameFields",
+ "voiceQualityFieldsVersion"})
+public class VoiceQualityFields {
+
+ /**
+ * additional voice quality fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ @JsonPropertyDescription("additional voice quality fields if needed")
+ private List<AlarmAdditionalInformation> additionalInformation =
+ new ArrayList<AlarmAdditionalInformation>();
+ /**
+ * callee codec for the call (Required)
+ *
+ */
+ @JsonProperty("calleeSideCodec")
+ @JsonPropertyDescription("callee codec for the call")
+ private String calleeSideCodec;
+ /**
+ * caller codec for the call (Required)
+ *
+ */
+ @JsonProperty("callerSideCodec")
+ @JsonPropertyDescription("caller codec for the call")
+ private String callerSideCodec;
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ @JsonPropertyDescription("this is the same for all events on this call")
+ private String correlator;
+ /**
+ * provides end of call voice quality metrics
+ *
+ */
+ @JsonProperty("endOfCallVqmSummaries")
+ @JsonPropertyDescription("provides end of call voice quality metrics")
+ private EndOfCallVqmSummaries endOfCallVqmSummaries;
+ /**
+ * phone number associated with the correlator
+ *
+ */
+ @JsonProperty("phoneNumber")
+ @JsonPropertyDescription("phone number associated with the correlator")
+ private String phoneNumber;
+ /**
+ * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers (Required)
+ *
+ */
+ @JsonProperty("midCallRtcp")
+ @JsonPropertyDescription("Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers")
+ private String midCallRtcp;
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ @JsonPropertyDescription("provides vendor, vnf and vfModule identifying information")
+ private VendorVnfNameFields vendorVnfNameFields;
+ /**
+ * version of the voiceQualityFields block (Required)
+ *
+ */
+ @JsonProperty("voiceQualityFieldsVersion")
+ @JsonPropertyDescription("version of the voiceQualityFields block")
+ private Double voiceQualityFieldsVersion;
+ @JsonIgnore
+ private Map<String, Object> additionalProperties = new HashMap<String, Object>();
+
+ /**
+ * additional voice quality fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ public List<AlarmAdditionalInformation> getAdditionalInformation() {
+ return additionalInformation;
+ }
+
+ /**
+ * additional voice quality fields if needed
+ *
+ */
+ @JsonProperty("additionalInformation")
+ public void setAdditionalInformation(List<AlarmAdditionalInformation> additionalInformation) {
+ this.additionalInformation = additionalInformation;
+ }
+
+ /**
+ * callee codec for the call (Required)
+ *
+ */
+ @JsonProperty("calleeSideCodec")
+ public String getCalleeSideCodec() {
+ return calleeSideCodec;
+ }
+
+ /**
+ * callee codec for the call (Required)
+ *
+ */
+ @JsonProperty("calleeSideCodec")
+ public void setCalleeSideCodec(String calleeSideCodec) {
+ this.calleeSideCodec = calleeSideCodec;
+ }
+
+ /**
+ * caller codec for the call (Required)
+ *
+ */
+ @JsonProperty("callerSideCodec")
+ public String getCallerSideCodec() {
+ return callerSideCodec;
+ }
+
+ /**
+ * caller codec for the call (Required)
+ *
+ */
+ @JsonProperty("callerSideCodec")
+ public void setCallerSideCodec(String callerSideCodec) {
+ this.callerSideCodec = callerSideCodec;
+ }
+
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ public String getCorrelator() {
+ return correlator;
+ }
+
+ /**
+ * this is the same for all events on this call (Required)
+ *
+ */
+ @JsonProperty("correlator")
+ public void setCorrelator(String correlator) {
+ this.correlator = correlator;
+ }
+
+ /**
+ * provides end of call voice quality metrics
+ *
+ */
+ @JsonProperty("endOfCallVqmSummaries")
+ public EndOfCallVqmSummaries getEndOfCallVqmSummaries() {
+ return endOfCallVqmSummaries;
+ }
+
+ /**
+ * provides end of call voice quality metrics
+ *
+ */
+ @JsonProperty("endOfCallVqmSummaries")
+ public void setEndOfCallVqmSummaries(EndOfCallVqmSummaries endOfCallVqmSummaries) {
+ this.endOfCallVqmSummaries = endOfCallVqmSummaries;
+ }
+
+ /**
+ * phone number associated with the correlator
+ *
+ */
+ @JsonProperty("phoneNumber")
+ public String getPhoneNumber() {
+ return phoneNumber;
+ }
+
+ /**
+ * phone number associated with the correlator
+ *
+ */
+ @JsonProperty("phoneNumber")
+ public void setPhoneNumber(String phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+
+ /**
+ * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers (Required)
+ *
+ */
+ @JsonProperty("midCallRtcp")
+ public String getMidCallRtcp() {
+ return midCallRtcp;
+ }
+
+ /**
+ * Base64 encoding of the binary RTCP data excluding Eth/IP/UDP headers (Required)
+ *
+ */
+ @JsonProperty("midCallRtcp")
+ public void setMidCallRtcp(String midCallRtcp) {
+ this.midCallRtcp = midCallRtcp;
+ }
+
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ public VendorVnfNameFields getVendorVnfNameFields() {
+ return vendorVnfNameFields;
+ }
+
+ /**
+ * provides vendor, vnf and vfModule identifying information (Required)
+ *
+ */
+ @JsonProperty("vendorVnfNameFields")
+ public void setVendorVnfNameFields(VendorVnfNameFields vendorVnfNameFields) {
+ this.vendorVnfNameFields = vendorVnfNameFields;
+ }
+
+ /**
+ * version of the voiceQualityFields block (Required)
+ *
+ */
+ @JsonProperty("voiceQualityFieldsVersion")
+ public Double getVoiceQualityFieldsVersion() {
+ return voiceQualityFieldsVersion;
+ }
+
+ /**
+ * version of the voiceQualityFields block (Required)
+ *
+ */
+ @JsonProperty("voiceQualityFieldsVersion")
+ public void setVoiceQualityFieldsVersion(Double voiceQualityFieldsVersion) {
+ this.voiceQualityFieldsVersion = voiceQualityFieldsVersion;
+ }
+
+ @Override
+ public String toString() {
+ return ToStringBuilder.reflectionToString(this);
+ }
+
+ @JsonAnyGetter
+ public Map<String, Object> getAdditionalProperties() {
+ return this.additionalProperties;
+ }
+
+ @JsonAnySetter
+ public void setAdditionalProperty(String name, Object value) {
+ this.additionalProperties.put(name, value);
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder().append(additionalInformation).append(calleeSideCodec)
+ .append(callerSideCodec).append(correlator).append(endOfCallVqmSummaries)
+ .append(phoneNumber).append(midCallRtcp).append(vendorVnfNameFields)
+ .append(voiceQualityFieldsVersion).append(additionalProperties).toHashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java index 484625f..09e85a0 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java @@ -124,7 +124,7 @@ public class UniversalEventAdapter implements GenericAdapter { Smooks smooksTemp = new Smooks(new ByteArrayInputStream(configFileData.getBytes(StandardCharsets.UTF_8)));
eventToSmooksMapping.put(collectorIdentifierKey, smooksTemp);
- VesEvent vesEvent = SmooksUtils.getTransformedObjectForInput(smooksTemp,incomingJsonString);
+ Object vesEvent = SmooksUtils.getTransformedObjectForInput(smooksTemp,incomingJsonString);
debugLogger.info("Incoming json transformed to VES format successfully:"+Thread.currentThread().getName());
ObjectMapper objectMapper = new ObjectMapper();
result = objectMapper.writeValueAsString(vesEvent);
diff --git a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java index f0fe0ee..7d461b1 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java @@ -54,7 +54,7 @@ public class SmooksUtils { * @return VES json's pojo representation
* @throws IOException
*/
- public static VesEvent getTransformedObjectForInput(Smooks smooks, String incomingJsonString) {
+ public static Object getTransformedObjectForInput(Smooks smooks, String incomingJsonString) {
debugLogger.info("Transforming incoming json " );
ExecutionContext executionContext = smooks.createExecutionContext();
@@ -67,7 +67,7 @@ public class SmooksUtils { smooks.filterSource(executionContext, new StreamSource(new ByteArrayInputStream(incomingJsonString.getBytes(StandardCharsets.UTF_8))), result);
Locale.setDefault(defaultLocale);
- VesEvent vesEvent = (VesEvent) executionContext.getBeanContext().getBean("vesEvent");
+ Object vesEvent = executionContext.getBeanContext().getBean("vesEvent");
debugLogger.debug("consversion successful to VES Event");
return vesEvent;
diff --git a/UniversalVesAdapter/src/main/resources/defaultSnmpMappingFile.xml b/UniversalVesAdapter/src/main/resources/defaultSnmpMappingFile.xml index d36f854..5f31fab 100644 --- a/UniversalVesAdapter/src/main/resources/defaultSnmpMappingFile.xml +++ b/UniversalVesAdapter/src/main/resources/defaultSnmpMappingFile.xml @@ -1,64 +1,51 @@ -<?xml version="1.0"?> -<smooks-resource-list - xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" - xmlns:json="http://www.milyn.org/xsd/smooks/json-1.1.xsd" - xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.4.xsd"> - <json:reader rootName="vesevent" keyWhitspaceReplacement="-"> - <json:keyMap> - <json:key from="date&time" to="date-and-time" /> - </json:keyMap> - </json:reader> - - <jb:bean class="org.onap.dcaegen2.ves.domain.VesEvent" beanId="vesEvent" createOnElement="vesevent"> - <jb:wiring property="event" beanIdRef="event"/> - </jb:bean> - - <jb:bean class="org.onap.dcaegen2.ves.domain.Event" beanId="event" createOnElement="vesevent"> - <jb:wiring property="commonEventHeader" beanIdRef="commonEventHeader"/> - <jb:wiring property="faultFields" beanIdRef="faultFields"/> - <!--<jb:wiring property="measurementsForVfScalingFields" beanIdRef="measurementsForVfScalingFields"/> --> - </jb:bean> - <!--<jb:bean class="org.onap.dcaegen2.ves.domain.MeasurementsForVfScalingFields" beanId="measurementsForVfScalingFields" createOnElement="simple"> - <jb:wiring property="additionalMeasurements" beanIdRef="additionalMeasurements"/> - </jb:bean>--> - - <jb:bean class="org.onap.dcaegen2.ves.domain.CommonEventHeader" beanId="commonEventHeader" createOnElement="vesevent"> - <jb:expression property="version">"3.0"</jb:expression> - <jb:expression property="eventId">"XXXX"</jb:expression> - <jb:expression property="reportingEntityName">"VesAdapter"</jb:expression> - <jb:expression property="domain">"fault"</jb:expression> - <jb:expression property="eventName" execOnElement="vesevent" >commonEventHeader.domain+"_"+"_"+ faultFields.alarmCondition;</jb:expression> - <jb:value property="sequence" data="0" default="0" decoder="Long"/> - <jb:value property="lastEpochMicrosec" data="#/time-received" decoder="Double" /> - <jb:value property="startEpochMicrosec" data="#/time-received" decoder="Double"/> - <jb:expression property="priority">"Medium"</jb:expression> - <jb:expression property="sourceName">"VesAdapter"</jb:expression> - </jb:bean> - - <jb:bean class="org.onap.dcaegen2.ves.domain.FaultFields" beanId="faultFields" createOnElement="vesevent"> - <jb:value property="alarmCondition" data="#/trap-category" /> - <jb:expression property="eventSeverity">"MINOR"</jb:expression> - <jb:expression property="eventSourceType">"SNMP Agent"</jb:expression> - <jb:expression property="specificProblem">"SNMP Fault"</jb:expression> - <jb:value property="faultFieldsVersion" data="2.0" default="2.0" decoder="Double" /> - <jb:wiring property="alarmAdditionalInformation" beanIdRef="alarmAdditionalInformationroot"/> - <jb:expression property="vfStatus">"Active"</jb:expression> - - </jb:bean> - <jb:bean class="java.util.ArrayList" beanId="alarmAdditionalInformationroot" createOnElement="vesevent"> - <jb:wiring beanIdRef="alarmAdditionalInformation"/> - </jb:bean> - - <jb:bean class="org.onap.dcaegen2.ves.domain.AlarmAdditionalInformation" beanId="alarmAdditionalInformation" createOnElement="varbinds/element"> - <jb:value property="name" data="#/varbind_oid"/> - <jb:value property="value" data="#/varbind_value" /> - </jb:bean> - <!--<jb:bean class="java.util.ArrayList" beanId="additionalMeasurements" createOnElement="simple"> - <jb:wiring beanIdRef="additionalMeasurement"/> - </jb:bean> - - <jb:bean class="org.onap.dcaegen2.ves.domain.AdditionalMeasurement" beanId="additionalMeasurement" createOnElement="varbinds/element"> - <jb:value property="name" data="#/varbind_value" /> - </jb:bean> --> - +<?xml version="1.0" encoding="UTF-8"?>
+<!-- Created with Liquid Technologies Online Tools 1.0 (https://www.liquid-technologies.com) -->
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.4.xsd" xmlns:json="http://www.milyn.org/xsd/smooks/json-1.1.xsd">
+ <json:reader rootName="vesevent" keyWhitspaceReplacement="-">
+ <json:keyMap>
+ <json:key from="date&time" to="date-and-time" />
+ </json:keyMap>
+ </json:reader>
+ <jb:bean class="org.onap.dcaegen2.ves.domain.ves5_4.VesEvent" beanId="vesEvent" createOnElement="vesevent">
+ <jb:wiring property="event" beanIdRef="event" />
+ </jb:bean>
+ <jb:bean class="org.onap.dcaegen2.ves.domain.ves5_4.Event" beanId="event" createOnElement="vesevent">
+ <jb:wiring property="commonEventHeader" beanIdRef="commonEventHeader" />
+ <jb:wiring property="faultFields" beanIdRef="faultFields"/>
+ </jb:bean>
+ <jb:bean class="org.onap.dcaegen2.ves.domain.ves5_4.CommonEventHeader" beanId="commonEventHeader" createOnElement="vesevent">
+ <jb:expression property="version">"3.0"</jb:expression>
+ <jb:expression property="eventType">'FaultField'</jb:expression>
+ <jb:expression property="eventId" execOnElement="vesevent">'XXXX'</jb:expression>
+ <jb:expression property="reportingEntityName">'VESMapper'</jb:expression>
+ <jb:expression property="domain">org.onap.dcaegen2.ves.domain.ves5_4.CommonEventHeader.Domain.FAULT</jb:expression>
+ <jb:expression property="eventName" execOnElement="vesevent">commonEventHeader.domain</jb:expression>
+ <jb:value property="sequence" data="0" default="0" decoder="Long" />
+ <jb:value property="lastEpochMicrosec" data="#/time-received" />
+ <jb:value property="startEpochMicrosec" data="#/time-received" />
+ <jb:expression property="priority">org.onap.dcaegen2.ves.domain.ves5_4.CommonEventHeader.Priority.NORMAL</jb:expression>
+ <jb:expression property="sourceName">"VesAdapter"</jb:expression>
+
+ </jb:bean>
+ <jb:bean class="org.onap.dcaegen2.ves.domain.ves5_4.FaultFields" beanId="faultFields" createOnElement="vesevent">
+ <jb:value property="faultFieldsVersion" data="2.0" default="2.0" decoder="Double" />
+<jb:value property="alarmCondition" data="#/trap-category" />
+ <jb:expression property="specificProblem">"SNMP Fault"</jb:expression>
+ <jb:expression property="vfStatus">org.onap.dcaegen2.ves.domain.ves5_4.FaultFields.VfStatus.ACTIVE</jb:expression>
+
+ <jb:expression property="eventSeverity">org.onap.dcaegen2.ves.domain.ves5_4.FaultFields.EventSeverity.MINOR</jb:expression>
+
+ <jb:wiring property="alarmAdditionalInformation" beanIdRef="alarmAdditionalInformationroot"/>
+
+ </jb:bean>
+
+
+ <jb:bean class="java.util.ArrayList" beanId="alarmAdditionalInformationroot" createOnElement="vesevent">
+ <jb:wiring beanIdRef="alarmAdditionalInformation"/>
+ </jb:bean>
+
+ <jb:bean class="org.onap.dcaegen2.ves.domain.ves5_4.AlarmAdditionalInformation" beanId="alarmAdditionalInformation" createOnElement="varbinds/element">
+ <jb:value property="name" data="#/varbind_oid"/>
+ <jb:value property="value" data="#/varbind_value" />
+ </jb:bean>
</smooks-resource-list>
\ No newline at end of file diff --git a/UniversalVesAdapter/src/main/resources/kv.json b/UniversalVesAdapter/src/main/resources/kv.json index c4231cb..9e245d1 100644 --- a/UniversalVesAdapter/src/main/resources/kv.json +++ b/UniversalVesAdapter/src/main/resources/kv.json @@ -9,6 +9,15 @@ "defaultMappingFile-ONAP-COLLECTOR-RESTCONFTRAP":"<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' /><\/json:keyMap><\/json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='pnfRegistrationFields' beanIdRef='pnfRegistrationFields' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Version._4_0_1<\/jb:expression><jb:expression property='eventType'>'pnfRegistration'<\/jb:expression><jb:expression property='vesEventListenerVersion'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.VesEventListenerVersion._7_0_1<\/jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'registration_'+commonEventHeader.ts1<\/jb:expression><jb:expression property='reportingEntityName'>'VESMapper'<\/jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Domain.PNF_REGISTRATION<\/jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain<\/jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:expression property='lastEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='startEpochMicrosec' execOnElement='vesevent'>commonEventHeader.ts1<\/jb:expression><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves70.CommonEventHeader.Priority.NORMAL<\/jb:expression><jb:value property='sourceName' data='notification/message/target' /><\/jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields' beanId='pnfRegistrationFields' createOnElement='vesevent'><jb:expression property='pnfRegistrationFieldsVersion'>org.onap.dcaegen2.ves.domain.ves70.PnfRegistrationFields.PnfRegistrationFieldsVersion._2_0<\/jb:expression><jb:value property='serialNumber' data='notification/message/content/onu/sn' /><\/jb:bean><\/smooks-resource-list>"
}
]
+ },
+ {
+ "identifier":"notify OID",
+ "subscriberTopic":"ONAP-COLLECTOR-SNMPTRAP",
+ "mapping-files":[
+ {
+ "defaultMappingFile-ONAP-COLLECTOR-SNMPTRAP":"<?xml version='1.0' encoding='UTF-8'?><smooks-resource-list xmlns='http://www.milyn.org/xsd/smooks-1.1.xsd' xmlns:jb='http://www.milyn.org/xsd/smooks/javabean-1.4.xsd' xmlns:json='http://www.milyn.org/xsd/smooks/json-1.1.xsd'><json:reader rootName='vesevent' keyWhitspaceReplacement='-'><json:keyMap><json:key from='date&time' to='date-and-time' /></json:keyMap></json:reader><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.VesEvent' beanId='vesEvent' createOnElement='vesevent'><jb:wiring property='event' beanIdRef='event' /></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.Event' beanId='event' createOnElement='vesevent'><jb:wiring property='commonEventHeader' beanIdRef='commonEventHeader' /><jb:wiring property='faultFields' beanIdRef='faultFields'/></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader' beanId='commonEventHeader' createOnElement='vesevent'><jb:expression property='version'>'3.0'</jb:expression><jb:expression property='eventType'>'FaultField'</jb:expression><jb:expression property='eventId' execOnElement='vesevent'>'XXXX'</jb:expression><jb:expression property='reportingEntityName'>'VESMapper'</jb:expression><jb:expression property='domain'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Domain.FAULT</jb:expression><jb:expression property='eventName' execOnElement='vesevent'>commonEventHeader.domain</jb:expression><jb:value property='sequence' data='0' default='0' decoder='Long' /><jb:value property='lastEpochMicrosec' data='#/time-received' /><jb:value property='startEpochMicrosec' data='#/time-received' /><jb:expression property='priority'>org.onap.dcaegen2.ves.domain.ves54.CommonEventHeader.Priority.NORMAL</jb:expression><jb:expression property='sourceName'>'VesAdapter'</jb:expression></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.FaultFields' beanId='faultFields' createOnElement='vesevent'><jb:value property='faultFieldsVersion' data='2.0' default='2.0' decoder='Double' /><jb:value property='alarmCondition' data='#/trap-category' /><jb:expression property='specificProblem'>'SNMP Fault'</jb:expression><jb:expression property='vfStatus'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.VfStatus.ACTIVE</jb:expression><jb:expression property='eventSeverity'>org.onap.dcaegen2.ves.domain.ves54.FaultFields.EventSeverity.MINOR</jb:expression><jb:wiring property='alarmAdditionalInformation' beanIdRef='alarmAdditionalInformationroot'/></jb:bean><jb:bean class='java.util.ArrayList' beanId='alarmAdditionalInformationroot' createOnElement='vesevent'><jb:wiring beanIdRef='alarmAdditionalInformation'/></jb:bean><jb:bean class='org.onap.dcaegen2.ves.domain.ves54.AlarmAdditionalInformation' beanId='alarmAdditionalInformation' createOnElement='varbinds/element'><jb:value property='name' data='#/varbind_oid'/><jb:value property='value' data='#/varbind_value' /></jb:bean></smooks-resource-list>"
+ }
+ ]
}
]
}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurementTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurementTest.java new file mode 100644 index 0000000..307ab46 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalMeasurementTest.java @@ -0,0 +1,121 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class AdditionalMeasurementTest {
+
+ private AdditionalMeasurement createTestSubject() {
+ return new AdditionalMeasurement();
+ }
+
+ @Test
+ public void testGetName() throws Exception {
+ AdditionalMeasurement testSubject;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.getName();
+ }
+
+ @Test
+ public void testSetName() throws Exception {
+ AdditionalMeasurement testSubject;
+ String name = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+ @Test
+ public void testGetArrayOfFields() throws Exception {
+ AdditionalMeasurement testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getArrayOfFields();
+ }
+
+ @Test
+ public void testSetArrayOfFields() throws Exception {
+ AdditionalMeasurement testSubject;
+ List<AlarmAdditionalInformation> arrayOfFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setArrayOfFields(arrayOfFields);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ AdditionalMeasurement testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ AdditionalMeasurement testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ AdditionalMeasurement testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ AdditionalMeasurement testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObjectTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObjectTest.java new file mode 100644 index 0000000..4bbe3f5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalObjectTest.java @@ -0,0 +1,205 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class AdditionalObjectTest {
+
+ private AdditionalObject createTestSubject() {
+ return new AdditionalObject();
+ }
+
+ @Test
+ public void testGetObjectInstances() throws Exception {
+ AdditionalObject testSubject;
+ List<ObjectInstance> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectInstances();
+ }
+
+ @Test
+ public void testSetObjectInstances() throws Exception {
+ AdditionalObject testSubject;
+ List<ObjectInstance> objectInstances = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectInstances(objectInstances);
+ }
+
+ @Test
+ public void testGetObjectName() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectName();
+ }
+
+ @Test
+ public void testSetObjectName() throws Exception {
+ AdditionalObject testSubject;
+ String objectName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectName(objectName);
+ }
+
+ @Test
+ public void testGetObjectSchema() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectSchema();
+ }
+
+ @Test
+ public void testSetObjectSchema() throws Exception {
+ AdditionalObject testSubject;
+ String objectSchema = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectSchema(objectSchema);
+ }
+
+ @Test
+ public void testGetObjectSchemaUrl() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectSchemaUrl();
+ }
+
+ @Test
+ public void testSetObjectSchemaUrl() throws Exception {
+ AdditionalObject testSubject;
+ String objectSchemaUrl = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectSchemaUrl(objectSchemaUrl);
+ }
+
+ @Test
+ public void testGetNfSubscribedObjectName() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNfSubscribedObjectName();
+ }
+
+ @Test
+ public void testSetNfSubscribedObjectName() throws Exception {
+ AdditionalObject testSubject;
+ String nfSubscribedObjectName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNfSubscribedObjectName(nfSubscribedObjectName);
+ }
+
+ @Test
+ public void testGetNfSubscriptionId() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNfSubscriptionId();
+ }
+
+ @Test
+ public void testSetNfSubscriptionId() throws Exception {
+ AdditionalObject testSubject;
+ String nfSubscriptionId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNfSubscriptionId(nfSubscriptionId);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ AdditionalObject testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ AdditionalObject testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ AdditionalObject testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ AdditionalObject testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameterTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameterTest.java new file mode 100644 index 0000000..f11978a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AdditionalParameterTest.java @@ -0,0 +1,162 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class AdditionalParameterTest {
+
+ private AdditionalParameter createTestSubject() {
+ return new AdditionalParameter();
+ }
+
+ @Test
+ public void testGetCriticality() throws Exception {
+ AdditionalParameter testSubject;
+ AdditionalParameter.Criticality result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCriticality();
+ }
+
+ @Test
+ public void testSetCriticality() throws Exception {
+ AdditionalParameter testSubject;
+ AdditionalParameter.Criticality criticality = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCriticality(criticality);
+ }
+
+ @Test
+ public void testGetName() throws Exception {
+ AdditionalParameter testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+ @Test
+ public void testSetName() throws Exception {
+ AdditionalParameter testSubject;
+ String name = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+ @Test
+ public void testGetThresholdCrossed() throws Exception {
+ AdditionalParameter testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getThresholdCrossed();
+ }
+
+ @Test
+ public void testSetThresholdCrossed() throws Exception {
+ AdditionalParameter testSubject;
+ String thresholdCrossed = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setThresholdCrossed(thresholdCrossed);
+ }
+
+ @Test
+ public void testGetValue() throws Exception {
+ AdditionalParameter testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValue();
+ }
+
+ @Test
+ public void testSetValue() throws Exception {
+ AdditionalParameter testSubject;
+ String value = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValue(value);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ AdditionalParameter testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ AdditionalParameter testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ AdditionalParameter testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ AdditionalParameter testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformationTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformationTest.java new file mode 100644 index 0000000..c3e5197 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/AlarmAdditionalInformationTest.java @@ -0,0 +1,120 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class AlarmAdditionalInformationTest {
+
+ private AlarmAdditionalInformation createTestSubject() {
+ return new AlarmAdditionalInformation();
+ }
+
+ @Test
+ public void testGetName() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getName();
+ }
+
+ @Test
+ public void testSetName() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String name = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setName(name);
+ }
+
+ @Test
+ public void testGetValue() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValue();
+ }
+
+ @Test
+ public void testSetValue() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String value = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValue(value);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ AlarmAdditionalInformation testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArrayTest.java new file mode 100644 index 0000000..3e0d0d4 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CodecUsageArrayTest.java @@ -0,0 +1,120 @@ +/*-
+* ============LICENSE_START=======================================================
+* ONAP : DCAE
+* ================================================================================
+* Copyright 2019 TechMahindra
+* ================================================================================
+* Licensed under the Apache License, Version 2.0 (the "License");
+* you may not use this file except in compliance with the License.
+* You may obtain a copy of the License at
+*
+* http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+* ============LICENSE_END=========================================================
+*/
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class CodecUsageArrayTest {
+
+ private CodecUsageArray createTestSubject() {
+ return new CodecUsageArray();
+ }
+
+ @Test
+ public void testGetCodecIdentifier() throws Exception {
+ CodecUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCodecIdentifier();
+ }
+
+ @Test
+ public void testSetCodecIdentifier() throws Exception {
+ CodecUsageArray testSubject;
+ String codecIdentifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCodecIdentifier(codecIdentifier);
+ }
+
+ @Test
+ public void testGetNumberInUse() throws Exception {
+ CodecUsageArray testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumberInUse();
+ }
+
+ @Test
+ public void testSetNumberInUse() throws Exception {
+ CodecUsageArray testSubject;
+ Integer numberInUse = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumberInUse(numberInUse);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ CodecUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ CodecUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ CodecUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ CodecUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeaderTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeaderTest.java new file mode 100644 index 0000000..1fe8125 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CommonEventHeaderTest.java @@ -0,0 +1,414 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class CommonEventHeaderTest {
+
+ private CommonEventHeader createTestSubject() {
+ return new CommonEventHeader();
+ }
+
+ @Test
+ public void testGetDomain() throws Exception {
+ CommonEventHeader testSubject;
+ CommonEventHeader.Domain result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDomain();
+ }
+
+ @Test
+ public void testSetDomain() throws Exception {
+ CommonEventHeader testSubject;
+ CommonEventHeader.Domain domain = CommonEventHeader.Domain.FAULT;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDomain(domain);
+ }
+
+ @Test
+ public void testGetEventId() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventId();
+ }
+
+ @Test
+ public void testSetEventId() throws Exception {
+ CommonEventHeader testSubject;
+ String eventId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventId(eventId);
+ }
+
+ @Test
+ public void testGetEventName() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventName();
+ }
+
+ @Test
+ public void testSetEventName() throws Exception {
+ CommonEventHeader testSubject;
+ String eventName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventName(eventName);
+ }
+
+ @Test
+ public void testGetEventType() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventType();
+ }
+
+ @Test
+ public void testSetEventType() throws Exception {
+ CommonEventHeader testSubject;
+ String eventType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventType(eventType);
+ }
+
+ @Test
+ public void testGetInternalHeaderFields() throws Exception {
+ CommonEventHeader testSubject;
+ InternalHeaderFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInternalHeaderFields();
+ }
+
+ @Test
+ public void testSetInternalHeaderFields() throws Exception {
+ CommonEventHeader testSubject;
+ InternalHeaderFields internalHeaderFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInternalHeaderFields(internalHeaderFields);
+ }
+
+ @Test
+ public void testGetLastEpochMicrosec() throws Exception {
+ CommonEventHeader testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLastEpochMicrosec();
+ }
+
+ @Test
+ public void testSetLastEpochMicrosec() throws Exception {
+ CommonEventHeader testSubject;
+ Double lastEpochMicrosec = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLastEpochMicrosec(lastEpochMicrosec);
+ }
+
+ @Test
+ public void testGetNfcNamingCode() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNfcNamingCode();
+ }
+
+ @Test
+ public void testSetNfcNamingCode() throws Exception {
+ CommonEventHeader testSubject;
+ String nfcNamingCode = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNfcNamingCode(nfcNamingCode);
+ }
+
+ @Test
+ public void testGetNfNamingCode() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNfNamingCode();
+ }
+
+ @Test
+ public void testSetNfNamingCode() throws Exception {
+ CommonEventHeader testSubject;
+ String nfNamingCode = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNfNamingCode(nfNamingCode);
+ }
+
+ @Test
+ public void testGetPriority() throws Exception {
+ CommonEventHeader testSubject;
+ CommonEventHeader.Priority result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPriority();
+ }
+
+ @Test
+ public void testSetPriority() throws Exception {
+ CommonEventHeader testSubject;
+ CommonEventHeader.Priority priority = CommonEventHeader.Priority.HIGH;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPriority(priority);
+ }
+
+ @Test
+ public void testGetReportingEntityId() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReportingEntityId();
+ }
+
+ @Test
+ public void testSetReportingEntityId() throws Exception {
+ CommonEventHeader testSubject;
+ String reportingEntityId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReportingEntityId(reportingEntityId);
+ }
+
+ @Test
+ public void testGetReportingEntityName() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReportingEntityName();
+ }
+
+ @Test
+ public void testSetReportingEntityName() throws Exception {
+ CommonEventHeader testSubject;
+ String reportingEntityName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReportingEntityName(reportingEntityName);
+ }
+
+ @Test
+ public void testGetSequence() throws Exception {
+ CommonEventHeader testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSequence();
+ }
+
+ @Test
+ public void testSetSequence() throws Exception {
+ CommonEventHeader testSubject;
+ Integer sequence = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSequence(sequence);
+ }
+
+ @Test
+ public void testGetSourceId() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSourceId();
+ }
+
+ @Test
+ public void testSetSourceId() throws Exception {
+ CommonEventHeader testSubject;
+ String sourceId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSourceId(sourceId);
+ }
+
+ @Test
+ public void testGetSourceName() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSourceName();
+ }
+
+ @Test
+ public void testSetSourceName() throws Exception {
+ CommonEventHeader testSubject;
+ String sourceName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSourceName(sourceName);
+ }
+
+ @Test
+ public void testGetStartEpochMicrosec() throws Exception {
+ CommonEventHeader testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStartEpochMicrosec();
+ }
+
+ @Test
+ public void testSetStartEpochMicrosec() throws Exception {
+ CommonEventHeader testSubject;
+ Double startEpochMicrosec = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStartEpochMicrosec(startEpochMicrosec);
+ }
+
+ @Test
+ public void testGetVersion() throws Exception {
+ CommonEventHeader testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVersion();
+ }
+
+ @Test
+ public void testSetVersion() throws Exception {
+ CommonEventHeader testSubject;
+ Double version = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVersion(version);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ CommonEventHeader testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ CommonEventHeader testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ CommonEventHeader testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ CommonEventHeader testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArrayTest.java new file mode 100644 index 0000000..46654d7 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/CpuUsageArrayTest.java @@ -0,0 +1,288 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class CpuUsageArrayTest {
+
+ private CpuUsageArray createTestSubject() {
+ return new CpuUsageArray();
+ }
+
+ @Test
+ public void testGetCpuIdentifier() throws Exception {
+ CpuUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuIdentifier();
+ }
+
+ @Test
+ public void testSetCpuIdentifier() throws Exception {
+ CpuUsageArray testSubject;
+ String cpuIdentifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuIdentifier(cpuIdentifier);
+ }
+
+ @Test
+ public void testGetCpuIdle() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuIdle();
+ }
+
+ @Test
+ public void testSetCpuIdle() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuIdle = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuIdle(cpuIdle);
+ }
+
+ @Test
+ public void testGetCpuUsageInterrupt() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageInterrupt();
+ }
+
+ @Test
+ public void testSetCpuUsageInterrupt() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageInterrupt = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageInterrupt(cpuUsageInterrupt);
+ }
+
+ @Test
+ public void testGetCpuUsageNice() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageNice();
+ }
+
+ @Test
+ public void testSetCpuUsageNice() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageNice = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageNice(cpuUsageNice);
+ }
+
+ @Test
+ public void testGetCpuUsageSoftIrq() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageSoftIrq();
+ }
+
+ @Test
+ public void testSetCpuUsageSoftIrq() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageSoftIrq = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageSoftIrq(cpuUsageSoftIrq);
+ }
+
+ @Test
+ public void testGetCpuUsageSteal() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageSteal();
+ }
+
+ @Test
+ public void testSetCpuUsageSteal() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageSteal = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageSteal(cpuUsageSteal);
+ }
+
+ @Test
+ public void testGetCpuUsageSystem() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageSystem();
+ }
+
+ @Test
+ public void testSetCpuUsageSystem() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageSystem = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageSystem(cpuUsageSystem);
+ }
+
+ @Test
+ public void testGetCpuUsageUser() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageUser();
+ }
+
+ @Test
+ public void testSetCpuUsageUser() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuUsageUser = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageUser(cpuUsageUser);
+ }
+
+ @Test
+ public void testGetCpuWait() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuWait();
+ }
+
+ @Test
+ public void testSetCpuWait() throws Exception {
+ CpuUsageArray testSubject;
+ Double cpuWait = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuWait(cpuWait);
+ }
+
+ @Test
+ public void testGetPercentUsage() throws Exception {
+ CpuUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPercentUsage();
+ }
+
+ @Test
+ public void testSetPercentUsage() throws Exception {
+ CpuUsageArray testSubject;
+ Double percentUsage = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPercentUsage(percentUsage);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ CpuUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ CpuUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ CpuUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ CpuUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArrayTest.java new file mode 100644 index 0000000..41b61b5 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/DiskUsageArrayTest.java @@ -0,0 +1,939 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class DiskUsageArrayTest {
+
+ private DiskUsageArray createTestSubject() {
+ return new DiskUsageArray();
+ }
+
+ @Test
+ public void testGetDiskIdentifier() throws Exception {
+ DiskUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskIdentifier();
+ }
+
+ @Test
+ public void testSetDiskIdentifier() throws Exception {
+ DiskUsageArray testSubject;
+ String diskIdentifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskIdentifier(diskIdentifier);
+ }
+
+ @Test
+ public void testGetDiskIoTimeAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskIoTimeAvg();
+ }
+
+ @Test
+ public void testSetDiskIoTimeAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskIoTimeAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskIoTimeAvg(diskIoTimeAvg);
+ }
+
+ @Test
+ public void testGetDiskIoTimeLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskIoTimeLast();
+ }
+
+ @Test
+ public void testSetDiskIoTimeLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskIoTimeLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskIoTimeLast(diskIoTimeLast);
+ }
+
+ @Test
+ public void testGetDiskIoTimeMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskIoTimeMax();
+ }
+
+ @Test
+ public void testSetDiskIoTimeMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskIoTimeMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskIoTimeMax(diskIoTimeMax);
+ }
+
+ @Test
+ public void testGetDiskIoTimeMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskIoTimeMin();
+ }
+
+ @Test
+ public void testSetDiskIoTimeMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskIoTimeMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskIoTimeMin(diskIoTimeMin);
+ }
+
+ @Test
+ public void testGetDiskMergedReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedReadAvg();
+ }
+
+ @Test
+ public void testSetDiskMergedReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedReadAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedReadAvg(diskMergedReadAvg);
+ }
+
+ @Test
+ public void testGetDiskMergedReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedReadLast();
+ }
+
+ @Test
+ public void testSetDiskMergedReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedReadLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedReadLast(diskMergedReadLast);
+ }
+
+ @Test
+ public void testGetDiskMergedReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedReadMax();
+ }
+
+ @Test
+ public void testSetDiskMergedReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedReadMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedReadMax(diskMergedReadMax);
+ }
+
+ @Test
+ public void testGetDiskMergedReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedReadMin();
+ }
+
+ @Test
+ public void testSetDiskMergedReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedReadMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedReadMin(diskMergedReadMin);
+ }
+
+ @Test
+ public void testGetDiskMergedWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedWriteAvg();
+ }
+
+ @Test
+ public void testSetDiskMergedWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedWriteAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedWriteAvg(diskMergedWriteAvg);
+ }
+
+ @Test
+ public void testGetDiskMergedWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedWriteLast();
+ }
+
+ @Test
+ public void testSetDiskMergedWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedWriteLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedWriteLast(diskMergedWriteLast);
+ }
+
+ @Test
+ public void testGetDiskMergedWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedWriteMax();
+ }
+
+ @Test
+ public void testSetDiskMergedWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedWriteMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedWriteMax(diskMergedWriteMax);
+ }
+
+ @Test
+ public void testGetDiskMergedWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskMergedWriteMin();
+ }
+
+ @Test
+ public void testSetDiskMergedWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskMergedWriteMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskMergedWriteMin(diskMergedWriteMin);
+ }
+
+ @Test
+ public void testGetDiskOctetsReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsReadAvg();
+ }
+
+ @Test
+ public void testSetDiskOctetsReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsReadAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsReadAvg(diskOctetsReadAvg);
+ }
+
+ @Test
+ public void testGetDiskOctetsReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsReadLast();
+ }
+
+ @Test
+ public void testSetDiskOctetsReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsReadLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsReadLast(diskOctetsReadLast);
+ }
+
+ @Test
+ public void testGetDiskOctetsReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsReadMax();
+ }
+
+ @Test
+ public void testSetDiskOctetsReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsReadMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsReadMax(diskOctetsReadMax);
+ }
+
+ @Test
+ public void testGetDiskOctetsReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsReadMin();
+ }
+
+ @Test
+ public void testSetDiskOctetsReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsReadMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsReadMin(diskOctetsReadMin);
+ }
+
+ @Test
+ public void testGetDiskOctetsWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsWriteAvg();
+ }
+
+ @Test
+ public void testSetDiskOctetsWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsWriteAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsWriteAvg(diskOctetsWriteAvg);
+ }
+
+ @Test
+ public void testGetDiskOctetsWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsWriteLast();
+ }
+
+ @Test
+ public void testSetDiskOctetsWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsWriteLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsWriteLast(diskOctetsWriteLast);
+ }
+
+ @Test
+ public void testGetDiskOctetsWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsWriteMax();
+ }
+
+ @Test
+ public void testSetDiskOctetsWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsWriteMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsWriteMax(diskOctetsWriteMax);
+ }
+
+ @Test
+ public void testGetDiskOctetsWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOctetsWriteMin();
+ }
+
+ @Test
+ public void testSetDiskOctetsWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOctetsWriteMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOctetsWriteMin(diskOctetsWriteMin);
+ }
+
+ @Test
+ public void testGetDiskOpsReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsReadAvg();
+ }
+
+ @Test
+ public void testSetDiskOpsReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsReadAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsReadAvg(diskOpsReadAvg);
+ }
+
+ @Test
+ public void testGetDiskOpsReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsReadLast();
+ }
+
+ @Test
+ public void testSetDiskOpsReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsReadLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsReadLast(diskOpsReadLast);
+ }
+
+ @Test
+ public void testGetDiskOpsReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsReadMax();
+ }
+
+ @Test
+ public void testSetDiskOpsReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsReadMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsReadMax(diskOpsReadMax);
+ }
+
+ @Test
+ public void testGetDiskOpsReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsReadMin();
+ }
+
+ @Test
+ public void testSetDiskOpsReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsReadMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsReadMin(diskOpsReadMin);
+ }
+
+ @Test
+ public void testGetDiskOpsWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsWriteAvg();
+ }
+
+ @Test
+ public void testSetDiskOpsWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsWriteAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsWriteAvg(diskOpsWriteAvg);
+ }
+
+ @Test
+ public void testGetDiskOpsWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsWriteLast();
+ }
+
+ @Test
+ public void testSetDiskOpsWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsWriteLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsWriteLast(diskOpsWriteLast);
+ }
+
+ @Test
+ public void testGetDiskOpsWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsWriteMax();
+ }
+
+ @Test
+ public void testSetDiskOpsWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsWriteMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsWriteMax(diskOpsWriteMax);
+ }
+
+ @Test
+ public void testGetDiskOpsWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskOpsWriteMin();
+ }
+
+ @Test
+ public void testSetDiskOpsWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskOpsWriteMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskOpsWriteMin(diskOpsWriteMin);
+ }
+
+ @Test
+ public void testGetDiskPendingOperationsAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskPendingOperationsAvg();
+ }
+
+ @Test
+ public void testSetDiskPendingOperationsAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskPendingOperationsAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskPendingOperationsAvg(diskPendingOperationsAvg);
+ }
+
+ @Test
+ public void testGetDiskPendingOperationsLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskPendingOperationsLast();
+ }
+
+ @Test
+ public void testSetDiskPendingOperationsLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskPendingOperationsLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskPendingOperationsLast(diskPendingOperationsLast);
+ }
+
+ @Test
+ public void testGetDiskPendingOperationsMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskPendingOperationsMax();
+ }
+
+ @Test
+ public void testSetDiskPendingOperationsMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskPendingOperationsMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskPendingOperationsMax(diskPendingOperationsMax);
+ }
+
+ @Test
+ public void testGetDiskPendingOperationsMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskPendingOperationsMin();
+ }
+
+ @Test
+ public void testSetDiskPendingOperationsMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskPendingOperationsMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskPendingOperationsMin(diskPendingOperationsMin);
+ }
+
+ @Test
+ public void testGetDiskTimeReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeReadAvg();
+ }
+
+ @Test
+ public void testSetDiskTimeReadAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeReadAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeReadAvg(diskTimeReadAvg);
+ }
+
+ @Test
+ public void testGetDiskTimeReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeReadLast();
+ }
+
+ @Test
+ public void testSetDiskTimeReadLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeReadLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeReadLast(diskTimeReadLast);
+ }
+
+ @Test
+ public void testGetDiskTimeReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeReadMax();
+ }
+
+ @Test
+ public void testSetDiskTimeReadMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeReadMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeReadMax(diskTimeReadMax);
+ }
+
+ @Test
+ public void testGetDiskTimeReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeReadMin();
+ }
+
+ @Test
+ public void testSetDiskTimeReadMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeReadMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeReadMin(diskTimeReadMin);
+ }
+
+ @Test
+ public void testGetDiskTimeWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeWriteAvg();
+ }
+
+ @Test
+ public void testSetDiskTimeWriteAvg() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeWriteAvg = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeWriteAvg(diskTimeWriteAvg);
+ }
+
+ @Test
+ public void testGetDiskTimeWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeWriteLast();
+ }
+
+ @Test
+ public void testSetDiskTimeWriteLast() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeWriteLast = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeWriteLast(diskTimeWriteLast);
+ }
+
+ @Test
+ public void testGetDiskTimeWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeWriteMax();
+ }
+
+ @Test
+ public void testSetDiskTimeWriteMax() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeWriteMax = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeWriteMax(diskTimeWriteMax);
+ }
+
+ @Test
+ public void testGetDiskTimeWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskTimeWriteMin();
+ }
+
+ @Test
+ public void testSetDiskTimeWriteMin() throws Exception {
+ DiskUsageArray testSubject;
+ Double diskTimeWriteMin = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskTimeWriteMin(diskTimeWriteMin);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ DiskUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ DiskUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ DiskUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ DiskUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummariesTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummariesTest.java new file mode 100644 index 0000000..9c47db2 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EndOfCallVqmSummariesTest.java @@ -0,0 +1,524 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class EndOfCallVqmSummariesTest {
+
+ private EndOfCallVqmSummaries createTestSubject() {
+ return new EndOfCallVqmSummaries();
+ }
+
+ @Test
+ public void testGetAdjacencyName() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdjacencyName();
+ }
+
+ @Test
+ public void testSetAdjacencyName() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ String adjacencyName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdjacencyName(adjacencyName);
+ }
+
+
+
+ @Test
+ public void testGetEndpointDescription() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ EndOfCallVqmSummaries.EndpointDescription result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointDescription();
+ }
+
+
+
+ @Test
+ public void testSetEndpointDescription() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ EndOfCallVqmSummaries.EndpointDescription endpointDescription =
+ EndOfCallVqmSummaries.EndpointDescription.CALLEE;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointDescription(endpointDescription);
+ }
+
+ @Test
+ public void testGetEndpointJitter() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointJitter();
+ }
+
+ @Test
+ public void testSetEndpointJitter() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointJitter = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointJitter(endpointJitter);
+ }
+
+ @Test
+ public void testGetEndpointRtpOctetsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpOctetsDiscarded();
+ }
+
+ @Test
+ public void testSetEndpointRtpOctetsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpOctetsDiscarded = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpOctetsDiscarded(endpointRtpOctetsDiscarded);
+ }
+
+ @Test
+ public void testGetEndpointRtpOctetsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpOctetsReceived();
+ }
+
+ @Test
+ public void testSetEndpointRtpOctetsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpOctetsReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpOctetsReceived(endpointRtpOctetsReceived);
+ }
+
+ @Test
+ public void testGetEndpointRtpOctetsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpOctetsSent();
+ }
+
+ @Test
+ public void testSetEndpointRtpOctetsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpOctetsSent = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpOctetsSent(endpointRtpOctetsSent);
+ }
+
+ @Test
+ public void testGetEndpointRtpPacketsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpPacketsDiscarded();
+ }
+
+ @Test
+ public void testSetEndpointRtpPacketsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpPacketsDiscarded = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpPacketsDiscarded(endpointRtpPacketsDiscarded);
+ }
+
+ @Test
+ public void testGetEndpointRtpPacketsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpPacketsReceived();
+ }
+
+ @Test
+ public void testSetEndpointRtpPacketsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpPacketsReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpPacketsReceived(endpointRtpPacketsReceived);
+ }
+
+ @Test
+ public void testGetEndpointRtpPacketsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndpointRtpPacketsSent();
+ }
+
+ @Test
+ public void testSetEndpointRtpPacketsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double endpointRtpPacketsSent = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndpointRtpPacketsSent(endpointRtpPacketsSent);
+ }
+
+ @Test
+ public void testGetLocalJitter() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalJitter();
+ }
+
+ @Test
+ public void testSetLocalJitter() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localJitter = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalJitter(localJitter);
+ }
+
+ @Test
+ public void testGetLocalRtpOctetsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpOctetsDiscarded();
+ }
+
+ @Test
+ public void testSetLocalRtpOctetsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpOctetsDiscarded = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpOctetsDiscarded(localRtpOctetsDiscarded);
+ }
+
+ @Test
+ public void testGetLocalRtpOctetsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpOctetsReceived();
+ }
+
+ @Test
+ public void testSetLocalRtpOctetsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpOctetsReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpOctetsReceived(localRtpOctetsReceived);
+ }
+
+ @Test
+ public void testGetLocalRtpOctetsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpOctetsSent();
+ }
+
+ @Test
+ public void testSetLocalRtpOctetsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpOctetsSent = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpOctetsSent(localRtpOctetsSent);
+ }
+
+ @Test
+ public void testGetLocalRtpPacketsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpPacketsDiscarded();
+ }
+
+ @Test
+ public void testSetLocalRtpPacketsDiscarded() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpPacketsDiscarded = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpPacketsDiscarded(localRtpPacketsDiscarded);
+ }
+
+ @Test
+ public void testGetLocalRtpPacketsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpPacketsReceived();
+ }
+
+ @Test
+ public void testSetLocalRtpPacketsReceived() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpPacketsReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpPacketsReceived(localRtpPacketsReceived);
+ }
+
+ @Test
+ public void testGetLocalRtpPacketsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalRtpPacketsSent();
+ }
+
+ @Test
+ public void testSetLocalRtpPacketsSent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double localRtpPacketsSent = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalRtpPacketsSent(localRtpPacketsSent);
+ }
+
+ @Test
+ public void testGetMosCqe() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMosCqe();
+ }
+
+ @Test
+ public void testSetMosCqe() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double mosCqe = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMosCqe(mosCqe);
+ }
+
+ @Test
+ public void testGetPacketsLost() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPacketsLost();
+ }
+
+ @Test
+ public void testSetPacketsLost() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double packetsLost = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPacketsLost(packetsLost);
+ }
+
+ @Test
+ public void testGetPacketLossPercent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPacketLossPercent();
+ }
+
+ @Test
+ public void testSetPacketLossPercent() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double packetLossPercent = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPacketLossPercent(packetLossPercent);
+ }
+
+ @Test
+ public void testGetRFactor() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRFactor();
+ }
+
+ @Test
+ public void testSetRFactor() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double data = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRFactor(data);
+ }
+
+ @Test
+ public void testGetRoundTripDelay() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRoundTripDelay();
+ }
+
+ @Test
+ public void testSetRoundTripDelay() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Double roundTripDelay = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRoundTripDelay(roundTripDelay);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ EndOfCallVqmSummaries testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EventTest.java new file mode 100644 index 0000000..8d8d02a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/EventTest.java @@ -0,0 +1,313 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class EventTest {
+
+ private Event createTestSubject() {
+ return new Event();
+ }
+
+ @Test
+ public void testGetCommonEventHeader() throws Exception {
+ Event testSubject;
+ CommonEventHeader result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCommonEventHeader();
+ }
+
+ @Test
+ public void testSetCommonEventHeader() throws Exception {
+ Event testSubject;
+ CommonEventHeader commonEventHeader = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCommonEventHeader(commonEventHeader);
+ }
+
+ @Test
+ public void testGetFaultFields() throws Exception {
+ Event testSubject;
+ FaultFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFaultFields();
+ }
+
+ @Test
+ public void testSetFaultFields() throws Exception {
+ Event testSubject;
+ FaultFields faultFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFaultFields(faultFields);
+ }
+
+ @Test
+ public void testGetHeartbeatFields() throws Exception {
+ Event testSubject;
+ HeartbeatFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeartbeatFields();
+ }
+
+ @Test
+ public void testSetHeartbeatFields() throws Exception {
+ Event testSubject;
+ HeartbeatFields heartbeatFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeartbeatFields(heartbeatFields);
+ }
+
+
+ @Test
+ public void testGetMeasurementsForVfScalingFields() throws Exception {
+ Event testSubject;
+ MeasurementsForVfScalingFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMeasurementsForVfScalingFields();
+ }
+
+
+ @Test
+ public void testSetMeasurementsForVfScalingFields() throws Exception {
+ Event testSubject;
+ MeasurementsForVfScalingFields measurementsForVfScalingFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMeasurementsForVfScalingFields(measurementsForVfScalingFields);
+ }
+
+ @Test
+ public void testGetMobileFlowFields() throws Exception {
+ Event testSubject;
+ MobileFlowFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMobileFlowFields();
+ }
+
+ @Test
+ public void testSetMobileFlowFields() throws Exception {
+ Event testSubject;
+ MobileFlowFields mobileFlowFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMobileFlowFields(mobileFlowFields);
+ }
+
+ @Test
+ public void testGetOtherFields() throws Exception {
+ Event testSubject;
+ OtherFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOtherFields();
+ }
+
+ @Test
+ public void testSetOtherFields() throws Exception {
+ Event testSubject;
+ OtherFields otherFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOtherFields(otherFields);
+ }
+
+ @Test
+ public void testGetSipSignalingFields() throws Exception {
+ Event testSubject;
+ SipSignalingFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSipSignalingFields();
+ }
+
+ @Test
+ public void testSetSipSignalingFields() throws Exception {
+ Event testSubject;
+ SipSignalingFields sipSignalingFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSipSignalingFields(sipSignalingFields);
+ }
+
+ @Test
+ public void testGetStateChangeFields() throws Exception {
+ Event testSubject;
+ StateChangeFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStateChangeFields();
+ }
+
+ @Test
+ public void testSetStateChangeFields() throws Exception {
+ Event testSubject;
+ StateChangeFields stateChangeFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStateChangeFields(stateChangeFields);
+ }
+
+ @Test
+ public void testGetSyslogFields() throws Exception {
+ Event testSubject;
+ SyslogFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogFields();
+ }
+
+ @Test
+ public void testSetSyslogFields() throws Exception {
+ Event testSubject;
+ SyslogFields syslogFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogFields(syslogFields);
+ }
+
+
+ @Test
+ public void testGetThresholdCrossingAlertFields() throws Exception {
+ Event testSubject;
+ ThresholdCrossingAlertFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getThresholdCrossingAlertFields();
+ }
+
+
+ @Test
+ public void testSetThresholdCrossingAlertFields() throws Exception {
+ Event testSubject;
+ ThresholdCrossingAlertFields thresholdCrossingAlertFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setThresholdCrossingAlertFields(thresholdCrossingAlertFields);
+ }
+
+ @Test
+ public void testGetVoiceQualityFields() throws Exception {
+ Event testSubject;
+ VoiceQualityFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVoiceQualityFields();
+ }
+
+ @Test
+ public void testSetVoiceQualityFields() throws Exception {
+ Event testSubject;
+ VoiceQualityFields voiceQualityFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVoiceQualityFields(voiceQualityFields);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ Event testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ Event testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ Event testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ Event testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FaultFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FaultFieldsTest.java new file mode 100644 index 0000000..4488127 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FaultFieldsTest.java @@ -0,0 +1,270 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class FaultFieldsTest {
+
+ private FaultFields createTestSubject() {
+ return new FaultFields();
+ }
+
+
+ @Test
+ public void testGetAlarmAdditionalInformation() throws Exception {
+ FaultFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlarmAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAlarmAdditionalInformation() throws Exception {
+ FaultFields testSubject;
+ List<AlarmAdditionalInformation> alarmAdditionalInformation = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlarmAdditionalInformation(alarmAdditionalInformation);
+ }
+
+ @Test
+ public void testGetAlarmCondition() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlarmCondition();
+ }
+
+ @Test
+ public void testSetAlarmCondition() throws Exception {
+ FaultFields testSubject;
+ String alarmCondition = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlarmCondition(alarmCondition);
+ }
+
+ @Test
+ public void testGetAlarmInterfaceA() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlarmInterfaceA();
+ }
+
+ @Test
+ public void testSetAlarmInterfaceA() throws Exception {
+ FaultFields testSubject;
+ String alarmInterfaceA = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlarmInterfaceA(alarmInterfaceA);
+ }
+
+ @Test
+ public void testGetEventCategory() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventCategory();
+ }
+
+ @Test
+ public void testSetEventCategory() throws Exception {
+ FaultFields testSubject;
+ String eventCategory = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventCategory(eventCategory);
+ }
+
+ @Test
+ public void testGetEventSeverity() throws Exception {
+ FaultFields testSubject;
+ FaultFields.EventSeverity result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventSeverity();
+ }
+
+ @Test
+ public void testSetEventSeverity() throws Exception {
+ FaultFields testSubject;
+ FaultFields.EventSeverity eventSeverity = FaultFields.EventSeverity.CRITICAL;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventSeverity(eventSeverity);
+ }
+
+ @Test
+ public void testGetEventSourceType() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventSourceType();
+ }
+
+ @Test
+ public void testSetEventSourceType() throws Exception {
+ FaultFields testSubject;
+ String eventSourceType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventSourceType(eventSourceType);
+ }
+
+ @Test
+ public void testGetFaultFieldsVersion() throws Exception {
+ FaultFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFaultFieldsVersion();
+ }
+
+ @Test
+ public void testSetFaultFieldsVersion() throws Exception {
+ FaultFields testSubject;
+ Double faultFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFaultFieldsVersion(faultFieldsVersion);
+ }
+
+ @Test
+ public void testGetSpecificProblem() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSpecificProblem();
+ }
+
+ @Test
+ public void testSetSpecificProblem() throws Exception {
+ FaultFields testSubject;
+ String specificProblem = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSpecificProblem(specificProblem);
+ }
+
+ @Test
+ public void testGetVfStatus() throws Exception {
+ FaultFields testSubject;
+ FaultFields.VfStatus result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfStatus();
+ }
+
+ @Test
+ public void testSetVfStatus() throws Exception {
+ FaultFields testSubject;
+ FaultFields.VfStatus vfStatus = FaultFields.VfStatus.ACTIVE;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVfStatus(vfStatus);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ FaultFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ FaultFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ FaultFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ FaultFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArrayTest.java new file mode 100644 index 0000000..00f6292 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FeatureUsageArrayTest.java @@ -0,0 +1,120 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class FeatureUsageArrayTest {
+
+ private FeatureUsageArray createTestSubject() {
+ return new FeatureUsageArray();
+ }
+
+ @Test
+ public void testGetFeatureIdentifier() throws Exception {
+ FeatureUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFeatureIdentifier();
+ }
+
+ @Test
+ public void testSetFeatureIdentifier() throws Exception {
+ FeatureUsageArray testSubject;
+ String featureIdentifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFeatureIdentifier(featureIdentifier);
+ }
+
+ @Test
+ public void testGetFeatureUtilization() throws Exception {
+ FeatureUsageArray testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFeatureUtilization();
+ }
+
+ @Test
+ public void testSetFeatureUtilization() throws Exception {
+ FeatureUsageArray testSubject;
+ Integer featureUtilization = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFeatureUtilization(featureUtilization);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ FeatureUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ FeatureUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ FeatureUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ FeatureUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArrayTest.java new file mode 100644 index 0000000..0596cb2 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/FilesystemUsageArrayTest.java @@ -0,0 +1,225 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class FilesystemUsageArrayTest {
+
+ private FilesystemUsageArray createTestSubject() {
+ return new FilesystemUsageArray();
+ }
+
+ @Test
+ public void testGetBlockConfigured() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBlockConfigured();
+ }
+
+ @Test
+ public void testSetBlockConfigured() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double blockConfigured = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBlockConfigured(blockConfigured);
+ }
+
+ @Test
+ public void testGetBlockIops() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBlockIops();
+ }
+
+ @Test
+ public void testSetBlockIops() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double blockIops = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBlockIops(blockIops);
+ }
+
+ @Test
+ public void testGetBlockUsed() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getBlockUsed();
+ }
+
+ @Test
+ public void testSetBlockUsed() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double blockUsed = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setBlockUsed(blockUsed);
+ }
+
+ @Test
+ public void testGetEphemeralConfigured() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEphemeralConfigured();
+ }
+
+ @Test
+ public void testSetEphemeralConfigured() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double ephemeralConfigured = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEphemeralConfigured(ephemeralConfigured);
+ }
+
+ @Test
+ public void testGetEphemeralIops() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEphemeralIops();
+ }
+
+ @Test
+ public void testSetEphemeralIops() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double ephemeralIops = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEphemeralIops(ephemeralIops);
+ }
+
+ @Test
+ public void testGetEphemeralUsed() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEphemeralUsed();
+ }
+
+ @Test
+ public void testSetEphemeralUsed() throws Exception {
+ FilesystemUsageArray testSubject;
+ Double ephemeralUsed = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEphemeralUsed(ephemeralUsed);
+ }
+
+ @Test
+ public void testGetFilesystemName() throws Exception {
+ FilesystemUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFilesystemName();
+ }
+
+ @Test
+ public void testSetFilesystemName() throws Exception {
+ FilesystemUsageArray testSubject;
+ String filesystemName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFilesystemName(filesystemName);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ FilesystemUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ FilesystemUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ FilesystemUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ FilesystemUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetricsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetricsTest.java new file mode 100644 index 0000000..026e683 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/GtpPerFlowMetricsTest.java @@ -0,0 +1,1129 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class GtpPerFlowMetricsTest {
+
+ private GtpPerFlowMetrics createTestSubject() {
+ return new GtpPerFlowMetrics();
+ }
+
+ @Test
+ public void testGetAvgBitErrorRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAvgBitErrorRate();
+ }
+
+ @Test
+ public void testSetAvgBitErrorRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double avgBitErrorRate = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAvgBitErrorRate(avgBitErrorRate);
+ }
+
+ @Test
+ public void testGetAvgPacketDelayVariation() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAvgPacketDelayVariation();
+ }
+
+ @Test
+ public void testSetAvgPacketDelayVariation() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double avgPacketDelayVariation = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAvgPacketDelayVariation(avgPacketDelayVariation);
+ }
+
+ @Test
+ public void testGetAvgPacketLatency() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAvgPacketLatency();
+ }
+
+ @Test
+ public void testSetAvgPacketLatency() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double avgPacketLatency = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAvgPacketLatency(avgPacketLatency);
+ }
+
+ @Test
+ public void testGetAvgReceiveThroughput() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAvgReceiveThroughput();
+ }
+
+ @Test
+ public void testSetAvgReceiveThroughput() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double avgReceiveThroughput = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAvgReceiveThroughput(avgReceiveThroughput);
+ }
+
+ @Test
+ public void testGetAvgTransmitThroughput() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAvgTransmitThroughput();
+ }
+
+ @Test
+ public void testSetAvgTransmitThroughput() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double avgTransmitThroughput = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAvgTransmitThroughput(avgTransmitThroughput);
+ }
+
+ @Test
+ public void testGetDurConnectionFailedStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDurConnectionFailedStatus();
+ }
+
+ @Test
+ public void testSetDurConnectionFailedStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double durConnectionFailedStatus = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDurConnectionFailedStatus(durConnectionFailedStatus);
+ }
+
+ @Test
+ public void testGetDurTunnelFailedStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDurTunnelFailedStatus();
+ }
+
+ @Test
+ public void testSetDurTunnelFailedStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double durTunnelFailedStatus = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDurTunnelFailedStatus(durTunnelFailedStatus);
+ }
+
+ @Test
+ public void testGetFlowActivatedBy() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowActivatedBy();
+ }
+
+ @Test
+ public void testSetFlowActivatedBy() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String flowActivatedBy = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowActivatedBy(flowActivatedBy);
+ }
+
+ @Test
+ public void testGetFlowActivationEpoch() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowActivationEpoch();
+ }
+
+ @Test
+ public void testSetFlowActivationEpoch() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double flowActivationEpoch = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowActivationEpoch(flowActivationEpoch);
+ }
+
+ @Test
+ public void testGetFlowActivationMicrosec() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowActivationMicrosec();
+ }
+
+ @Test
+ public void testSetFlowActivationMicrosec() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double flowActivationMicrosec = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowActivationMicrosec(flowActivationMicrosec);
+ }
+
+ @Test
+ public void testGetFlowActivationTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowActivationTime();
+ }
+
+ @Test
+ public void testSetFlowActivationTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String flowActivationTime = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowActivationTime(flowActivationTime);
+ }
+
+ @Test
+ public void testGetFlowDeactivatedBy() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowDeactivatedBy();
+ }
+
+ @Test
+ public void testSetFlowDeactivatedBy() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String flowDeactivatedBy = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowDeactivatedBy(flowDeactivatedBy);
+ }
+
+ @Test
+ public void testGetFlowDeactivationEpoch() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowDeactivationEpoch();
+ }
+
+ @Test
+ public void testSetFlowDeactivationEpoch() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double flowDeactivationEpoch = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowDeactivationEpoch(flowDeactivationEpoch);
+ }
+
+ @Test
+ public void testGetFlowDeactivationMicrosec() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowDeactivationMicrosec();
+ }
+
+ @Test
+ public void testSetFlowDeactivationMicrosec() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double flowDeactivationMicrosec = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowDeactivationMicrosec(flowDeactivationMicrosec);
+ }
+
+ @Test
+ public void testGetFlowDeactivationTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowDeactivationTime();
+ }
+
+ @Test
+ public void testSetFlowDeactivationTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String flowDeactivationTime = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowDeactivationTime(flowDeactivationTime);
+ }
+
+ @Test
+ public void testGetFlowStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowStatus();
+ }
+
+ @Test
+ public void testSetFlowStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String flowStatus = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowStatus(flowStatus);
+ }
+
+ @Test
+ public void testGetGtpConnectionStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGtpConnectionStatus();
+ }
+
+ @Test
+ public void testSetGtpConnectionStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String gtpConnectionStatus = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGtpConnectionStatus(gtpConnectionStatus);
+ }
+
+ @Test
+ public void testGetGtpTunnelStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGtpTunnelStatus();
+ }
+
+ @Test
+ public void testSetGtpTunnelStatus() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String gtpTunnelStatus = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGtpTunnelStatus(gtpTunnelStatus);
+ }
+
+ @Test
+ public void testGetIpTosCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIpTosCountList();
+ }
+
+ @Test
+ public void testSetIpTosCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> ipTosCountList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIpTosCountList(ipTosCountList);
+ }
+
+ @Test
+ public void testGetIpTosList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIpTosList();
+ }
+
+ @Test
+ public void testSetIpTosList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> ipTosList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIpTosList(ipTosList);
+ }
+
+ @Test
+ public void testGetLargePacketRtt() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLargePacketRtt();
+ }
+
+ @Test
+ public void testSetLargePacketRtt() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double largePacketRtt = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLargePacketRtt(largePacketRtt);
+ }
+
+ @Test
+ public void testGetLargePacketThreshold() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLargePacketThreshold();
+ }
+
+ @Test
+ public void testSetLargePacketThreshold() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double largePacketThreshold = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLargePacketThreshold(largePacketThreshold);
+ }
+
+ @Test
+ public void testGetMaxPacketDelayVariation() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMaxPacketDelayVariation();
+ }
+
+ @Test
+ public void testSetMaxPacketDelayVariation() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double maxPacketDelayVariation = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMaxPacketDelayVariation(maxPacketDelayVariation);
+ }
+
+ @Test
+ public void testGetMaxReceiveBitRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMaxReceiveBitRate();
+ }
+
+ @Test
+ public void testSetMaxReceiveBitRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double maxReceiveBitRate = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMaxReceiveBitRate(maxReceiveBitRate);
+ }
+
+ @Test
+ public void testGetMaxTransmitBitRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMaxTransmitBitRate();
+ }
+
+ @Test
+ public void testSetMaxTransmitBitRate() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double maxTransmitBitRate = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMaxTransmitBitRate(maxTransmitBitRate);
+ }
+
+ @Test
+ public void testGetMobileQciCosCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMobileQciCosCountList();
+ }
+
+ @Test
+ public void testSetMobileQciCosCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> mobileQciCosCountList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMobileQciCosCountList(mobileQciCosCountList);
+ }
+
+ @Test
+ public void testGetMobileQciCosList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMobileQciCosList();
+ }
+
+ @Test
+ public void testSetMobileQciCosList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> mobileQciCosList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMobileQciCosList(mobileQciCosList);
+ }
+
+ @Test
+ public void testGetNumActivationFailures() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumActivationFailures();
+ }
+
+ @Test
+ public void testSetNumActivationFailures() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numActivationFailures = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumActivationFailures(numActivationFailures);
+ }
+
+ @Test
+ public void testGetNumBitErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumBitErrors();
+ }
+
+ @Test
+ public void testSetNumBitErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numBitErrors = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumBitErrors(numBitErrors);
+ }
+
+ @Test
+ public void testGetNumBytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumBytesReceived();
+ }
+
+ @Test
+ public void testSetNumBytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numBytesReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumBytesReceived(numBytesReceived);
+ }
+
+ @Test
+ public void testGetNumBytesTransmitted() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumBytesTransmitted();
+ }
+
+ @Test
+ public void testSetNumBytesTransmitted() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numBytesTransmitted = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumBytesTransmitted(numBytesTransmitted);
+ }
+
+ @Test
+ public void testGetNumDroppedPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumDroppedPackets();
+ }
+
+ @Test
+ public void testSetNumDroppedPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numDroppedPackets = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumDroppedPackets(numDroppedPackets);
+ }
+
+ @Test
+ public void testGetNumGtpEchoFailures() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumGtpEchoFailures();
+ }
+
+ @Test
+ public void testSetNumGtpEchoFailures() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numGtpEchoFailures = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumGtpEchoFailures(numGtpEchoFailures);
+ }
+
+ @Test
+ public void testGetNumGtpTunnelErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumGtpTunnelErrors();
+ }
+
+ @Test
+ public void testSetNumGtpTunnelErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numGtpTunnelErrors = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumGtpTunnelErrors(numGtpTunnelErrors);
+ }
+
+ @Test
+ public void testGetNumHttpErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumHttpErrors();
+ }
+
+ @Test
+ public void testSetNumHttpErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numHttpErrors = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumHttpErrors(numHttpErrors);
+ }
+
+ @Test
+ public void testGetNumL7BytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumL7BytesReceived();
+ }
+
+ @Test
+ public void testSetNumL7BytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numL7BytesReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumL7BytesReceived(numL7BytesReceived);
+ }
+
+ @Test
+ public void testGetNumL7BytesTransmitted() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumL7BytesTransmitted();
+ }
+
+ @Test
+ public void testSetNumL7BytesTransmitted() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numL7BytesTransmitted = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumL7BytesTransmitted(numL7BytesTransmitted);
+ }
+
+ @Test
+ public void testGetNumLostPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumLostPackets();
+ }
+
+ @Test
+ public void testSetNumLostPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numLostPackets = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumLostPackets(numLostPackets);
+ }
+
+ @Test
+ public void testGetNumOutOfOrderPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumOutOfOrderPackets();
+ }
+
+ @Test
+ public void testSetNumOutOfOrderPackets() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numOutOfOrderPackets = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumOutOfOrderPackets(numOutOfOrderPackets);
+ }
+
+ @Test
+ public void testGetNumPacketErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumPacketErrors();
+ }
+
+ @Test
+ public void testSetNumPacketErrors() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numPacketErrors = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumPacketErrors(numPacketErrors);
+ }
+
+ @Test
+ public void testGetNumPacketsReceivedExclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumPacketsReceivedExclRetrans();
+ }
+
+ @Test
+ public void testSetNumPacketsReceivedExclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numPacketsReceivedExclRetrans = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumPacketsReceivedExclRetrans(numPacketsReceivedExclRetrans);
+ }
+
+ @Test
+ public void testGetNumPacketsReceivedInclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumPacketsReceivedInclRetrans();
+ }
+
+ @Test
+ public void testSetNumPacketsReceivedInclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numPacketsReceivedInclRetrans = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumPacketsReceivedInclRetrans(numPacketsReceivedInclRetrans);
+ }
+
+ @Test
+ public void testGetNumPacketsTransmittedInclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumPacketsTransmittedInclRetrans();
+ }
+
+ @Test
+ public void testSetNumPacketsTransmittedInclRetrans() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numPacketsTransmittedInclRetrans = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumPacketsTransmittedInclRetrans(numPacketsTransmittedInclRetrans);
+ }
+
+ @Test
+ public void testGetNumRetries() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumRetries();
+ }
+
+ @Test
+ public void testSetNumRetries() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numRetries = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumRetries(numRetries);
+ }
+
+ @Test
+ public void testGetNumTimeouts() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumTimeouts();
+ }
+
+ @Test
+ public void testSetNumTimeouts() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numTimeouts = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumTimeouts(numTimeouts);
+ }
+
+ @Test
+ public void testGetNumTunneledL7BytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumTunneledL7BytesReceived();
+ }
+
+ @Test
+ public void testSetNumTunneledL7BytesReceived() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double numTunneledL7BytesReceived = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumTunneledL7BytesReceived(numTunneledL7BytesReceived);
+ }
+
+ @Test
+ public void testGetRoundTripTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRoundTripTime();
+ }
+
+ @Test
+ public void testSetRoundTripTime() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double roundTripTime = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRoundTripTime(roundTripTime);
+ }
+
+ @Test
+ public void testGetTcpFlagCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTcpFlagCountList();
+ }
+
+ @Test
+ public void testSetTcpFlagCountList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<List<Object>> tcpFlagCountList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTcpFlagCountList(tcpFlagCountList);
+ }
+
+ @Test
+ public void testGetTcpFlagList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTcpFlagList();
+ }
+
+ @Test
+ public void testSetTcpFlagList() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ List<String> tcpFlagList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTcpFlagList(tcpFlagList);
+ }
+
+ @Test
+ public void testGetTimeToFirstByte() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTimeToFirstByte();
+ }
+
+ @Test
+ public void testSetTimeToFirstByte() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Double timeToFirstByte = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTimeToFirstByte(timeToFirstByte);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ GtpPerFlowMetrics testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFieldsTest.java new file mode 100644 index 0000000..af71b46 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/HeartbeatFieldsTest.java @@ -0,0 +1,142 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class HeartbeatFieldsTest {
+
+ private HeartbeatFields createTestSubject() {
+ return new HeartbeatFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ HeartbeatFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ HeartbeatFields testSubject;
+ List<AlarmAdditionalInformation> additionalFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetHeartbeatFieldsVersion() throws Exception {
+ HeartbeatFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeartbeatFieldsVersion();
+ }
+
+ @Test
+ public void testSetHeartbeatFieldsVersion() throws Exception {
+ HeartbeatFields testSubject;
+ Double heartbeatFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeartbeatFieldsVersion(heartbeatFieldsVersion);
+ }
+
+ @Test
+ public void testGetHeartbeatInterval() throws Exception {
+ HeartbeatFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHeartbeatInterval();
+ }
+
+ @Test
+ public void testSetHeartbeatInterval() throws Exception {
+ HeartbeatFields testSubject;
+ Integer heartbeatInterval = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHeartbeatInterval(heartbeatInterval);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ HeartbeatFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ HeartbeatFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ HeartbeatFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ HeartbeatFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFieldsTest.java new file mode 100644 index 0000000..3ab86b0 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/InternalHeaderFieldsTest.java @@ -0,0 +1,78 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class InternalHeaderFieldsTest {
+
+ private InternalHeaderFields createTestSubject() {
+ return new InternalHeaderFields();
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ InternalHeaderFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ InternalHeaderFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ InternalHeaderFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ InternalHeaderFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistributionTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistributionTest.java new file mode 100644 index 0000000..d91c8a2 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/LatencyDistributionTest.java @@ -0,0 +1,141 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class LatencyDistributionTest {
+
+ private LatencyDistribution createTestSubject() {
+ return new LatencyDistribution();
+ }
+
+ @Test
+ public void testGetCountsInTheBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCountsInTheBucket();
+ }
+
+ @Test
+ public void testSetCountsInTheBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double countsInTheBucket = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCountsInTheBucket(countsInTheBucket);
+ }
+
+ @Test
+ public void testGetHighEndOfLatencyBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHighEndOfLatencyBucket();
+ }
+
+ @Test
+ public void testSetHighEndOfLatencyBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double highEndOfLatencyBucket = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHighEndOfLatencyBucket(highEndOfLatencyBucket);
+ }
+
+ @Test
+ public void testGetLowEndOfLatencyBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLowEndOfLatencyBucket();
+ }
+
+ @Test
+ public void testSetLowEndOfLatencyBucket() throws Exception {
+ LatencyDistribution testSubject;
+ Double lowEndOfLatencyBucket = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLowEndOfLatencyBucket(lowEndOfLatencyBucket);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ LatencyDistribution testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ LatencyDistribution testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ LatencyDistribution testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ LatencyDistribution testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFieldsTest.java new file mode 100644 index 0000000..ded359d --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MeasurementsForVfScalingFieldsTest.java @@ -0,0 +1,478 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class MeasurementsForVfScalingFieldsTest {
+
+ private MeasurementsForVfScalingFields createTestSubject() {
+ return new MeasurementsForVfScalingFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AlarmAdditionalInformation> additionalFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetAdditionalMeasurements() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AdditionalMeasurement> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalMeasurements();
+ }
+
+ @Test
+ public void testSetAdditionalMeasurements() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AdditionalMeasurement> additionalMeasurements = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalMeasurements(additionalMeasurements);
+ }
+
+ @Test
+ public void testGetAdditionalObjects() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AdditionalObject> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalObjects();
+ }
+
+ @Test
+ public void testSetAdditionalObjects() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<AdditionalObject> additionalObjects = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalObjects(additionalObjects);
+ }
+
+ @Test
+ public void testGetCodecUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<CodecUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCodecUsageArray();
+ }
+
+ @Test
+ public void testSetCodecUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<CodecUsageArray> codecUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCodecUsageArray(codecUsageArray);
+ }
+
+ @Test
+ public void testGetConcurrentSessions() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConcurrentSessions();
+ }
+
+ @Test
+ public void testSetConcurrentSessions() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer concurrentSessions = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConcurrentSessions(concurrentSessions);
+ }
+
+ @Test
+ public void testGetConfiguredEntities() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConfiguredEntities();
+ }
+
+ @Test
+ public void testSetConfiguredEntities() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer configuredEntities = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConfiguredEntities(configuredEntities);
+ }
+
+ @Test
+ public void testGetCpuUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<CpuUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCpuUsageArray();
+ }
+
+ @Test
+ public void testSetCpuUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<CpuUsageArray> cpuUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCpuUsageArray(cpuUsageArray);
+ }
+
+ @Test
+ public void testGetDiskUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<DiskUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDiskUsageArray();
+ }
+
+ @Test
+ public void testSetDiskUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<DiskUsageArray> diskUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDiskUsageArray(diskUsageArray);
+ }
+
+ @Test
+ public void testGetFeatureUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<FeatureUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFeatureUsageArray();
+ }
+
+ @Test
+ public void testSetFeatureUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<FeatureUsageArray> featureUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFeatureUsageArray(featureUsageArray);
+ }
+
+ @Test
+ public void testGetFilesystemUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<FilesystemUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFilesystemUsageArray();
+ }
+
+ @Test
+ public void testSetFilesystemUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<FilesystemUsageArray> filesystemUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFilesystemUsageArray(filesystemUsageArray);
+ }
+
+ @Test
+ public void testGetLatencyDistribution() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<LatencyDistribution> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLatencyDistribution();
+ }
+
+ @Test
+ public void testSetLatencyDistribution() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<LatencyDistribution> latencyDistribution = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLatencyDistribution(latencyDistribution);
+ }
+
+ @Test
+ public void testGetMeanRequestLatency() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMeanRequestLatency();
+ }
+
+ @Test
+ public void testSetMeanRequestLatency() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double meanRequestLatency = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMeanRequestLatency(meanRequestLatency);
+ }
+
+ @Test
+ public void testGetMeasurementInterval() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMeasurementInterval();
+ }
+
+ @Test
+ public void testSetMeasurementInterval() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double measurementInterval = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMeasurementInterval(measurementInterval);
+ }
+
+ @Test
+ public void testGetMeasurementsForVfScalingVersion() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMeasurementsForVfScalingVersion();
+ }
+
+ @Test
+ public void testSetMeasurementsForVfScalingVersion() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double measurementsForVfScalingVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMeasurementsForVfScalingVersion(measurementsForVfScalingVersion);
+ }
+
+ @Test
+ public void testGetMemoryUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<MemoryUsageArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryUsageArray();
+ }
+
+ @Test
+ public void testSetMemoryUsageArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<MemoryUsageArray> memoryUsageArray = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryUsageArray(memoryUsageArray);
+ }
+
+ @Test
+ public void testGetNumberOfMediaPortsInUse() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNumberOfMediaPortsInUse();
+ }
+
+ @Test
+ public void testSetNumberOfMediaPortsInUse() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer numberOfMediaPortsInUse = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNumberOfMediaPortsInUse(numberOfMediaPortsInUse);
+ }
+
+ @Test
+ public void testGetRequestRate() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRequestRate();
+ }
+
+ @Test
+ public void testSetRequestRate() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Double requestRate = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRequestRate(requestRate);
+ }
+
+ @Test
+ public void testGetVnfcScalingMetric() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVnfcScalingMetric();
+ }
+
+ @Test
+ public void testSetVnfcScalingMetric() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Integer vnfcScalingMetric = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVnfcScalingMetric(vnfcScalingMetric);
+ }
+
+ @Test
+ public void testGetVNicPerformanceArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<VNicPerformanceArray> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVNicPerformanceArray();
+ }
+
+ @Test
+ public void testSetVNicPerformanceArray() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ List<VNicPerformanceArray> array = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVNicPerformanceArray(array);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ MeasurementsForVfScalingFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArrayTest.java new file mode 100644 index 0000000..ee296cb --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MemoryUsageArrayTest.java @@ -0,0 +1,245 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class MemoryUsageArrayTest {
+
+ private MemoryUsageArray createTestSubject() {
+ return new MemoryUsageArray();
+ }
+
+ @Test
+ public void testGetMemoryBuffered() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryBuffered();
+ }
+
+ @Test
+ public void testSetMemoryBuffered() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memoryBuffered = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryBuffered(memoryBuffered);
+ }
+
+ @Test
+ public void testGetMemoryCached() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryCached();
+ }
+
+ @Test
+ public void testSetMemoryCached() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memoryCached = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryCached(memoryCached);
+ }
+
+ @Test
+ public void testGetMemoryConfigured() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryConfigured();
+ }
+
+ @Test
+ public void testSetMemoryConfigured() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memoryConfigured = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryConfigured(memoryConfigured);
+ }
+
+ @Test
+ public void testGetMemoryFree() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryFree();
+ }
+
+ @Test
+ public void testSetMemoryFree() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memoryFree = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryFree(memoryFree);
+ }
+
+ @Test
+ public void testGetMemorySlabRecl() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemorySlabRecl();
+ }
+
+ @Test
+ public void testSetMemorySlabRecl() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memorySlabRecl = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemorySlabRecl(memorySlabRecl);
+ }
+
+ @Test
+ public void testGetMemorySlabUnrecl() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemorySlabUnrecl();
+ }
+
+ @Test
+ public void testSetMemorySlabUnrecl() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memorySlabUnrecl = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemorySlabUnrecl(memorySlabUnrecl);
+ }
+
+ @Test
+ public void testGetMemoryUsed() throws Exception {
+ MemoryUsageArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMemoryUsed();
+ }
+
+ @Test
+ public void testSetMemoryUsed() throws Exception {
+ MemoryUsageArray testSubject;
+ Double memoryUsed = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMemoryUsed(memoryUsed);
+ }
+
+ @Test
+ public void testGetVmIdentifier() throws Exception {
+ MemoryUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVmIdentifier();
+ }
+
+ @Test
+ public void testSetVmIdentifier() throws Exception {
+ MemoryUsageArray testSubject;
+ String vmIdentifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVmIdentifier(vmIdentifier);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ MemoryUsageArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ MemoryUsageArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ MemoryUsageArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ MemoryUsageArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFieldsTest.java new file mode 100644 index 0000000..ddceeba --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/MobileFlowFieldsTest.java @@ -0,0 +1,772 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class MobileFlowFieldsTest {
+
+ private MobileFlowFields createTestSubject() {
+ return new MobileFlowFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ MobileFlowFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ MobileFlowFields testSubject;
+ List<AlarmAdditionalInformation> additionalFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetApplicationType() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getApplicationType();
+ }
+
+ @Test
+ public void testSetApplicationType() throws Exception {
+ MobileFlowFields testSubject;
+ String applicationType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setApplicationType(applicationType);
+ }
+
+ @Test
+ public void testGetAppProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAppProtocolType();
+ }
+
+ @Test
+ public void testSetAppProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String appProtocolType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAppProtocolType(appProtocolType);
+ }
+
+ @Test
+ public void testGetAppProtocolVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAppProtocolVersion();
+ }
+
+ @Test
+ public void testSetAppProtocolVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String appProtocolVersion = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAppProtocolVersion(appProtocolVersion);
+ }
+
+ @Test
+ public void testGetCid() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCid();
+ }
+
+ @Test
+ public void testSetCid() throws Exception {
+ MobileFlowFields testSubject;
+ String cid = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCid(cid);
+ }
+
+ @Test
+ public void testGetConnectionType() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getConnectionType();
+ }
+
+ @Test
+ public void testSetConnectionType() throws Exception {
+ MobileFlowFields testSubject;
+ String connectionType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setConnectionType(connectionType);
+ }
+
+ @Test
+ public void testGetEcgi() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEcgi();
+ }
+
+ @Test
+ public void testSetEcgi() throws Exception {
+ MobileFlowFields testSubject;
+ String ecgi = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEcgi(ecgi);
+ }
+
+ @Test
+ public void testGetFlowDirection() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getFlowDirection();
+ }
+
+ @Test
+ public void testSetFlowDirection() throws Exception {
+ MobileFlowFields testSubject;
+ String flowDirection = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setFlowDirection(flowDirection);
+ }
+
+ @Test
+ public void testGetGtpPerFlowMetrics() throws Exception {
+ MobileFlowFields testSubject;
+ GtpPerFlowMetrics result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGtpPerFlowMetrics();
+ }
+
+ @Test
+ public void testSetGtpPerFlowMetrics() throws Exception {
+ MobileFlowFields testSubject;
+ GtpPerFlowMetrics gtpPerFlowMetrics = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGtpPerFlowMetrics(gtpPerFlowMetrics);
+ }
+
+ @Test
+ public void testGetGtpProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGtpProtocolType();
+ }
+
+ @Test
+ public void testSetGtpProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String gtpProtocolType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGtpProtocolType(gtpProtocolType);
+ }
+
+ @Test
+ public void testGetGtpVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getGtpVersion();
+ }
+
+ @Test
+ public void testSetGtpVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String gtpVersion = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setGtpVersion(gtpVersion);
+ }
+
+ @Test
+ public void testGetHttpHeader() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHttpHeader();
+ }
+
+ @Test
+ public void testSetHttpHeader() throws Exception {
+ MobileFlowFields testSubject;
+ String httpHeader = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHttpHeader(httpHeader);
+ }
+
+ @Test
+ public void testGetImei() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getImei();
+ }
+
+ @Test
+ public void testSetImei() throws Exception {
+ MobileFlowFields testSubject;
+ String imei = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setImei(imei);
+ }
+
+ @Test
+ public void testGetImsi() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getImsi();
+ }
+
+ @Test
+ public void testSetImsi() throws Exception {
+ MobileFlowFields testSubject;
+ String imsi = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setImsi(imsi);
+ }
+
+ @Test
+ public void testGetIpProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIpProtocolType();
+ }
+
+ @Test
+ public void testSetIpProtocolType() throws Exception {
+ MobileFlowFields testSubject;
+ String ipProtocolType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIpProtocolType(ipProtocolType);
+ }
+
+ @Test
+ public void testGetIpVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getIpVersion();
+ }
+
+ @Test
+ public void testSetIpVersion() throws Exception {
+ MobileFlowFields testSubject;
+ String ipVersion = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setIpVersion(ipVersion);
+ }
+
+ @Test
+ public void testGetLac() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLac();
+ }
+
+ @Test
+ public void testSetLac() throws Exception {
+ MobileFlowFields testSubject;
+ String lac = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLac(lac);
+ }
+
+ @Test
+ public void testGetMcc() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMcc();
+ }
+
+ @Test
+ public void testSetMcc() throws Exception {
+ MobileFlowFields testSubject;
+ String mcc = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMcc(mcc);
+ }
+
+ @Test
+ public void testGetMnc() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMnc();
+ }
+
+ @Test
+ public void testSetMnc() throws Exception {
+ MobileFlowFields testSubject;
+ String mnc = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMnc(mnc);
+ }
+
+ @Test
+ public void testGetMobileFlowFieldsVersion() throws Exception {
+ MobileFlowFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMobileFlowFieldsVersion();
+ }
+
+ @Test
+ public void testSetMobileFlowFieldsVersion() throws Exception {
+ MobileFlowFields testSubject;
+ Double mobileFlowFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMobileFlowFieldsVersion(mobileFlowFieldsVersion);
+ }
+
+ @Test
+ public void testGetMsisdn() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMsisdn();
+ }
+
+ @Test
+ public void testSetMsisdn() throws Exception {
+ MobileFlowFields testSubject;
+ String msisdn = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMsisdn(msisdn);
+ }
+
+ @Test
+ public void testGetOtherEndpointIpAddress() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOtherEndpointIpAddress();
+ }
+
+ @Test
+ public void testSetOtherEndpointIpAddress() throws Exception {
+ MobileFlowFields testSubject;
+ String otherEndpointIpAddress = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOtherEndpointIpAddress(otherEndpointIpAddress);
+ }
+
+ @Test
+ public void testGetOtherEndpointPort() throws Exception {
+ MobileFlowFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOtherEndpointPort();
+ }
+
+ @Test
+ public void testSetOtherEndpointPort() throws Exception {
+ MobileFlowFields testSubject;
+ Integer otherEndpointPort = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOtherEndpointPort(otherEndpointPort);
+ }
+
+ @Test
+ public void testGetOtherFunctionalRole() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOtherFunctionalRole();
+ }
+
+ @Test
+ public void testSetOtherFunctionalRole() throws Exception {
+ MobileFlowFields testSubject;
+ String otherFunctionalRole = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOtherFunctionalRole(otherFunctionalRole);
+ }
+
+ @Test
+ public void testGetRac() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRac();
+ }
+
+ @Test
+ public void testSetRac() throws Exception {
+ MobileFlowFields testSubject;
+ String rac = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRac(rac);
+ }
+
+ @Test
+ public void testGetRadioAccessTechnology() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRadioAccessTechnology();
+ }
+
+ @Test
+ public void testSetRadioAccessTechnology() throws Exception {
+ MobileFlowFields testSubject;
+ String radioAccessTechnology = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRadioAccessTechnology(radioAccessTechnology);
+ }
+
+ @Test
+ public void testGetReportingEndpointIpAddr() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReportingEndpointIpAddr();
+ }
+
+ @Test
+ public void testSetReportingEndpointIpAddr() throws Exception {
+ MobileFlowFields testSubject;
+ String reportingEndpointIpAddr = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReportingEndpointIpAddr(reportingEndpointIpAddr);
+ }
+
+ @Test
+ public void testGetReportingEndpointPort() throws Exception {
+ MobileFlowFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReportingEndpointPort();
+ }
+
+ @Test
+ public void testSetReportingEndpointPort() throws Exception {
+ MobileFlowFields testSubject;
+ Integer reportingEndpointPort = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReportingEndpointPort(reportingEndpointPort);
+ }
+
+ @Test
+ public void testGetSac() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSac();
+ }
+
+ @Test
+ public void testSetSac() throws Exception {
+ MobileFlowFields testSubject;
+ String sac = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSac(sac);
+ }
+
+ @Test
+ public void testGetSamplingAlgorithm() throws Exception {
+ MobileFlowFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSamplingAlgorithm();
+ }
+
+ @Test
+ public void testSetSamplingAlgorithm() throws Exception {
+ MobileFlowFields testSubject;
+ Integer samplingAlgorithm = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSamplingAlgorithm(samplingAlgorithm);
+ }
+
+ @Test
+ public void testGetTac() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTac();
+ }
+
+ @Test
+ public void testSetTac() throws Exception {
+ MobileFlowFields testSubject;
+ String tac = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTac(tac);
+ }
+
+ @Test
+ public void testGetTunnelId() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTunnelId();
+ }
+
+ @Test
+ public void testSetTunnelId() throws Exception {
+ MobileFlowFields testSubject;
+ String tunnelId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTunnelId(tunnelId);
+ }
+
+ @Test
+ public void testGetVlanId() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVlanId();
+ }
+
+ @Test
+ public void testSetVlanId() throws Exception {
+ MobileFlowFields testSubject;
+ String vlanId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVlanId(vlanId);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ MobileFlowFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ MobileFlowFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ MobileFlowFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ MobileFlowFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstanceTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstanceTest.java new file mode 100644 index 0000000..777d96b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectInstanceTest.java @@ -0,0 +1,153 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ObjectInstanceTest {
+
+ private ObjectInstance createTestSubject() {
+ return new ObjectInstance();
+ }
+
+ @Test
+ public void testSetObjectInstance() throws Exception {
+ ObjectInstance testSubject;
+ ObjectInstance objectInstance = null;
+
+
+ // default test 1
+ testSubject = createTestSubject();
+ testSubject.setObjectInstance(objectInstance);
+ }
+
+ @Test
+ public void testGetObjectInstance() throws Exception {
+ ObjectInstance testSubject;
+ ObjectInstance result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectInstance();
+ }
+
+ @Test
+ public void testSetObjectInstance_1() throws Exception {
+ ObjectInstance testSubject;
+ ObjectInstance objectInstance = null;
+
+
+ // default test 1
+ testSubject = createTestSubject();
+ testSubject.setObjectInstance(objectInstance);
+ }
+
+ @Test
+ public void testGetObjectInstanceEpochMicrosec() throws Exception {
+ ObjectInstance testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectInstanceEpochMicrosec();
+ }
+
+ @Test
+ public void testSetObjectInstanceEpochMicrosec() throws Exception {
+ ObjectInstance testSubject;
+ Double objectInstanceEpochMicrosec = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectInstanceEpochMicrosec(objectInstanceEpochMicrosec);
+ }
+
+ @Test
+ public void testGetObjectKeys() throws Exception {
+ ObjectInstance testSubject;
+ List<ObjectKey> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getObjectKeys();
+ }
+
+ @Test
+ public void testSetObjectKeys() throws Exception {
+ ObjectInstance testSubject;
+ List<ObjectKey> objectKeys = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setObjectKeys(objectKeys);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ ObjectInstance testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ ObjectInstance testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ ObjectInstance testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ ObjectInstance testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKeyTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKeyTest.java new file mode 100644 index 0000000..71d5dc3 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ObjectKeyTest.java @@ -0,0 +1,141 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ObjectKeyTest {
+
+ private ObjectKey createTestSubject() {
+ return new ObjectKey();
+ }
+
+ @Test
+ public void testGetKeyName() throws Exception {
+ ObjectKey testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyName();
+ }
+
+ @Test
+ public void testSetKeyName() throws Exception {
+ ObjectKey testSubject;
+ String keyName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setKeyName(keyName);
+ }
+
+ @Test
+ public void testGetKeyOrder() throws Exception {
+ ObjectKey testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyOrder();
+ }
+
+ @Test
+ public void testSetKeyOrder() throws Exception {
+ ObjectKey testSubject;
+ Integer keyOrder = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setKeyOrder(keyOrder);
+ }
+
+ @Test
+ public void testGetKeyValue() throws Exception {
+ ObjectKey testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getKeyValue();
+ }
+
+ @Test
+ public void testSetKeyValue() throws Exception {
+ ObjectKey testSubject;
+ String keyValue = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setKeyValue(keyValue);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ ObjectKey testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ ObjectKey testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ ObjectKey testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ ObjectKey testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/OtherFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/OtherFieldsTest.java new file mode 100644 index 0000000..e6f883c --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/OtherFieldsTest.java @@ -0,0 +1,165 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class OtherFieldsTest {
+
+ private OtherFields createTestSubject() {
+ return new OtherFields();
+ }
+
+
+ @Test
+ public void testGetHashOfNameValuePairArrays() throws Exception {
+ OtherFields testSubject;
+ List<AdditionalMeasurement> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getHashOfNameValuePairArrays();
+ }
+
+
+ @Test
+ public void testSetHashOfNameValuePairArrays() throws Exception {
+ OtherFields testSubject;
+ List<AdditionalMeasurement> hashOfNameValuePairArrays = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setHashOfNameValuePairArrays(hashOfNameValuePairArrays);
+ }
+
+ @Test
+ public void testGetJsonObjects() throws Exception {
+ OtherFields testSubject;
+ List<AdditionalObject> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getJsonObjects();
+ }
+
+ @Test
+ public void testSetJsonObjects() throws Exception {
+ OtherFields testSubject;
+ List<AdditionalObject> jsonObjects = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setJsonObjects(jsonObjects);
+ }
+
+ @Test
+ public void testGetNameValuePairs() throws Exception {
+ OtherFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNameValuePairs();
+ }
+
+ @Test
+ public void testSetNameValuePairs() throws Exception {
+ OtherFields testSubject;
+ List<AlarmAdditionalInformation> nameValuePairs = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNameValuePairs(nameValuePairs);
+ }
+
+ @Test
+ public void testGetOtherFieldsVersion() throws Exception {
+ OtherFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOtherFieldsVersion();
+ }
+
+ @Test
+ public void testSetOtherFieldsVersion() throws Exception {
+ OtherFields testSubject;
+ Double otherFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOtherFieldsVersion(otherFieldsVersion);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ OtherFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ OtherFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ OtherFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ OtherFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFieldsTest.java new file mode 100644 index 0000000..337979a --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SipSignalingFieldsTest.java @@ -0,0 +1,291 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class SipSignalingFieldsTest {
+
+ private SipSignalingFields createTestSubject() {
+ return new SipSignalingFields();
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ SipSignalingFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ SipSignalingFields testSubject;
+ List<AlarmAdditionalInformation> additionalInformation = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+
+ @Test
+ public void testGetCompressedSip() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCompressedSip();
+ }
+
+ @Test
+ public void testSetCompressedSip() throws Exception {
+ SipSignalingFields testSubject;
+ String compressedSip = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCompressedSip(compressedSip);
+ }
+
+ @Test
+ public void testGetCorrelator() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCorrelator();
+ }
+
+ @Test
+ public void testSetCorrelator() throws Exception {
+ SipSignalingFields testSubject;
+ String correlator = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCorrelator(correlator);
+ }
+
+ @Test
+ public void testGetLocalIpAddress() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalIpAddress();
+ }
+
+ @Test
+ public void testSetLocalIpAddress() throws Exception {
+ SipSignalingFields testSubject;
+ String localIpAddress = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalIpAddress(localIpAddress);
+ }
+
+ @Test
+ public void testGetLocalPort() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getLocalPort();
+ }
+
+ @Test
+ public void testSetLocalPort() throws Exception {
+ SipSignalingFields testSubject;
+ String localPort = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setLocalPort(localPort);
+ }
+
+ @Test
+ public void testGetRemoteIpAddress() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRemoteIpAddress();
+ }
+
+ @Test
+ public void testSetRemoteIpAddress() throws Exception {
+ SipSignalingFields testSubject;
+ String remoteIpAddress = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRemoteIpAddress(remoteIpAddress);
+ }
+
+ @Test
+ public void testGetRemotePort() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getRemotePort();
+ }
+
+ @Test
+ public void testSetRemotePort() throws Exception {
+ SipSignalingFields testSubject;
+ String remotePort = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setRemotePort(remotePort);
+ }
+
+ @Test
+ public void testGetSipSignalingFieldsVersion() throws Exception {
+ SipSignalingFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSipSignalingFieldsVersion();
+ }
+
+ @Test
+ public void testSetSipSignalingFieldsVersion() throws Exception {
+ SipSignalingFields testSubject;
+ Double sipSignalingFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSipSignalingFieldsVersion(sipSignalingFieldsVersion);
+ }
+
+ @Test
+ public void testGetSummarySip() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSummarySip();
+ }
+
+ @Test
+ public void testSetSummarySip() throws Exception {
+ SipSignalingFields testSubject;
+ String summarySip = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSummarySip(summarySip);
+ }
+
+ @Test
+ public void testGetVendorVnfNameFields() throws Exception {
+ SipSignalingFields testSubject;
+ VendorVnfNameFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorVnfNameFields();
+ }
+
+ @Test
+ public void testSetVendorVnfNameFields() throws Exception {
+ SipSignalingFields testSubject;
+ VendorVnfNameFields vendorVnfNameFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorVnfNameFields(vendorVnfNameFields);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ SipSignalingFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ SipSignalingFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ SipSignalingFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ SipSignalingFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFieldsTest.java new file mode 100644 index 0000000..a4a0a5d --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/StateChangeFieldsTest.java @@ -0,0 +1,184 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class StateChangeFieldsTest {
+
+ private StateChangeFields createTestSubject() {
+ return new StateChangeFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ StateChangeFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ StateChangeFields testSubject;
+ List<AlarmAdditionalInformation> additionalFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetNewState() throws Exception {
+ StateChangeFields testSubject;
+ StateChangeFields.NewState result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNewState();
+ }
+
+ @Test
+ public void testSetNewState() throws Exception {
+ StateChangeFields testSubject;
+ StateChangeFields.NewState newState = StateChangeFields.NewState.IN_SERVICE;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNewState(newState);
+ }
+
+ @Test
+ public void testGetOldState() throws Exception {
+ StateChangeFields testSubject;
+ StateChangeFields.OldState result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getOldState();
+ }
+
+ @Test
+ public void testSetOldState() throws Exception {
+ StateChangeFields testSubject;
+ StateChangeFields.OldState oldState = StateChangeFields.OldState.IN_SERVICE;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setOldState(oldState);
+ }
+
+ @Test
+ public void testGetStateChangeFieldsVersion() throws Exception {
+ StateChangeFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStateChangeFieldsVersion();
+ }
+
+ @Test
+ public void testSetStateChangeFieldsVersion() throws Exception {
+ StateChangeFields testSubject;
+ Double stateChangeFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStateChangeFieldsVersion(stateChangeFieldsVersion);
+ }
+
+ @Test
+ public void testGetStateInterface() throws Exception {
+ StateChangeFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getStateInterface();
+ }
+
+ @Test
+ public void testSetStateInterface() throws Exception {
+ StateChangeFields testSubject;
+ String stateInterface = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setStateInterface(stateInterface);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ StateChangeFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ StateChangeFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ StateChangeFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ StateChangeFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFieldsTest.java new file mode 100644 index 0000000..a0d227b --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/SyslogFieldsTest.java @@ -0,0 +1,372 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class SyslogFieldsTest {
+
+ private SyslogFields createTestSubject() {
+ return new SyslogFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ SyslogFields testSubject;
+ String additionalFields = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetEventSourceHost() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventSourceHost();
+ }
+
+ @Test
+ public void testSetEventSourceHost() throws Exception {
+ SyslogFields testSubject;
+ String eventSourceHost = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventSourceHost(eventSourceHost);
+ }
+
+ @Test
+ public void testGetEventSourceType() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventSourceType();
+ }
+
+ @Test
+ public void testSetEventSourceType() throws Exception {
+ SyslogFields testSubject;
+ String eventSourceType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventSourceType(eventSourceType);
+ }
+
+ @Test
+ public void testGetSyslogFacility() throws Exception {
+ SyslogFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogFacility();
+ }
+
+ @Test
+ public void testSetSyslogFacility() throws Exception {
+ SyslogFields testSubject;
+ Integer syslogFacility = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogFacility(syslogFacility);
+ }
+
+ @Test
+ public void testGetSyslogFieldsVersion() throws Exception {
+ SyslogFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogFieldsVersion();
+ }
+
+ @Test
+ public void testSetSyslogFieldsVersion() throws Exception {
+ SyslogFields testSubject;
+ Double syslogFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogFieldsVersion(syslogFieldsVersion);
+ }
+
+ @Test
+ public void testGetSyslogMsg() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogMsg();
+ }
+
+ @Test
+ public void testSetSyslogMsg() throws Exception {
+ SyslogFields testSubject;
+ String syslogMsg = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogMsg(syslogMsg);
+ }
+
+ @Test
+ public void testGetSyslogPri() throws Exception {
+ SyslogFields testSubject;
+ Integer result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogPri();
+ }
+
+ @Test
+ public void testSetSyslogPri() throws Exception {
+ SyslogFields testSubject;
+ Integer syslogPri = 0;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogPri(syslogPri);
+ }
+
+ @Test
+ public void testGetSyslogProc() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogProc();
+ }
+
+ @Test
+ public void testSetSyslogProc() throws Exception {
+ SyslogFields testSubject;
+ String syslogProc = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogProc(syslogProc);
+ }
+
+ @Test
+ public void testGetSyslogProcId() throws Exception {
+ SyslogFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogProcId();
+ }
+
+ @Test
+ public void testSetSyslogProcId() throws Exception {
+ SyslogFields testSubject;
+ Double syslogProcId = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogProcId(syslogProcId);
+ }
+
+ @Test
+ public void testGetSyslogSData() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogSData();
+ }
+
+ @Test
+ public void testSetSyslogSData() throws Exception {
+ SyslogFields testSubject;
+ String syslogSData = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogSData(syslogSData);
+ }
+
+ @Test
+ public void testGetSyslogSdId() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogSdId();
+ }
+
+ @Test
+ public void testSetSyslogSdId() throws Exception {
+ SyslogFields testSubject;
+ String syslogSdId = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogSdId(syslogSdId);
+ }
+
+ @Test
+ public void testGetSyslogSev() throws Exception {
+ SyslogFields testSubject;
+ SyslogFields.SyslogSev result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogSev();
+ }
+
+ @Test
+ public void testSetSyslogSev() throws Exception {
+ SyslogFields testSubject;
+ SyslogFields.SyslogSev syslogSev = SyslogFields.SyslogSev.ALERT;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogSev(syslogSev);
+ }
+
+ @Test
+ public void testGetSyslogTag() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogTag();
+ }
+
+ @Test
+ public void testSetSyslogTag() throws Exception {
+ SyslogFields testSubject;
+ String syslogTag = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogTag(syslogTag);
+ }
+
+ @Test
+ public void testGetSyslogVer() throws Exception {
+ SyslogFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getSyslogVer();
+ }
+
+ @Test
+ public void testSetSyslogVer() throws Exception {
+ SyslogFields testSubject;
+ Double syslogVer = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setSyslogVer(syslogVer);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ SyslogFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ SyslogFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ SyslogFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ SyslogFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFieldsTest.java new file mode 100644 index 0000000..314de6f --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/ThresholdCrossingAlertFieldsTest.java @@ -0,0 +1,419 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class ThresholdCrossingAlertFieldsTest {
+
+ private ThresholdCrossingAlertFields createTestSubject() {
+ return new ThresholdCrossingAlertFields();
+ }
+
+ @Test
+ public void testGetAdditionalFields() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalFields();
+ }
+
+ @Test
+ public void testSetAdditionalFields() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<AlarmAdditionalInformation> additionalFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalFields(additionalFields);
+ }
+
+ @Test
+ public void testGetAdditionalParameters() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<AdditionalParameter> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalParameters();
+ }
+
+ @Test
+ public void testSetAdditionalParameters() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<AdditionalParameter> additionalParameters = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalParameters(additionalParameters);
+ }
+
+ @Test
+ public void testGetAlertAction() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.AlertAction result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlertAction();
+ }
+
+ @Test
+ public void testSetAlertAction() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.AlertAction alertAction = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlertAction(alertAction);
+ }
+
+ @Test
+ public void testGetAlertDescription() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlertDescription();
+ }
+
+ @Test
+ public void testSetAlertDescription() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String alertDescription = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlertDescription(alertDescription);
+ }
+
+ @Test
+ public void testGetAlertType() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.AlertType result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlertType();
+ }
+
+ @Test
+ public void testSetAlertType() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.AlertType alertType = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlertType(alertType);
+ }
+
+ @Test
+ public void testGetAlertValue() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAlertValue();
+ }
+
+ @Test
+ public void testSetAlertValue() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String alertValue = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAlertValue(alertValue);
+ }
+
+ @Test
+ public void testGetAssociatedAlertIdList() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<String> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAssociatedAlertIdList();
+ }
+
+ @Test
+ public void testSetAssociatedAlertIdList() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ List<String> associatedAlertIdList = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAssociatedAlertIdList(associatedAlertIdList);
+ }
+
+ @Test
+ public void testGetCollectionTimestamp() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCollectionTimestamp();
+ }
+
+ @Test
+ public void testSetCollectionTimestamp() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String collectionTimestamp = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCollectionTimestamp(collectionTimestamp);
+ }
+
+ @Test
+ public void testGetDataCollector() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getDataCollector();
+ }
+
+ @Test
+ public void testSetDataCollector() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String dataCollector = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setDataCollector(dataCollector);
+ }
+
+ @Test
+ public void testGetElementType() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getElementType();
+ }
+
+ @Test
+ public void testSetElementType() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String elementType = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setElementType(elementType);
+ }
+
+
+
+ @Test
+ public void testGetEventSeverity() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.EventSeverity result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventSeverity();
+ }
+
+
+
+ @Test
+ public void testSetEventSeverity() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ ThresholdCrossingAlertFields.EventSeverity eventSeverity = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventSeverity(eventSeverity);
+ }
+
+ @Test
+ public void testGetEventStartTimestamp() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEventStartTimestamp();
+ }
+
+ @Test
+ public void testSetEventStartTimestamp() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String eventStartTimestamp = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEventStartTimestamp(eventStartTimestamp);
+ }
+
+ @Test
+ public void testGetInterfaceName() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getInterfaceName();
+ }
+
+ @Test
+ public void testSetInterfaceName() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String interfaceName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setInterfaceName(interfaceName);
+ }
+
+ @Test
+ public void testGetNetworkService() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getNetworkService();
+ }
+
+ @Test
+ public void testSetNetworkService() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String networkService = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setNetworkService(networkService);
+ }
+
+ @Test
+ public void testGetPossibleRootCause() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPossibleRootCause();
+ }
+
+ @Test
+ public void testSetPossibleRootCause() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String possibleRootCause = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPossibleRootCause(possibleRootCause);
+ }
+
+ @Test
+ public void testGetThresholdCrossingFieldsVersion() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getThresholdCrossingFieldsVersion();
+ }
+
+ @Test
+ public void testSetThresholdCrossingFieldsVersion() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ Double thresholdCrossingFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setThresholdCrossingFieldsVersion(thresholdCrossingFieldsVersion);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ ThresholdCrossingAlertFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArrayTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArrayTest.java new file mode 100644 index 0000000..53e1615 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VNicPerformanceArrayTest.java @@ -0,0 +1,715 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class VNicPerformanceArrayTest {
+
+ private VNicPerformanceArray createTestSubject() {
+ return new VNicPerformanceArray();
+ }
+
+ @Test
+ public void testGetReceivedBroadcastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedBroadcastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedBroadcastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedBroadcastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedBroadcastPacketsAccumulated(receivedBroadcastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedBroadcastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedBroadcastPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedBroadcastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedBroadcastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedBroadcastPacketsDelta(receivedBroadcastPacketsDelta);
+ }
+
+ @Test
+ public void testGetReceivedDiscardedPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedDiscardedPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedDiscardedPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedDiscardedPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedDiscardedPacketsAccumulated(receivedDiscardedPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedDiscardedPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedDiscardedPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedDiscardedPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedDiscardedPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedDiscardedPacketsDelta(receivedDiscardedPacketsDelta);
+ }
+
+ @Test
+ public void testGetReceivedErrorPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedErrorPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedErrorPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedErrorPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedErrorPacketsAccumulated(receivedErrorPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedErrorPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedErrorPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedErrorPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedErrorPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedErrorPacketsDelta(receivedErrorPacketsDelta);
+ }
+
+ @Test
+ public void testGetReceivedMulticastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedMulticastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedMulticastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedMulticastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedMulticastPacketsAccumulated(receivedMulticastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedMulticastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedMulticastPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedMulticastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedMulticastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedMulticastPacketsDelta(receivedMulticastPacketsDelta);
+ }
+
+ @Test
+ public void testGetReceivedOctetsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedOctetsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedOctetsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedOctetsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedOctetsAccumulated(receivedOctetsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedOctetsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedOctetsDelta();
+ }
+
+ @Test
+ public void testSetReceivedOctetsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedOctetsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedOctetsDelta(receivedOctetsDelta);
+ }
+
+ @Test
+ public void testGetReceivedTotalPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedTotalPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedTotalPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedTotalPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedTotalPacketsAccumulated(receivedTotalPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedTotalPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedTotalPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedTotalPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedTotalPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedTotalPacketsDelta(receivedTotalPacketsDelta);
+ }
+
+ @Test
+ public void testGetReceivedUnicastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedUnicastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetReceivedUnicastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedUnicastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedUnicastPacketsAccumulated(receivedUnicastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetReceivedUnicastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getReceivedUnicastPacketsDelta();
+ }
+
+ @Test
+ public void testSetReceivedUnicastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double receivedUnicastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setReceivedUnicastPacketsDelta(receivedUnicastPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedBroadcastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedBroadcastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedBroadcastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedBroadcastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject
+ .setTransmittedBroadcastPacketsAccumulated(transmittedBroadcastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedBroadcastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedBroadcastPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedBroadcastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedBroadcastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedBroadcastPacketsDelta(transmittedBroadcastPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedDiscardedPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedDiscardedPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedDiscardedPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedDiscardedPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject
+ .setTransmittedDiscardedPacketsAccumulated(transmittedDiscardedPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedDiscardedPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedDiscardedPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedDiscardedPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedDiscardedPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedDiscardedPacketsDelta(transmittedDiscardedPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedErrorPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedErrorPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedErrorPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedErrorPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedErrorPacketsAccumulated(transmittedErrorPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedErrorPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedErrorPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedErrorPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedErrorPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedErrorPacketsDelta(transmittedErrorPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedMulticastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedMulticastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedMulticastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedMulticastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject
+ .setTransmittedMulticastPacketsAccumulated(transmittedMulticastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedMulticastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedMulticastPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedMulticastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedMulticastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedMulticastPacketsDelta(transmittedMulticastPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedOctetsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedOctetsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedOctetsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedOctetsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedOctetsAccumulated(transmittedOctetsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedOctetsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedOctetsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedOctetsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedOctetsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedOctetsDelta(transmittedOctetsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedTotalPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedTotalPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedTotalPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedTotalPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedTotalPacketsAccumulated(transmittedTotalPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedTotalPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedTotalPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedTotalPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedTotalPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedTotalPacketsDelta(transmittedTotalPacketsDelta);
+ }
+
+ @Test
+ public void testGetTransmittedUnicastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedUnicastPacketsAccumulated();
+ }
+
+ @Test
+ public void testSetTransmittedUnicastPacketsAccumulated() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedUnicastPacketsAccumulated = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedUnicastPacketsAccumulated(transmittedUnicastPacketsAccumulated);
+ }
+
+ @Test
+ public void testGetTransmittedUnicastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getTransmittedUnicastPacketsDelta();
+ }
+
+ @Test
+ public void testSetTransmittedUnicastPacketsDelta() throws Exception {
+ VNicPerformanceArray testSubject;
+ Double transmittedUnicastPacketsDelta = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setTransmittedUnicastPacketsDelta(transmittedUnicastPacketsDelta);
+ }
+
+
+
+ @Test
+ public void testGetValuesAreSuspect() throws Exception {
+ VNicPerformanceArray testSubject;
+ VNicPerformanceArray.ValuesAreSuspect result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getValuesAreSuspect();
+ }
+
+
+
+ @Test
+ public void testSetValuesAreSuspect() throws Exception {
+ VNicPerformanceArray testSubject;
+ VNicPerformanceArray.ValuesAreSuspect valuesAreSuspect = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setValuesAreSuspect(valuesAreSuspect);
+ }
+
+ @Test
+ public void testGetVNicIdentifier() throws Exception {
+ VNicPerformanceArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVNicIdentifier();
+ }
+
+ @Test
+ public void testSetVNicIdentifier() throws Exception {
+ VNicPerformanceArray testSubject;
+ String identifier = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVNicIdentifier(identifier);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ VNicPerformanceArray testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ VNicPerformanceArray testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ VNicPerformanceArray testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ VNicPerformanceArray testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFieldsTest.java new file mode 100644 index 0000000..c461f3e --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VendorVnfNameFieldsTest.java @@ -0,0 +1,141 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class VendorVnfNameFieldsTest {
+
+ private VendorVnfNameFields createTestSubject() {
+ return new VendorVnfNameFields();
+ }
+
+ @Test
+ public void testGetVendorName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorName();
+ }
+
+ @Test
+ public void testSetVendorName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String vendorName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorName(vendorName);
+ }
+
+ @Test
+ public void testGetVfModuleName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVfModuleName();
+ }
+
+ @Test
+ public void testSetVfModuleName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String vfModuleName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVfModuleName(vfModuleName);
+ }
+
+ @Test
+ public void testGetVnfName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVnfName();
+ }
+
+ @Test
+ public void testSetVnfName() throws Exception {
+ VendorVnfNameFields testSubject;
+ String vnfName = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVnfName(vnfName);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ VendorVnfNameFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ VendorVnfNameFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ VendorVnfNameFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ VendorVnfNameFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VesEventTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VesEventTest.java new file mode 100644 index 0000000..7fd7680 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VesEventTest.java @@ -0,0 +1,99 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class VesEventTest {
+
+ private VesEvent createTestSubject() {
+ return new VesEvent();
+ }
+
+ @Test
+ public void testGetEvent() throws Exception {
+ VesEvent testSubject;
+ Event result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEvent();
+ }
+
+ @Test
+ public void testSetEvent() throws Exception {
+ VesEvent testSubject;
+ Event event = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEvent(event);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ VesEvent testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ VesEvent testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ VesEvent testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ VesEvent testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFieldsTest.java b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFieldsTest.java new file mode 100644 index 0000000..b6da023 --- /dev/null +++ b/UniversalVesAdapter/src/test/java/org/onap/dcaegen2/ves/domain/ves54/VoiceQualityFieldsTest.java @@ -0,0 +1,270 @@ +/*-
+ * ============LICENSE_START=======================================================
+ * ONAP : DCAE
+ * ================================================================================
+ * Copyright 2019 TechMahindra
+ * ================================================================================
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ * ============LICENSE_END=========================================================
+ */
+
+package org.onap.dcaegen2.ves.domain.ves54;
+
+
+import java.util.List;
+import java.util.Map;
+
+import org.junit.Test;
+
+
+public class VoiceQualityFieldsTest {
+
+ private VoiceQualityFields createTestSubject() {
+ return new VoiceQualityFields();
+ }
+
+
+ @Test
+ public void testGetAdditionalInformation() throws Exception {
+ VoiceQualityFields testSubject;
+ List<AlarmAdditionalInformation> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalInformation();
+ }
+
+
+ @Test
+ public void testSetAdditionalInformation() throws Exception {
+ VoiceQualityFields testSubject;
+ List<AlarmAdditionalInformation> additionalInformation = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalInformation(additionalInformation);
+ }
+
+ @Test
+ public void testGetCalleeSideCodec() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCalleeSideCodec();
+ }
+
+ @Test
+ public void testSetCalleeSideCodec() throws Exception {
+ VoiceQualityFields testSubject;
+ String calleeSideCodec = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCalleeSideCodec(calleeSideCodec);
+ }
+
+ @Test
+ public void testGetCallerSideCodec() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCallerSideCodec();
+ }
+
+ @Test
+ public void testSetCallerSideCodec() throws Exception {
+ VoiceQualityFields testSubject;
+ String callerSideCodec = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCallerSideCodec(callerSideCodec);
+ }
+
+ @Test
+ public void testGetCorrelator() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getCorrelator();
+ }
+
+ @Test
+ public void testSetCorrelator() throws Exception {
+ VoiceQualityFields testSubject;
+ String correlator = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setCorrelator(correlator);
+ }
+
+ @Test
+ public void testGetEndOfCallVqmSummaries() throws Exception {
+ VoiceQualityFields testSubject;
+ EndOfCallVqmSummaries result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getEndOfCallVqmSummaries();
+ }
+
+ @Test
+ public void testSetEndOfCallVqmSummaries() throws Exception {
+ VoiceQualityFields testSubject;
+ EndOfCallVqmSummaries endOfCallVqmSummaries = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setEndOfCallVqmSummaries(endOfCallVqmSummaries);
+ }
+
+ @Test
+ public void testGetPhoneNumber() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getPhoneNumber();
+ }
+
+ @Test
+ public void testSetPhoneNumber() throws Exception {
+ VoiceQualityFields testSubject;
+ String phoneNumber = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setPhoneNumber(phoneNumber);
+ }
+
+ @Test
+ public void testGetMidCallRtcp() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getMidCallRtcp();
+ }
+
+ @Test
+ public void testSetMidCallRtcp() throws Exception {
+ VoiceQualityFields testSubject;
+ String midCallRtcp = "";
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setMidCallRtcp(midCallRtcp);
+ }
+
+ @Test
+ public void testGetVendorVnfNameFields() throws Exception {
+ VoiceQualityFields testSubject;
+ VendorVnfNameFields result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVendorVnfNameFields();
+ }
+
+ @Test
+ public void testSetVendorVnfNameFields() throws Exception {
+ VoiceQualityFields testSubject;
+ VendorVnfNameFields vendorVnfNameFields = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVendorVnfNameFields(vendorVnfNameFields);
+ }
+
+ @Test
+ public void testGetVoiceQualityFieldsVersion() throws Exception {
+ VoiceQualityFields testSubject;
+ Double result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getVoiceQualityFieldsVersion();
+ }
+
+ @Test
+ public void testSetVoiceQualityFieldsVersion() throws Exception {
+ VoiceQualityFields testSubject;
+ Double voiceQualityFieldsVersion = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setVoiceQualityFieldsVersion(voiceQualityFieldsVersion);
+ }
+
+ @Test
+ public void testToString() throws Exception {
+ VoiceQualityFields testSubject;
+ String result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.toString();
+ }
+
+ @Test
+ public void testGetAdditionalProperties() throws Exception {
+ VoiceQualityFields testSubject;
+ Map<String, Object> result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.getAdditionalProperties();
+ }
+
+ @Test
+ public void testSetAdditionalProperty() throws Exception {
+ VoiceQualityFields testSubject;
+ String name = "";
+ Object value = null;
+
+
+ // default test
+ testSubject = createTestSubject();
+ testSubject.setAdditionalProperty(name, value);
+ }
+
+ @Test
+ public void testHashCode() throws Exception {
+ VoiceQualityFields testSubject;
+ int result;
+
+ // default test
+ testSubject = createTestSubject();
+ result = testSubject.hashCode();
+ }
+
+
+}
diff --git a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java index 19fcaa2..6b1a70d 100644 --- a/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java +++ b/UniversalVesAdapter/src/test/java/org/onap/universalvesadapter/utils/SmooksUtilsTest.java @@ -26,7 +26,6 @@ import java.nio.charset.StandardCharsets; import org.junit.Test;
import org.milyn.Smooks;
-import org.onap.dcaegen2.ves.domain.ves70.VesEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.xml.sax.SAXException;
@@ -34,7 +33,7 @@ import org.xml.sax.SAXException; public class SmooksUtilsTest {
- VesEvent vesEvent;
+ Object vesEvent;
private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger");
@Test
|