From 5e76fbd802ca4dcf48dac5c9a8f262470a326ef7 Mon Sep 17 00:00:00 2001 From: Pooja03 Date: Wed, 20 Mar 2019 19:39:58 +0530 Subject: Resolving warning reported in build - VES Mapper Changes made to resolve warnings in the build. Change-Id: I03dee6780941881afc65c4b907ade078febb5e39 Issue-ID: DCAEGEN2-604 Signed-off-by: Pooja03 --- .../ves/domain/ves70/AdditionalMeasurement.java | 115 ++ .../ves/domain/ves70/AdditionalObject.java | 227 +++ .../ves/domain/ves70/AdditionalParameter.java | 191 +++ .../domain/ves70/AlarmAdditionalInformation.java | 79 ++ .../dcaegen2/ves/domain/ves70/CodecUsageArray.java | 118 ++ .../ves/domain/ves70/CommonEventHeader.java | 777 ++++++++++ .../dcaegen2/ves/domain/ves70/CpuUsageArray.java | 511 +++++++ .../dcaegen2/ves/domain/ves70/DiskUsageArray.java | 1496 ++++++++++++++++++++ .../ves/domain/ves70/EndOfCallVqmSummaries.java | 866 +++++++++++ .../org/onap/dcaegen2/ves/domain/ves70/Event.java | 404 ++++++ .../dcaegen2/ves/domain/ves70/FaultFields.java | 441 ++++++ .../ves/domain/ves70/FilesystemUsageArray.java | 258 ++++ .../ves/domain/ves70/GtpPerFlowMetrics.java | 1455 +++++++++++++++++++ .../dcaegen2/ves/domain/ves70/HeartbeatFields.java | 189 +++ .../dcaegen2/ves/domain/ves70/HugePagesArray.java | 248 ++++ .../ves/domain/ves70/InternalHeaderFields.java | 79 ++ .../org/onap/dcaegen2/ves/domain/ves70/Ipmi.java | 403 ++++++ .../ves70/IpmiBaseboardTemperatureArray.java | 118 ++ .../ves70/IpmiBaseboardVoltageRegulatorArray.java | 118 ++ .../ves/domain/ves70/IpmiBatteryArray.java | 144 ++ .../dcaegen2/ves/domain/ves70/IpmiFanArray.java | 118 ++ .../IpmiGlobalAggregateTemperatureMarginArray.java | 121 ++ .../dcaegen2/ves/domain/ves70/IpmiHsbpArray.java | 119 ++ .../dcaegen2/ves/domain/ves70/IpmiNicArray.java | 118 ++ .../ves/domain/ves70/IpmiPowerSupplyArray.java | 170 +++ .../ves/domain/ves70/IpmiProcessorArray.java | 172 +++ .../ves/domain/ves70/LatencyDistribution.java | 117 ++ .../onap/dcaegen2/ves/domain/ves70/LoadArray.java | 142 ++ .../domain/ves70/MachineCheckExceptionArray.java | 197 +++ .../ves/domain/ves70/MeasurementFields.java | 737 ++++++++++ .../ves/domain/ves70/MemoryUsageArray.java | 514 +++++++ .../ves/domain/ves70/MobileFlowFields.java | 990 +++++++++++++ .../ves/domain/ves70/NicPerformanceArray.java | 1204 ++++++++++++++++ .../ves/domain/ves70/NotificationFields.java | 350 +++++ .../dcaegen2/ves/domain/ves70/ObjectInstance.java | 169 +++ .../onap/dcaegen2/ves/domain/ves70/ObjectKey.java | 144 ++ .../dcaegen2/ves/domain/ves70/OtherFields.java | 214 +++ .../ves/domain/ves70/PnfRegistrationFields.java | 446 ++++++ .../ves/domain/ves70/ProcessStatsArray.java | 274 ++++ .../ProcessorDimmAggregateThermalMarginArray.java | 121 ++ .../ves/domain/ves70/SipSignalingFields.java | 386 +++++ .../ves/domain/ves70/StateChangeFields.java | 327 +++++ .../dcaegen2/ves/domain/ves70/SyslogFields.java | 578 ++++++++ .../domain/ves70/ThresholdCrossingAlertFields.java | 670 +++++++++ .../ves/domain/ves70/VendorNfNameFields.java | 144 ++ .../onap/dcaegen2/ves/domain/ves70/VesEvent.java | 116 ++ .../ves/domain/ves70/VoiceQualityFields.java | 357 +++++ .../ves/domain/ves7_0/AdditionalMeasurement.java | 120 -- .../ves/domain/ves7_0/AdditionalObject.java | 227 --- .../ves/domain/ves7_0/AdditionalParameter.java | 191 --- .../domain/ves7_0/AlarmAdditionalInformation.java | 79 -- .../ves/domain/ves7_0/CodecUsageArray.java | 118 -- .../ves/domain/ves7_0/CommonEventHeader.java | 777 ---------- .../dcaegen2/ves/domain/ves7_0/CpuUsageArray.java | 511 ------- .../dcaegen2/ves/domain/ves7_0/DiskUsageArray.java | 1496 -------------------- .../ves/domain/ves7_0/EndOfCallVqmSummaries.java | 866 ----------- .../org/onap/dcaegen2/ves/domain/ves7_0/Event.java | 404 ------ .../dcaegen2/ves/domain/ves7_0/FaultFields.java | 441 ------ .../ves/domain/ves7_0/FilesystemUsageArray.java | 258 ---- .../ves/domain/ves7_0/GtpPerFlowMetrics.java | 1455 ------------------- .../ves/domain/ves7_0/HeartbeatFields.java | 189 --- .../dcaegen2/ves/domain/ves7_0/HugePagesArray.java | 248 ---- .../ves/domain/ves7_0/InternalHeaderFields.java | 79 -- .../org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java | 403 ------ .../ves7_0/IpmiBaseboardTemperatureArray.java | 118 -- .../ves7_0/IpmiBaseboardVoltageRegulatorArray.java | 118 -- .../ves/domain/ves7_0/IpmiBatteryArray.java | 144 -- .../dcaegen2/ves/domain/ves7_0/IpmiFanArray.java | 118 -- .../IpmiGlobalAggregateTemperatureMarginArray.java | 121 -- .../dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java | 118 -- .../dcaegen2/ves/domain/ves7_0/IpmiNicArray.java | 118 -- .../ves/domain/ves7_0/IpmiPowerSupplyArray.java | 170 --- .../ves/domain/ves7_0/IpmiProcessorArray.java | 172 --- .../ves/domain/ves7_0/LatencyDistribution.java | 116 -- .../onap/dcaegen2/ves/domain/ves7_0/LoadArray.java | 141 -- .../domain/ves7_0/MachineCheckExceptionArray.java | 196 --- .../ves/domain/ves7_0/MeasurementFields.java | 737 ---------- .../ves/domain/ves7_0/MemoryUsageArray.java | 514 ------- .../ves/domain/ves7_0/MobileFlowFields.java | 990 ------------- .../ves/domain/ves7_0/NicPerformanceArray.java | 1204 ---------------- .../ves/domain/ves7_0/NotificationFields.java | 350 ----- .../dcaegen2/ves/domain/ves7_0/ObjectInstance.java | 169 --- .../onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java | 144 -- .../dcaegen2/ves/domain/ves7_0/OtherFields.java | 214 --- .../ves/domain/ves7_0/PnfRegistrationFields.java | 446 ------ .../ves/domain/ves7_0/ProcessStatsArray.java | 274 ---- .../ProcessorDimmAggregateThermalMarginArray.java | 121 -- .../ves/domain/ves7_0/SipSignalingFields.java | 386 ----- .../ves/domain/ves7_0/StateChangeFields.java | 327 ----- .../dcaegen2/ves/domain/ves7_0/SyslogFields.java | 578 -------- .../ves7_0/ThresholdCrossingAlertFields.java | 670 --------- .../ves/domain/ves7_0/VendorNfNameFields.java | 144 -- .../onap/dcaegen2/ves/domain/ves7_0/VesEvent.java | 116 -- .../ves/domain/ves7_0/VoiceQualityFields.java | 357 ----- .../adapter/UniversalEventAdapter.java | 370 ++--- .../universalvesadapter/utils/SmooksUtils.java | 152 +- 96 files changed, 17513 insertions(+), 17514 deletions(-) create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java create mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java delete mode 100644 UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java (limited to 'UniversalVesAdapter/src/main/java/org/onap') diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java new file mode 100644 index 0000000..318e59c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalMeasurement.java @@ -0,0 +1,115 @@ +/* +* ============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.ves70; + +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyDescription; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * a hashMap which is associated with and described by a name + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({"name", "hashMap"}) +public class AdditionalMeasurement { + + /** + * + * (Required) + * + */ + @JsonProperty("name") + private String name; + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + + /** + * + * (Required) + * + */ + @JsonProperty("name") + public String getName() { + return name; + } + + /** + * + * (Required) + * + */ + @JsonProperty("name") + public void setName(String name) { + this.name = name; + } + + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs (Required) + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(name).append(hashMap).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalMeasurement) == false) { + return false; + } + AdditionalMeasurement rhs = ((AdditionalMeasurement) other); + return new EqualsBuilder().append(name, rhs.name).append(hashMap, rhs.hashMap).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java new file mode 100644 index 0000000..9f7f871 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalObject.java @@ -0,0 +1,227 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.List; +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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 objectInstances = new ArrayList(); + /** + * 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; + + /** + * one or more instances of the jsonObject + * (Required) + * + */ + @JsonProperty("objectInstances") + public List getObjectInstances() { + return objectInstances; + } + + /** + * one or more instances of the jsonObject + * (Required) + * + */ + @JsonProperty("objectInstances") + public void setObjectInstances(List 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema).append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalObject) == false) { + return false; + } + AdditionalObject rhs = ((AdditionalObject) other); + return new EqualsBuilder().append(objectInstances, rhs.objectInstances).append(objectName, rhs.objectName).append(objectSchema, rhs.objectSchema).append(objectSchemaUrl, rhs.objectSchemaUrl).append(nfSubscribedObjectName, rhs.nfSubscribedObjectName).append(nfSubscriptionId, rhs.nfSubscriptionId).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java new file mode 100644 index 0000000..eda4a1b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AdditionalParameter.java @@ -0,0 +1,191 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * performance counter + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "criticality", + "hashMap", + "thresholdCrossed" +}) +public class AdditionalParameter { + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + private AdditionalParameter.Criticality criticality; + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + private String thresholdCrossed; + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + public AdditionalParameter.Criticality getCriticality() { + return criticality; + } + + /** + * + * (Required) + * + */ + @JsonProperty("criticality") + public void setCriticality(AdditionalParameter.Criticality criticality) { + this.criticality = criticality; + } + + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs + * (Required) + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + public String getThresholdCrossed() { + return thresholdCrossed; + } + + /** + * + * (Required) + * + */ + @JsonProperty("thresholdCrossed") + public void setThresholdCrossed(String thresholdCrossed) { + this.thresholdCrossed = thresholdCrossed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(criticality).append(hashMap).append(thresholdCrossed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AdditionalParameter) == false) { + return false; + } + AdditionalParameter rhs = ((AdditionalParameter) other); + return new EqualsBuilder().append(criticality, rhs.criticality).append(hashMap, rhs.hashMap).append(thresholdCrossed, rhs.thresholdCrossed).isEquals(); + } + + public enum Criticality { + + CRIT("CRIT"), + MAJ("MAJ"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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/ves70/AlarmAdditionalInformation.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java new file mode 100644 index 0000000..afc63f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/AlarmAdditionalInformation.java @@ -0,0 +1,79 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * an associative array which is an array of key:value pairs + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + +}) +public class AlarmAdditionalInformation { + + @JsonIgnore + private Map additionalProperties = new HashMap(); + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @JsonAnyGetter + public Map getAdditionalProperties() { + return this.additionalProperties; + } + + @JsonAnySetter + public void setAdditionalProperty(String name, String value) { + this.additionalProperties.put(name, value); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalProperties).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof AlarmAdditionalInformation) == false) { + return false; + } + AlarmAdditionalInformation rhs = ((AlarmAdditionalInformation) other); + return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java new file mode 100644 index 0000000..c75279c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CodecUsageArray.java @@ -0,0 +1,118 @@ +/* +* ============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.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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; + + /** + * + * (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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(codecIdentifier).append(numberInUse).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CodecUsageArray) == false) { + return false; + } + CodecUsageArray rhs = ((CodecUsageArray) other); + return new EqualsBuilder().append(codecIdentifier, rhs.codecIdentifier).append(numberInUse, rhs.numberInUse).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java new file mode 100644 index 0000000..a2554f6 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CommonEventHeader.java @@ -0,0 +1,777 @@ +/* +* ============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.ves70; + +import java.util.Date; +import java.util.HashMap; +import java.util.Map; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + + +/** + * fields common to all events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "domain", + "eventId", + "eventName", + "eventType", + "internalHeaderFields", + "lastEpochMicrosec", + "nfcNamingCode", + "nfNamingCode", + "nfVendorName", + "priority", + "reportingEntityId", + "reportingEntityName", + "sequence", + "sourceId", + "sourceName", + "startEpochMicrosec", + "timeZoneOffset", + "version", + "vesEventListenerVersion" +}) +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 - applicationNf, guestOS, hostOS, platform + * + */ + @JsonProperty("eventType") + @JsonPropertyDescription("for example - applicationNf, 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 nf naming standards + * + */ + @JsonProperty("nfNamingCode") + @JsonPropertyDescription("4 character network function type, aligned with nf naming standards") + private String nfNamingCode; + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + @JsonPropertyDescription("network function vendor name") + private String nfVendorName; + /** + * 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; + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + @JsonPropertyDescription("UTC offset for the local time zone of the device as UTC+/-hh.mm") + private String timeZoneOffset; + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + @JsonPropertyDescription("version of the event header") + private CommonEventHeader.Version version; + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + @JsonPropertyDescription("version of the VES Event Listener API") + private CommonEventHeader.VesEventListenerVersion vesEventListenerVersion; + + @JsonIgnore + private long ts1 = new Date().getTime(); + @JsonIgnore + public long getTs1() { + return ts1; + } + + @JsonIgnore + public void setTs1(long ts1) { + this.ts1 = ts1; + } + + /** + * 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 - applicationNf, guestOS, hostOS, platform + * + */ + @JsonProperty("eventType") + public String getEventType() { + return eventType; + } + + /** + * for example - applicationNf, 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 nf naming standards + * + */ + @JsonProperty("nfNamingCode") + public String getNfNamingCode() { + return nfNamingCode; + } + + /** + * 4 character network function type, aligned with nf naming standards + * + */ + @JsonProperty("nfNamingCode") + public void setNfNamingCode(String nfNamingCode) { + this.nfNamingCode = nfNamingCode; + } + + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + public String getNfVendorName() { + return nfVendorName; + } + + /** + * network function vendor name + * + */ + @JsonProperty("nfVendorName") + public void setNfVendorName(String nfVendorName) { + this.nfVendorName = nfVendorName; + } + + /** + * 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; + } + + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + public String getTimeZoneOffset() { + return timeZoneOffset; + } + + /** + * UTC offset for the local time zone of the device as UTC+/-hh.mm + * + */ + @JsonProperty("timeZoneOffset") + public void setTimeZoneOffset(String timeZoneOffset) { + this.timeZoneOffset = timeZoneOffset; + } + + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + public CommonEventHeader.Version getVersion() { + return version; + } + + /** + * version of the event header + * (Required) + * + */ + @JsonProperty("version") + public void setVersion(CommonEventHeader.Version version) { + this.version = version; + } + + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + public CommonEventHeader.VesEventListenerVersion getVesEventListenerVersion() { + return vesEventListenerVersion; + } + + /** + * version of the VES Event Listener API + * (Required) + * + */ + @JsonProperty("vesEventListenerVersion") + public void setVesEventListenerVersion(CommonEventHeader.VesEventListenerVersion vesEventListenerVersion) { + this.vesEventListenerVersion = vesEventListenerVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(domain).append(eventId).append(eventName).append(eventType).append(internalHeaderFields).append(lastEpochMicrosec).append(nfcNamingCode).append(nfNamingCode).append(nfVendorName).append(priority).append(reportingEntityId).append(reportingEntityName).append(sequence).append(sourceId).append(sourceName).append(startEpochMicrosec).append(timeZoneOffset).append(version).append(vesEventListenerVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CommonEventHeader) == false) { + return false; + } + CommonEventHeader rhs = ((CommonEventHeader) other); + return new EqualsBuilder().append(domain, rhs.domain).append(eventId, rhs.eventId).append(eventName, rhs.eventName).append(eventType, rhs.eventType).append(internalHeaderFields, rhs.internalHeaderFields).append(lastEpochMicrosec, rhs.lastEpochMicrosec).append(nfcNamingCode, rhs.nfcNamingCode).append(nfNamingCode, rhs.nfNamingCode).append(nfVendorName, rhs.nfVendorName).append(priority, rhs.priority).append(reportingEntityId, rhs.reportingEntityId).append(reportingEntityName, rhs.reportingEntityName).append(sequence, rhs.sequence).append(sourceId, rhs.sourceId).append(sourceName, rhs.sourceName).append(startEpochMicrosec, rhs.startEpochMicrosec).append(timeZoneOffset, rhs.timeZoneOffset).append(version, rhs.version).append(vesEventListenerVersion, rhs.vesEventListenerVersion).isEquals(); + } + + public enum Domain { + + FAULT("fault"), + HEARTBEAT("heartbeat"), + MEASUREMENT("measurement"), + MOBILE_FLOW("mobileFlow"), + NOTIFICATION("notification"), + OTHER("other"), + PNF_REGISTRATION("pnfRegistration"), + SIP_SIGNALING("sipSignaling"), + STATE_CHANGE("stateChange"), + SYSLOG("syslog"), + THRESHOLD_CROSSING_ALERT("thresholdCrossingAlert"), + VOICE_QUALITY("voiceQuality"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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 CONSTANTS = new HashMap(); + + 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; + } + } + + } + + public enum Version { + + _4_0_1("4.0.1"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.Version c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private Version(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.Version fromValue(String value) { + CommonEventHeader.Version constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum VesEventListenerVersion { + + _7_0_1("7.0.1"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (CommonEventHeader.VesEventListenerVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private VesEventListenerVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static CommonEventHeader.VesEventListenerVersion fromValue(String value) { + CommonEventHeader.VesEventListenerVersion 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/ves70/CpuUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java new file mode 100644 index 0000000..d259abe --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/CpuUsageArray.java @@ -0,0 +1,511 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * usage of an identified CPU + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "cpuCapacityContention", + "cpuDemandAvg", + "cpuDemandMhz", + "cpuDemandPct", + "cpuIdentifier", + "cpuIdle", + "cpuLatencyAvg", + "cpuOverheadAvg", + "cpuSwapWaitTime", + "cpuUsageInterrupt", + "cpuUsageNice", + "cpuUsageSoftIrq", + "cpuUsageSteal", + "cpuUsageSystem", + "cpuUsageUser", + "cpuWait", + "percentUsage" +}) +public class CpuUsageArray { + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + @JsonPropertyDescription("the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval") + private Double cpuCapacityContention; + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + @JsonPropertyDescription("the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval") + private Double cpuDemandAvg; + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + @JsonPropertyDescription("CPU demand in megahertz") + private Double cpuDemandMhz; + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + @JsonPropertyDescription("CPU demand as a percentage of the provisioned capacity") + private Double cpuDemandPct; + /** + * 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 the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + @JsonPropertyDescription("percentage of time the VM is unable to run because it is contending for access to the physical CPUs") + private Double cpuLatencyAvg; + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + @JsonPropertyDescription("the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval") + private Double cpuOverheadAvg; + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + @JsonPropertyDescription("swap wait time. in milliseconds over the measurementInterval") + private Double cpuSwapWaitTime; + /** + * 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 xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + @JsonPropertyDescription("aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running") + private Double percentUsage; + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + public Double getCpuCapacityContention() { + return cpuCapacityContention; + } + + /** + * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuCapacityContention") + public void setCpuCapacityContention(Double cpuCapacityContention) { + this.cpuCapacityContention = cpuCapacityContention; + } + + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + public Double getCpuDemandAvg() { + return cpuDemandAvg; + } + + /** + * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuDemandAvg") + public void setCpuDemandAvg(Double cpuDemandAvg) { + this.cpuDemandAvg = cpuDemandAvg; + } + + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + public Double getCpuDemandMhz() { + return cpuDemandMhz; + } + + /** + * CPU demand in megahertz + * + */ + @JsonProperty("cpuDemandMhz") + public void setCpuDemandMhz(Double cpuDemandMhz) { + this.cpuDemandMhz = cpuDemandMhz; + } + + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + public Double getCpuDemandPct() { + return cpuDemandPct; + } + + /** + * CPU demand as a percentage of the provisioned capacity + * + */ + @JsonProperty("cpuDemandPct") + public void setCpuDemandPct(Double cpuDemandPct) { + this.cpuDemandPct = cpuDemandPct; + } + + /** + * 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 the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + public Double getCpuLatencyAvg() { + return cpuLatencyAvg; + } + + /** + * percentage of time the VM is unable to run because it is contending for access to the physical CPUs + * + */ + @JsonProperty("cpuLatencyAvg") + public void setCpuLatencyAvg(Double cpuLatencyAvg) { + this.cpuLatencyAvg = cpuLatencyAvg; + } + + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + public Double getCpuOverheadAvg() { + return cpuOverheadAvg; + } + + /** + * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuOverheadAvg") + public void setCpuOverheadAvg(Double cpuOverheadAvg) { + this.cpuOverheadAvg = cpuOverheadAvg; + } + + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + public Double getCpuSwapWaitTime() { + return cpuSwapWaitTime; + } + + /** + * swap wait time. in milliseconds over the measurementInterval + * + */ + @JsonProperty("cpuSwapWaitTime") + public void setCpuSwapWaitTime(Double cpuSwapWaitTime) { + this.cpuSwapWaitTime = cpuSwapWaitTime; + } + + /** + * 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 xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + public Double getPercentUsage() { + return percentUsage; + } + + /** + * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running + * (Required) + * + */ + @JsonProperty("percentUsage") + public void setPercentUsage(Double percentUsage) { + this.percentUsage = percentUsage; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(cpuCapacityContention).append(cpuDemandAvg).append(cpuDemandMhz).append(cpuDemandPct).append(cpuIdentifier).append(cpuIdle).append(cpuLatencyAvg).append(cpuOverheadAvg).append(cpuSwapWaitTime).append(cpuUsageInterrupt).append(cpuUsageNice).append(cpuUsageSoftIrq).append(cpuUsageSteal).append(cpuUsageSystem).append(cpuUsageUser).append(cpuWait).append(percentUsage).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof CpuUsageArray) == false) { + return false; + } + CpuUsageArray rhs = ((CpuUsageArray) other); + return new EqualsBuilder().append(cpuCapacityContention, rhs.cpuCapacityContention).append(cpuDemandAvg, rhs.cpuDemandAvg).append(cpuDemandMhz, rhs.cpuDemandMhz).append(cpuDemandPct, rhs.cpuDemandPct).append(cpuIdentifier, rhs.cpuIdentifier).append(cpuIdle, rhs.cpuIdle).append(cpuLatencyAvg, rhs.cpuLatencyAvg).append(cpuOverheadAvg, rhs.cpuOverheadAvg).append(cpuSwapWaitTime, rhs.cpuSwapWaitTime).append(cpuUsageInterrupt, rhs.cpuUsageInterrupt).append(cpuUsageNice, rhs.cpuUsageNice).append(cpuUsageSoftIrq, rhs.cpuUsageSoftIrq).append(cpuUsageSteal, rhs.cpuUsageSteal).append(cpuUsageSystem, rhs.cpuUsageSystem).append(cpuUsageUser, rhs.cpuUsageUser).append(cpuWait, rhs.cpuWait).append(percentUsage, rhs.percentUsage).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java new file mode 100644 index 0000000..5f73074 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/DiskUsageArray.java @@ -0,0 +1,1496 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * usage of an identified disk + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "diskBusResets", + "diskCommandsAborted", + "diskCommandsAvg", + "diskFlushRequests", + "diskFlushTime", + "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", + "diskReadCommandsAvg", + "diskTime", + "diskTimeReadAvg", + "diskTimeReadLast", + "diskTimeReadMax", + "diskTimeReadMin", + "diskTimeWriteAvg", + "diskTimeWriteLast", + "diskTimeWriteMax", + "diskTimeWriteMin", + "diskTotalReadLatencyAvg", + "diskTotalWriteLatencyAvg", + "diskWeightedIoTimeAvg", + "diskWeightedIoTimeLast", + "diskWeightedIoTimeMax", + "diskWeightedIoTimeMin", + "diskWriteCommandsAvg" +}) +public class DiskUsageArray { + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + @JsonPropertyDescription("number of bus resets over the measurementInterval") + private Double diskBusResets; + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + @JsonPropertyDescription("number of disk commands aborted over the measurementInterval") + private Double diskCommandsAborted; + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + @JsonPropertyDescription("average number of commands per second over the measurementInterval") + private Double diskCommandsAvg; + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + @JsonPropertyDescription("total flush requests of the disk cache over the measurementInterval") + private Double diskFlushRequests; + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + @JsonPropertyDescription("milliseconds spent on disk cache flushing over the measurementInterval") + private Double diskFlushTime; + /** + * 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; + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + @JsonPropertyDescription("average number of read commands issued per second to the disk over the measurementInterval") + private Double diskReadCommandsAvg; + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + @JsonPropertyDescription("nanoseconds spent on disk cache reads/writes within the measurement interval") + private Double diskTime; + /** + * 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; + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + @JsonPropertyDescription("average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval") + private Double diskTotalReadLatencyAvg; + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + @JsonPropertyDescription("average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval") + private Double diskTotalWriteLatencyAvg; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval") + private Double diskWeightedIoTimeAvg; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval") + private Double diskWeightedIoTimeLast; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval") + private Double diskWeightedIoTimeMax; + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval") + private Double diskWeightedIoTimeMin; + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + @JsonPropertyDescription("average number of write commands issued per second to the disk over the measurementInterval") + private Double diskWriteCommandsAvg; + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + public Double getDiskBusResets() { + return diskBusResets; + } + + /** + * number of bus resets over the measurementInterval + * + */ + @JsonProperty("diskBusResets") + public void setDiskBusResets(Double diskBusResets) { + this.diskBusResets = diskBusResets; + } + + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + public Double getDiskCommandsAborted() { + return diskCommandsAborted; + } + + /** + * number of disk commands aborted over the measurementInterval + * + */ + @JsonProperty("diskCommandsAborted") + public void setDiskCommandsAborted(Double diskCommandsAborted) { + this.diskCommandsAborted = diskCommandsAborted; + } + + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + public Double getDiskCommandsAvg() { + return diskCommandsAvg; + } + + /** + * average number of commands per second over the measurementInterval + * + */ + @JsonProperty("diskCommandsAvg") + public void setDiskCommandsAvg(Double diskCommandsAvg) { + this.diskCommandsAvg = diskCommandsAvg; + } + + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + public Double getDiskFlushRequests() { + return diskFlushRequests; + } + + /** + * total flush requests of the disk cache over the measurementInterval + * + */ + @JsonProperty("diskFlushRequests") + public void setDiskFlushRequests(Double diskFlushRequests) { + this.diskFlushRequests = diskFlushRequests; + } + + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + public Double getDiskFlushTime() { + return diskFlushTime; + } + + /** + * milliseconds spent on disk cache flushing over the measurementInterval + * + */ + @JsonProperty("diskFlushTime") + public void setDiskFlushTime(Double diskFlushTime) { + this.diskFlushTime = diskFlushTime; + } + + /** + * 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; + } + + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + public Double getDiskReadCommandsAvg() { + return diskReadCommandsAvg; + } + + /** + * average number of read commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskReadCommandsAvg") + public void setDiskReadCommandsAvg(Double diskReadCommandsAvg) { + this.diskReadCommandsAvg = diskReadCommandsAvg; + } + + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + public Double getDiskTime() { + return diskTime; + } + + /** + * nanoseconds spent on disk cache reads/writes within the measurement interval + * + */ + @JsonProperty("diskTime") + public void setDiskTime(Double diskTime) { + this.diskTime = diskTime; + } + + /** + * 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; + } + + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + public Double getDiskTotalReadLatencyAvg() { + return diskTotalReadLatencyAvg; + } + + /** + * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalReadLatencyAvg") + public void setDiskTotalReadLatencyAvg(Double diskTotalReadLatencyAvg) { + this.diskTotalReadLatencyAvg = diskTotalReadLatencyAvg; + } + + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + public Double getDiskTotalWriteLatencyAvg() { + return diskTotalWriteLatencyAvg; + } + + /** + * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval + * + */ + @JsonProperty("diskTotalWriteLatencyAvg") + public void setDiskTotalWriteLatencyAvg(Double diskTotalWriteLatencyAvg) { + this.diskTotalWriteLatencyAvg = diskTotalWriteLatencyAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + public Double getDiskWeightedIoTimeAvg() { + return diskWeightedIoTimeAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeAvg") + public void setDiskWeightedIoTimeAvg(Double diskWeightedIoTimeAvg) { + this.diskWeightedIoTimeAvg = diskWeightedIoTimeAvg; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + public Double getDiskWeightedIoTimeLast() { + return diskWeightedIoTimeLast; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeLast") + public void setDiskWeightedIoTimeLast(Double diskWeightedIoTimeLast) { + this.diskWeightedIoTimeLast = diskWeightedIoTimeLast; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + public Double getDiskWeightedIoTimeMax() { + return diskWeightedIoTimeMax; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMax") + public void setDiskWeightedIoTimeMax(Double diskWeightedIoTimeMax) { + this.diskWeightedIoTimeMax = diskWeightedIoTimeMax; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + public Double getDiskWeightedIoTimeMin() { + return diskWeightedIoTimeMin; + } + + /** + * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval + * + */ + @JsonProperty("diskWeightedIoTimeMin") + public void setDiskWeightedIoTimeMin(Double diskWeightedIoTimeMin) { + this.diskWeightedIoTimeMin = diskWeightedIoTimeMin; + } + + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + public Double getDiskWriteCommandsAvg() { + return diskWriteCommandsAvg; + } + + /** + * average number of write commands issued per second to the disk over the measurementInterval + * + */ + @JsonProperty("diskWriteCommandsAvg") + public void setDiskWriteCommandsAvg(Double diskWriteCommandsAvg) { + this.diskWriteCommandsAvg = diskWriteCommandsAvg; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(diskBusResets).append(diskCommandsAborted).append(diskCommandsAvg).append(diskFlushRequests).append(diskFlushTime).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(diskReadCommandsAvg).append(diskTime).append(diskTimeReadAvg).append(diskTimeReadLast).append(diskTimeReadMax).append(diskTimeReadMin).append(diskTimeWriteAvg).append(diskTimeWriteLast).append(diskTimeWriteMax).append(diskTimeWriteMin).append(diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast).append(diskWeightedIoTimeMax).append(diskWeightedIoTimeMin).append(diskWriteCommandsAvg).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof DiskUsageArray) == false) { + return false; + } + DiskUsageArray rhs = ((DiskUsageArray) other); + return new EqualsBuilder().append(diskBusResets, rhs.diskBusResets).append(diskCommandsAborted, rhs.diskCommandsAborted).append(diskCommandsAvg, rhs.diskCommandsAvg).append(diskFlushRequests, rhs.diskFlushRequests).append(diskFlushTime, rhs.diskFlushTime).append(diskIdentifier, rhs.diskIdentifier).append(diskIoTimeAvg, rhs.diskIoTimeAvg).append(diskIoTimeLast, rhs.diskIoTimeLast).append(diskIoTimeMax, rhs.diskIoTimeMax).append(diskIoTimeMin, rhs.diskIoTimeMin).append(diskMergedReadAvg, rhs.diskMergedReadAvg).append(diskMergedReadLast, rhs.diskMergedReadLast).append(diskMergedReadMax, rhs.diskMergedReadMax).append(diskMergedReadMin, rhs.diskMergedReadMin).append(diskMergedWriteAvg, rhs.diskMergedWriteAvg).append(diskMergedWriteLast, rhs.diskMergedWriteLast).append(diskMergedWriteMax, rhs.diskMergedWriteMax).append(diskMergedWriteMin, rhs.diskMergedWriteMin).append(diskOctetsReadAvg, rhs.diskOctetsReadAvg).append(diskOctetsReadLast, rhs.diskOctetsReadLast).append(diskOctetsReadMax, rhs.diskOctetsReadMax).append(diskOctetsReadMin, rhs.diskOctetsReadMin).append(diskOctetsWriteAvg, rhs.diskOctetsWriteAvg).append(diskOctetsWriteLast, rhs.diskOctetsWriteLast).append(diskOctetsWriteMax, rhs.diskOctetsWriteMax).append(diskOctetsWriteMin, rhs.diskOctetsWriteMin).append(diskOpsReadAvg, rhs.diskOpsReadAvg).append(diskOpsReadLast, rhs.diskOpsReadLast).append(diskOpsReadMax, rhs.diskOpsReadMax).append(diskOpsReadMin, rhs.diskOpsReadMin).append(diskOpsWriteAvg, rhs.diskOpsWriteAvg).append(diskOpsWriteLast, rhs.diskOpsWriteLast).append(diskOpsWriteMax, rhs.diskOpsWriteMax).append(diskOpsWriteMin, rhs.diskOpsWriteMin).append(diskPendingOperationsAvg, rhs.diskPendingOperationsAvg).append(diskPendingOperationsLast, rhs.diskPendingOperationsLast).append(diskPendingOperationsMax, rhs.diskPendingOperationsMax).append(diskPendingOperationsMin, rhs.diskPendingOperationsMin).append(diskReadCommandsAvg, rhs.diskReadCommandsAvg).append(diskTime, rhs.diskTime).append(diskTimeReadAvg, rhs.diskTimeReadAvg).append(diskTimeReadLast, rhs.diskTimeReadLast).append(diskTimeReadMax, rhs.diskTimeReadMax).append(diskTimeReadMin, rhs.diskTimeReadMin).append(diskTimeWriteAvg, rhs.diskTimeWriteAvg).append(diskTimeWriteLast, rhs.diskTimeWriteLast).append(diskTimeWriteMax, rhs.diskTimeWriteMax).append(diskTimeWriteMin, rhs.diskTimeWriteMin).append(diskTotalReadLatencyAvg, rhs.diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg, rhs.diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg, rhs.diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast, rhs.diskWeightedIoTimeLast).append(diskWeightedIoTimeMax, rhs.diskWeightedIoTimeMax).append(diskWeightedIoTimeMin, rhs.diskWeightedIoTimeMin).append(diskWriteCommandsAvg, rhs.diskWriteCommandsAvg).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java new file mode 100644 index 0000000..6fd47fb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/EndOfCallVqmSummaries.java @@ -0,0 +1,866 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides end of call voice quality metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "adjacencyName", + "endpointAverageJitter", + "endpointDescription", + "endpointMaxJitter", + "endpointRtpOctetsDiscarded", + "endpointRtpOctetsLost", + "endpointRtpOctetsReceived", + "endpointRtpOctetsSent", + "endpointRtpPacketsDiscarded", + "endpointRtpPacketsLost", + "endpointRtpPacketsReceived", + "endpointRtpPacketsSent", + "localAverageJitter", + "localAverageJitterBufferDelay", + "localMaxJitter", + "localMaxJitterBufferDelay", + "localRtpOctetsDiscarded", + "localRtpOctetsLost", + "localRtpOctetsReceived", + "localRtpOctetsSent", + "localRtpPacketsDiscarded", + "localRtpPacketsLost", + "localRtpPacketsReceived", + "localRtpPacketsSent", + "mosCqe", + "oneWayDelay", + "packetLossPercent", + "rFactor", + "roundTripDelay" +}) +public class EndOfCallVqmSummaries { + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + @JsonPropertyDescription(" adjacency name") + private String adjacencyName; + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + @JsonPropertyDescription("endpoint average jitter") + private Double endpointAverageJitter; + /** + * either Caller or Callee + * (Required) + * + */ + @JsonProperty("endpointDescription") + @JsonPropertyDescription("either Caller or Callee") + private EndOfCallVqmSummaries.EndpointDescription endpointDescription; + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + @JsonPropertyDescription("endpoint maximum jitter") + private Double endpointMaxJitter; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + @JsonPropertyDescription("") + private Double endpointRtpOctetsDiscarded; + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + @JsonPropertyDescription("endpoint RTP octets lost") + private Double endpointRtpOctetsLost; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsReceived") + @JsonPropertyDescription("") + private Double endpointRtpOctetsReceived; + /** + * + * + */ + @JsonProperty("endpointRtpOctetsSent") + @JsonPropertyDescription("") + private Double endpointRtpOctetsSent; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsDiscarded") + @JsonPropertyDescription("") + private Double endpointRtpPacketsDiscarded; + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + @JsonPropertyDescription("endpoint RTP packets lost") + private Double endpointRtpPacketsLost; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsReceived") + @JsonPropertyDescription("") + private Double endpointRtpPacketsReceived; + /** + * + * + */ + @JsonProperty("endpointRtpPacketsSent") + @JsonPropertyDescription("") + private Double endpointRtpPacketsSent; + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + @JsonPropertyDescription("Local average jitter") + private Double localAverageJitter; + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + @JsonPropertyDescription("Local average jitter delay") + private Double localAverageJitterBufferDelay; + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + @JsonPropertyDescription("Local maximum jitter") + private Double localMaxJitter; + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + @JsonPropertyDescription("Local maximum jitter delay") + private Double localMaxJitterBufferDelay; + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + @JsonPropertyDescription("") + private Double localRtpOctetsDiscarded; + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + @JsonPropertyDescription("Local RTP octets lost") + private Double localRtpOctetsLost; + /** + * + * + */ + @JsonProperty("localRtpOctetsReceived") + @JsonPropertyDescription("") + private Double localRtpOctetsReceived; + /** + * + * + */ + @JsonProperty("localRtpOctetsSent") + @JsonPropertyDescription("") + private Double localRtpOctetsSent; + /** + * + * + */ + @JsonProperty("localRtpPacketsDiscarded") + @JsonPropertyDescription("") + private Double localRtpPacketsDiscarded; + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + @JsonPropertyDescription("Local RTP packets lost") + private Double localRtpPacketsLost; + /** + * + * + */ + @JsonProperty("localRtpPacketsReceived") + @JsonPropertyDescription("") + private Double localRtpPacketsReceived; + /** + * + * + */ + @JsonProperty("localRtpPacketsSent") + @JsonPropertyDescription("") + private Double localRtpPacketsSent; + /** + * 1-5 1dp + * + */ + @JsonProperty("mosCqe") + @JsonPropertyDescription("1-5 1dp") + private Double mosCqe; + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + @JsonPropertyDescription("one-way path delay in milliseconds") + private Double oneWayDelay; + /** + * 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; + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + public String getAdjacencyName() { + return adjacencyName; + } + + /** + * adjacency name + * (Required) + * + */ + @JsonProperty("adjacencyName") + public void setAdjacencyName(String adjacencyName) { + this.adjacencyName = adjacencyName; + } + + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + public Double getEndpointAverageJitter() { + return endpointAverageJitter; + } + + /** + * endpoint average jitter + * + */ + @JsonProperty("endpointAverageJitter") + public void setEndpointAverageJitter(Double endpointAverageJitter) { + this.endpointAverageJitter = endpointAverageJitter; + } + + /** + * 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; + } + + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + public Double getEndpointMaxJitter() { + return endpointMaxJitter; + } + + /** + * endpoint maximum jitter + * + */ + @JsonProperty("endpointMaxJitter") + public void setEndpointMaxJitter(Double endpointMaxJitter) { + this.endpointMaxJitter = endpointMaxJitter; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + public Double getEndpointRtpOctetsDiscarded() { + return endpointRtpOctetsDiscarded; + } + + /** + * + * + */ + @JsonProperty("endpointRtpOctetsDiscarded") + public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) { + this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded; + } + + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + public Double getEndpointRtpOctetsLost() { + return endpointRtpOctetsLost; + } + + /** + * endpoint RTP octets lost + * + */ + @JsonProperty("endpointRtpOctetsLost") + public void setEndpointRtpOctetsLost(Double endpointRtpOctetsLost) { + this.endpointRtpOctetsLost = endpointRtpOctetsLost; + } + + /** + * + * + */ + @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; + } + + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + public Double getEndpointRtpPacketsLost() { + return endpointRtpPacketsLost; + } + + /** + * endpoint RTP packets lost + * + */ + @JsonProperty("endpointRtpPacketsLost") + public void setEndpointRtpPacketsLost(Double endpointRtpPacketsLost) { + this.endpointRtpPacketsLost = endpointRtpPacketsLost; + } + + /** + * + * + */ + @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; + } + + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + public Double getLocalAverageJitter() { + return localAverageJitter; + } + + /** + * Local average jitter + * + */ + @JsonProperty("localAverageJitter") + public void setLocalAverageJitter(Double localAverageJitter) { + this.localAverageJitter = localAverageJitter; + } + + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + public Double getLocalAverageJitterBufferDelay() { + return localAverageJitterBufferDelay; + } + + /** + * Local average jitter delay + * + */ + @JsonProperty("localAverageJitterBufferDelay") + public void setLocalAverageJitterBufferDelay(Double localAverageJitterBufferDelay) { + this.localAverageJitterBufferDelay = localAverageJitterBufferDelay; + } + + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + public Double getLocalMaxJitter() { + return localMaxJitter; + } + + /** + * Local maximum jitter + * + */ + @JsonProperty("localMaxJitter") + public void setLocalMaxJitter(Double localMaxJitter) { + this.localMaxJitter = localMaxJitter; + } + + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + public Double getLocalMaxJitterBufferDelay() { + return localMaxJitterBufferDelay; + } + + /** + * Local maximum jitter delay + * + */ + @JsonProperty("localMaxJitterBufferDelay") + public void setLocalMaxJitterBufferDelay(Double localMaxJitterBufferDelay) { + this.localMaxJitterBufferDelay = localMaxJitterBufferDelay; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + public Double getLocalRtpOctetsDiscarded() { + return localRtpOctetsDiscarded; + } + + /** + * + * + */ + @JsonProperty("localRtpOctetsDiscarded") + public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) { + this.localRtpOctetsDiscarded = localRtpOctetsDiscarded; + } + + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + public Double getLocalRtpOctetsLost() { + return localRtpOctetsLost; + } + + /** + * Local RTP octets lost + * + */ + @JsonProperty("localRtpOctetsLost") + public void setLocalRtpOctetsLost(Double localRtpOctetsLost) { + this.localRtpOctetsLost = localRtpOctetsLost; + } + + /** + * + * + */ + @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; + } + + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + public Double getLocalRtpPacketsLost() { + return localRtpPacketsLost; + } + + /** + * Local RTP packets lost + * + */ + @JsonProperty("localRtpPacketsLost") + public void setLocalRtpPacketsLost(Double localRtpPacketsLost) { + this.localRtpPacketsLost = localRtpPacketsLost; + } + + /** + * + * + */ + @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; + } + + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + public Double getOneWayDelay() { + return oneWayDelay; + } + + /** + * one-way path delay in milliseconds + * + */ + @JsonProperty("oneWayDelay") + public void setOneWayDelay(Double oneWayDelay) { + this.oneWayDelay = oneWayDelay; + } + + /** + * 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(adjacencyName).append(endpointAverageJitter).append(endpointDescription).append(endpointMaxJitter).append(endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost).append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost).append(endpointRtpPacketsReceived).append(endpointRtpPacketsSent).append(localAverageJitter).append(localAverageJitterBufferDelay).append(localMaxJitter).append(localMaxJitterBufferDelay).append(localRtpOctetsDiscarded).append(localRtpOctetsLost).append(localRtpOctetsReceived).append(localRtpOctetsSent).append(localRtpPacketsDiscarded).append(localRtpPacketsLost).append(localRtpPacketsReceived).append(localRtpPacketsSent).append(mosCqe).append(oneWayDelay).append(packetLossPercent).append(rFactor).append(roundTripDelay).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof EndOfCallVqmSummaries) == false) { + return false; + } + EndOfCallVqmSummaries rhs = ((EndOfCallVqmSummaries) other); + return new EqualsBuilder().append(adjacencyName, rhs.adjacencyName).append(endpointAverageJitter, rhs.endpointAverageJitter).append(endpointDescription, rhs.endpointDescription).append(endpointMaxJitter, rhs.endpointMaxJitter).append(endpointRtpOctetsDiscarded, rhs.endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost, rhs.endpointRtpOctetsLost).append(endpointRtpOctetsReceived, rhs.endpointRtpOctetsReceived).append(endpointRtpOctetsSent, rhs.endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded, rhs.endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost, rhs.endpointRtpPacketsLost).append(endpointRtpPacketsReceived, rhs.endpointRtpPacketsReceived).append(endpointRtpPacketsSent, rhs.endpointRtpPacketsSent).append(localAverageJitter, rhs.localAverageJitter).append(localAverageJitterBufferDelay, rhs.localAverageJitterBufferDelay).append(localMaxJitter, rhs.localMaxJitter).append(localMaxJitterBufferDelay, rhs.localMaxJitterBufferDelay).append(localRtpOctetsDiscarded, rhs.localRtpOctetsDiscarded).append(localRtpOctetsLost, rhs.localRtpOctetsLost).append(localRtpOctetsReceived, rhs.localRtpOctetsReceived).append(localRtpOctetsSent, rhs.localRtpOctetsSent).append(localRtpPacketsDiscarded, rhs.localRtpPacketsDiscarded).append(localRtpPacketsLost, rhs.localRtpPacketsLost).append(localRtpPacketsReceived, rhs.localRtpPacketsReceived).append(localRtpPacketsSent, rhs.localRtpPacketsSent).append(mosCqe, rhs.mosCqe).append(oneWayDelay, rhs.oneWayDelay).append(packetLossPercent, rhs.packetLossPercent).append(rFactor, rhs.rFactor).append(roundTripDelay, rhs.roundTripDelay).isEquals(); + } + + public enum EndpointDescription { + + CALLER("Caller"), + CALLEE("Callee"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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/ves70/Event.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java new file mode 100644 index 0000000..83ca4f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Event.java @@ -0,0 +1,404 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * the root level of the common event format + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "commonEventHeader", + "faultFields", + "heartbeatFields", + "measurementFields", + "mobileFlowFields", + "notificationFields", + "otherFields", + "pnfRegistrationFields", + "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; + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + @JsonPropertyDescription("measurement fields") + private MeasurementFields measurementFields; + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + @JsonPropertyDescription("mobileFlow fields") + private MobileFlowFields mobileFlowFields; + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + @JsonPropertyDescription("notification fields") + private NotificationFields notificationFields; + /** + * 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; + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + @JsonPropertyDescription("hardware device registration fields") + private PnfRegistrationFields pnfRegistrationFields; + /** + * 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; + + /** + * 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; + } + + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + public MeasurementFields getMeasurementFields() { + return measurementFields; + } + + /** + * measurement fields + * + */ + @JsonProperty("measurementFields") + public void setMeasurementFields(MeasurementFields measurementFields) { + this.measurementFields = measurementFields; + } + + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + public MobileFlowFields getMobileFlowFields() { + return mobileFlowFields; + } + + /** + * mobileFlow fields + * + */ + @JsonProperty("mobileFlowFields") + public void setMobileFlowFields(MobileFlowFields mobileFlowFields) { + this.mobileFlowFields = mobileFlowFields; + } + + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + public NotificationFields getNotificationFields() { + return notificationFields; + } + + /** + * notification fields + * + */ + @JsonProperty("notificationFields") + public void setNotificationFields(NotificationFields notificationFields) { + this.notificationFields = notificationFields; + } + + /** + * 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; + } + + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + public PnfRegistrationFields getPnfRegistrationFields() { + return pnfRegistrationFields; + } + + /** + * hardware device registration fields + * + */ + @JsonProperty("pnfRegistrationFields") + public void setPnfRegistrationFields(PnfRegistrationFields pnfRegistrationFields) { + this.pnfRegistrationFields = pnfRegistrationFields; + } + + /** + * 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(commonEventHeader).append(faultFields).append(heartbeatFields).append(measurementFields).append(mobileFlowFields).append(notificationFields).append(otherFields).append(pnfRegistrationFields).append(sipSignalingFields).append(stateChangeFields).append(syslogFields).append(thresholdCrossingAlertFields).append(voiceQualityFields).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof Event) == false) { + return false; + } + Event rhs = ((Event) other); + return new EqualsBuilder().append(commonEventHeader, rhs.commonEventHeader).append(faultFields, rhs.faultFields).append(heartbeatFields, rhs.heartbeatFields).append(measurementFields, rhs.measurementFields).append(mobileFlowFields, rhs.mobileFlowFields).append(notificationFields, rhs.notificationFields).append(otherFields, rhs.otherFields).append(pnfRegistrationFields, rhs.pnfRegistrationFields).append(sipSignalingFields, rhs.sipSignalingFields).append(stateChangeFields, rhs.stateChangeFields).append(syslogFields, rhs.syslogFields).append(thresholdCrossingAlertFields, rhs.thresholdCrossingAlertFields).append(voiceQualityFields, rhs.voiceQualityFields).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java new file mode 100644 index 0000000..202317f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FaultFields.java @@ -0,0 +1,441 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * fields specific to fault events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "alarmAdditionalInformation", + "alarmCondition", + "alarmInterfaceA", + "eventCategory", + "eventSeverity", + "eventSourceType", + "faultFieldsVersion", + "specificProblem", + "vfStatus" +}) +public class FaultFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation 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 FaultFields.FaultFieldsVersion 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; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + public AlarmAdditionalInformation getAlarmAdditionalInformation() { + return alarmAdditionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("alarmAdditionalInformation") + public void setAlarmAdditionalInformation(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 FaultFields.FaultFieldsVersion getFaultFieldsVersion() { + return faultFieldsVersion; + } + + /** + * version of the faultFields block + * (Required) + * + */ + @JsonProperty("faultFieldsVersion") + public void setFaultFieldsVersion(FaultFields.FaultFieldsVersion 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); + } + + @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).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof FaultFields) == false) { + return false; + } + FaultFields rhs = ((FaultFields) other); + return new EqualsBuilder().append(alarmAdditionalInformation, rhs.alarmAdditionalInformation).append(alarmCondition, rhs.alarmCondition).append(alarmInterfaceA, rhs.alarmInterfaceA).append(eventCategory, rhs.eventCategory).append(eventSeverity, rhs.eventSeverity).append(eventSourceType, rhs.eventSourceType).append(faultFieldsVersion, rhs.faultFieldsVersion).append(specificProblem, rhs.specificProblem).append(vfStatus, rhs.vfStatus).isEquals(); + } + + public enum EventSeverity { + + CRITICAL("CRITICAL"), + MAJOR("MAJOR"), + MINOR("MINOR"), + WARNING("WARNING"), + NORMAL("NORMAL"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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 FaultFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (FaultFields.FaultFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private FaultFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static FaultFields.FaultFieldsVersion fromValue(String value) { + FaultFields.FaultFieldsVersion 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 CONSTANTS = new HashMap(); + + 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/ves70/FilesystemUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java new file mode 100644 index 0000000..693bbd5 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/FilesystemUsageArray.java @@ -0,0 +1,258 @@ +/* +* ============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.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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; + + /** + * + * (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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(blockConfigured).append(blockIops).append(blockUsed).append(ephemeralConfigured).append(ephemeralIops).append(ephemeralUsed).append(filesystemName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof FilesystemUsageArray) == false) { + return false; + } + FilesystemUsageArray rhs = ((FilesystemUsageArray) other); + return new EqualsBuilder().append(blockConfigured, rhs.blockConfigured).append(blockIops, rhs.blockIops).append(blockUsed, rhs.blockUsed).append(ephemeralConfigured, rhs.ephemeralConfigured).append(ephemeralIops, rhs.ephemeralIops).append(ephemeralUsed, rhs.ephemeralUsed).append(filesystemName, rhs.filesystemName).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java new file mode 100644 index 0000000..c0da0e4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/GtpPerFlowMetrics.java @@ -0,0 +1,1455 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.List; +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation ipTosCountList; + /** + * 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 ipTosList = new ArrayList(); + /** + * 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; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation mobileQciCosCountList; + /** + * 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 mobileQciCosList = new ArrayList(); + /** + * 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; + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation tcpFlagCountList; + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + @JsonPropertyDescription("Array of unique TCP Flags observed in the flow") + private List tcpFlagList = new ArrayList(); + /** + * 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; + + /** + * 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; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + public AlarmAdditionalInformation getIpTosCountList() { + return ipTosCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("ipTosCountList") + public void setIpTosCountList(AlarmAdditionalInformation 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 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 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; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + public AlarmAdditionalInformation getMobileQciCosCountList() { + return mobileQciCosCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("mobileQciCosCountList") + public void setMobileQciCosCountList(AlarmAdditionalInformation mobileQciCosCountList) { + this.mobileQciCosCountList = mobileQciCosCountList; + } + + /** + * Array of unique LTE QCI or UMTS class-of-service values observed in the flow + * + */ + @JsonProperty("mobileQciCosList") + public List getMobileQciCosList() { + return mobileQciCosList; + } + + /** + * Array of unique LTE QCI or UMTS class-of-service values observed in the flow + * + */ + @JsonProperty("mobileQciCosList") + public void setMobileQciCosList(List 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; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + public AlarmAdditionalInformation getTcpFlagCountList() { + return tcpFlagCountList; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("tcpFlagCountList") + public void setTcpFlagCountList(AlarmAdditionalInformation tcpFlagCountList) { + this.tcpFlagCountList = tcpFlagCountList; + } + + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + public List getTcpFlagList() { + return tcpFlagList; + } + + /** + * Array of unique TCP Flags observed in the flow + * + */ + @JsonProperty("tcpFlagList") + public void setTcpFlagList(List 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); + } + + @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).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof GtpPerFlowMetrics) == false) { + return false; + } + GtpPerFlowMetrics rhs = ((GtpPerFlowMetrics) other); + return new EqualsBuilder().append(avgBitErrorRate, rhs.avgBitErrorRate).append(avgPacketDelayVariation, rhs.avgPacketDelayVariation).append(avgPacketLatency, rhs.avgPacketLatency).append(avgReceiveThroughput, rhs.avgReceiveThroughput).append(avgTransmitThroughput, rhs.avgTransmitThroughput).append(durConnectionFailedStatus, rhs.durConnectionFailedStatus).append(durTunnelFailedStatus, rhs.durTunnelFailedStatus).append(flowActivatedBy, rhs.flowActivatedBy).append(flowActivationEpoch, rhs.flowActivationEpoch).append(flowActivationMicrosec, rhs.flowActivationMicrosec).append(flowActivationTime, rhs.flowActivationTime).append(flowDeactivatedBy, rhs.flowDeactivatedBy).append(flowDeactivationEpoch, rhs.flowDeactivationEpoch).append(flowDeactivationMicrosec, rhs.flowDeactivationMicrosec).append(flowDeactivationTime, rhs.flowDeactivationTime).append(flowStatus, rhs.flowStatus).append(gtpConnectionStatus, rhs.gtpConnectionStatus).append(gtpTunnelStatus, rhs.gtpTunnelStatus).append(ipTosCountList, rhs.ipTosCountList).append(ipTosList, rhs.ipTosList).append(largePacketRtt, rhs.largePacketRtt).append(largePacketThreshold, rhs.largePacketThreshold).append(maxPacketDelayVariation, rhs.maxPacketDelayVariation).append(maxReceiveBitRate, rhs.maxReceiveBitRate).append(maxTransmitBitRate, rhs.maxTransmitBitRate).append(mobileQciCosCountList, rhs.mobileQciCosCountList).append(mobileQciCosList, rhs.mobileQciCosList).append(numActivationFailures, rhs.numActivationFailures).append(numBitErrors, rhs.numBitErrors).append(numBytesReceived, rhs.numBytesReceived).append(numBytesTransmitted, rhs.numBytesTransmitted).append(numDroppedPackets, rhs.numDroppedPackets).append(numGtpEchoFailures, rhs.numGtpEchoFailures).append(numGtpTunnelErrors, rhs.numGtpTunnelErrors).append(numHttpErrors, rhs.numHttpErrors).append(numL7BytesReceived, rhs.numL7BytesReceived).append(numL7BytesTransmitted, rhs.numL7BytesTransmitted).append(numLostPackets, rhs.numLostPackets).append(numOutOfOrderPackets, rhs.numOutOfOrderPackets).append(numPacketErrors, rhs.numPacketErrors).append(numPacketsReceivedExclRetrans, rhs.numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans, rhs.numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans, rhs.numPacketsTransmittedInclRetrans).append(numRetries, rhs.numRetries).append(numTimeouts, rhs.numTimeouts).append(numTunneledL7BytesReceived, rhs.numTunneledL7BytesReceived).append(roundTripTime, rhs.roundTripTime).append(tcpFlagCountList, rhs.tcpFlagCountList).append(tcpFlagList, rhs.tcpFlagList).append(timeToFirstByte, rhs.timeToFirstByte).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java new file mode 100644 index 0000000..c2f32a1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HeartbeatFields.java @@ -0,0 +1,189 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * optional field block for fields specific to heartbeat events + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "heartbeatFieldsVersion", + "heartbeatInterval" +}) +public class HeartbeatFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + @JsonPropertyDescription("version of the heartbeatFields block") + private HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion; + /** + * current heartbeat interval in seconds + * (Required) + * + */ + @JsonProperty("heartbeatInterval") + @JsonPropertyDescription("current heartbeat interval in seconds") + private Integer heartbeatInterval; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + public HeartbeatFields.HeartbeatFieldsVersion getHeartbeatFieldsVersion() { + return heartbeatFieldsVersion; + } + + /** + * version of the heartbeatFields block + * (Required) + * + */ + @JsonProperty("heartbeatFieldsVersion") + public void setHeartbeatFieldsVersion(HeartbeatFields.HeartbeatFieldsVersion 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(heartbeatFieldsVersion).append(heartbeatInterval).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof HeartbeatFields) == false) { + return false; + } + HeartbeatFields rhs = ((HeartbeatFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(heartbeatFieldsVersion, rhs.heartbeatFieldsVersion).append(heartbeatInterval, rhs.heartbeatInterval).isEquals(); + } + + public enum HeartbeatFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (HeartbeatFields.HeartbeatFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private HeartbeatFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static HeartbeatFields.HeartbeatFieldsVersion fromValue(String value) { + HeartbeatFields.HeartbeatFieldsVersion 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/ves70/HugePagesArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java new file mode 100644 index 0000000..67b63cb --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/HugePagesArray.java @@ -0,0 +1,248 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on system hugepages + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "bytesFree", + "bytesUsed", + "hugePagesIdentifier", + "percentFree", + "percentUsed", + "vmPageNumberFree", + "vmPageNumberUsed" +}) +public class HugePagesArray { + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + @JsonPropertyDescription("number of free hugepages in bytes") + private Double bytesFree; + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + @JsonPropertyDescription("number of used hugepages in bytes") + private Double bytesUsed; + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + @JsonPropertyDescription("hugePages identifier") + private Double hugePagesIdentifier; + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + @JsonPropertyDescription("number of free hugepages in percent") + private Double percentFree; + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + @JsonPropertyDescription("number of free hugepages in percent") + private Double percentUsed; + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + @JsonPropertyDescription("number of free vmPages in numbers") + private Double vmPageNumberFree; + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + @JsonPropertyDescription("number of used vmPages in numbers") + private Double vmPageNumberUsed; + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + public Double getBytesFree() { + return bytesFree; + } + + /** + * number of free hugepages in bytes + * + */ + @JsonProperty("bytesFree") + public void setBytesFree(Double bytesFree) { + this.bytesFree = bytesFree; + } + + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + public Double getBytesUsed() { + return bytesUsed; + } + + /** + * number of used hugepages in bytes + * + */ + @JsonProperty("bytesUsed") + public void setBytesUsed(Double bytesUsed) { + this.bytesUsed = bytesUsed; + } + + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + public Double getHugePagesIdentifier() { + return hugePagesIdentifier; + } + + /** + * hugePages identifier + * (Required) + * + */ + @JsonProperty("hugePagesIdentifier") + public void setHugePagesIdentifier(Double hugePagesIdentifier) { + this.hugePagesIdentifier = hugePagesIdentifier; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + public Double getPercentFree() { + return percentFree; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentFree") + public void setPercentFree(Double percentFree) { + this.percentFree = percentFree; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + public Double getPercentUsed() { + return percentUsed; + } + + /** + * number of free hugepages in percent + * + */ + @JsonProperty("percentUsed") + public void setPercentUsed(Double percentUsed) { + this.percentUsed = percentUsed; + } + + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + public Double getVmPageNumberFree() { + return vmPageNumberFree; + } + + /** + * number of free vmPages in numbers + * + */ + @JsonProperty("vmPageNumberFree") + public void setVmPageNumberFree(Double vmPageNumberFree) { + this.vmPageNumberFree = vmPageNumberFree; + } + + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + public Double getVmPageNumberUsed() { + return vmPageNumberUsed; + } + + /** + * number of used vmPages in numbers + * + */ + @JsonProperty("vmPageNumberUsed") + public void setVmPageNumberUsed(Double vmPageNumberUsed) { + this.vmPageNumberUsed = vmPageNumberUsed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(bytesFree).append(bytesUsed).append(hugePagesIdentifier).append(percentFree).append(percentUsed).append(vmPageNumberFree).append(vmPageNumberUsed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof HugePagesArray) == false) { + return false; + } + HugePagesArray rhs = ((HugePagesArray) other); + return new EqualsBuilder().append(bytesFree, rhs.bytesFree).append(bytesUsed, rhs.bytesUsed).append(hugePagesIdentifier, rhs.hugePagesIdentifier).append(percentFree, rhs.percentFree).append(percentUsed, rhs.percentUsed).append(vmPageNumberFree, rhs.vmPageNumberFree).append(vmPageNumberUsed, rhs.vmPageNumberUsed).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java new file mode 100644 index 0000000..e3b30f8 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/InternalHeaderFields.java @@ -0,0 +1,79 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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 additionalProperties = new HashMap(); + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @JsonAnyGetter + public Map 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(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof InternalHeaderFields) == false) { + return false; + } + InternalHeaderFields rhs = ((InternalHeaderFields) other); + return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java new file mode 100644 index 0000000..4b8fe8e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/Ipmi.java @@ -0,0 +1,403 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.List; +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "exitAirTemperature", + "frontPanelTemperature", + "ioModuleTemperature", + "ipmiBaseboardTemperatureArray", + "ipmiBaseboardVoltageRegulatorArray", + "ipmiBatteryArray", + "ipmiFanArray", + "ipmiHsbpArray", + "ipmiGlobalAggregateTemperatureMarginArray", + "ipmiNicArray", + "ipmiPowerSupplyArray", + "ipmiProcessorArray", + "systemAirflow" +}) +public class Ipmi { + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + @JsonPropertyDescription("system fan exit air flow temperature in celsius") + private Double exitAirTemperature; + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + @JsonPropertyDescription("front panel temperature in celsius") + private Double frontPanelTemperature; + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + @JsonPropertyDescription("io module temperature in celsius") + private Double ioModuleTemperature; + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + @JsonPropertyDescription("array of ipmiBaseboardTemperature objects") + private List ipmiBaseboardTemperatureArray = new ArrayList(); + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + @JsonPropertyDescription("array of ipmiBaseboardVoltageRegulator objects") + private List ipmiBaseboardVoltageRegulatorArray = new ArrayList(); + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + @JsonPropertyDescription("array of ipmiBattery objects") + private List ipmiBatteryArray = new ArrayList(); + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + @JsonPropertyDescription("array of ipmiFan objects") + private List ipmiFanArray = new ArrayList(); + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + @JsonPropertyDescription("array of ipmiHsbp objects") + private List ipmiHsbpArray = new ArrayList(); + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + @JsonPropertyDescription("array of ipmiGlobalAggregateTemperatureMargin objects") + private List ipmiGlobalAggregateTemperatureMarginArray = new ArrayList(); + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + @JsonPropertyDescription("array of ipmiNic objects") + private List ipmiNicArray = new ArrayList(); + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + @JsonPropertyDescription("array of ipmiPowerSupply objects") + private List ipmiPowerSupplyArray = new ArrayList(); + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + @JsonPropertyDescription("array of ipmiProcessor objects") + private List ipmiProcessorArray = new ArrayList(); + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + @JsonPropertyDescription("airfflow in cubic feet per minute (cfm)") + private Double systemAirflow; + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + public Double getExitAirTemperature() { + return exitAirTemperature; + } + + /** + * system fan exit air flow temperature in celsius + * + */ + @JsonProperty("exitAirTemperature") + public void setExitAirTemperature(Double exitAirTemperature) { + this.exitAirTemperature = exitAirTemperature; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + public Double getFrontPanelTemperature() { + return frontPanelTemperature; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("frontPanelTemperature") + public void setFrontPanelTemperature(Double frontPanelTemperature) { + this.frontPanelTemperature = frontPanelTemperature; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + public Double getIoModuleTemperature() { + return ioModuleTemperature; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("ioModuleTemperature") + public void setIoModuleTemperature(Double ioModuleTemperature) { + this.ioModuleTemperature = ioModuleTemperature; + } + + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + public List getIpmiBaseboardTemperatureArray() { + return ipmiBaseboardTemperatureArray; + } + + /** + * array of ipmiBaseboardTemperature objects + * + */ + @JsonProperty("ipmiBaseboardTemperatureArray") + public void setIpmiBaseboardTemperatureArray(List ipmiBaseboardTemperatureArray) { + this.ipmiBaseboardTemperatureArray = ipmiBaseboardTemperatureArray; + } + + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + public List getIpmiBaseboardVoltageRegulatorArray() { + return ipmiBaseboardVoltageRegulatorArray; + } + + /** + * array of ipmiBaseboardVoltageRegulator objects + * + */ + @JsonProperty("ipmiBaseboardVoltageRegulatorArray") + public void setIpmiBaseboardVoltageRegulatorArray(List ipmiBaseboardVoltageRegulatorArray) { + this.ipmiBaseboardVoltageRegulatorArray = ipmiBaseboardVoltageRegulatorArray; + } + + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + public List getIpmiBatteryArray() { + return ipmiBatteryArray; + } + + /** + * array of ipmiBattery objects + * + */ + @JsonProperty("ipmiBatteryArray") + public void setIpmiBatteryArray(List ipmiBatteryArray) { + this.ipmiBatteryArray = ipmiBatteryArray; + } + + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + public List getIpmiFanArray() { + return ipmiFanArray; + } + + /** + * array of ipmiFan objects + * + */ + @JsonProperty("ipmiFanArray") + public void setIpmiFanArray(List ipmiFanArray) { + this.ipmiFanArray = ipmiFanArray; + } + + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + public List getIpmiHsbpArray() { + return ipmiHsbpArray; + } + + /** + * array of ipmiHsbp objects + * + */ + @JsonProperty("ipmiHsbpArray") + public void setIpmiHsbpArray(List ipmiHsbpArray) { + this.ipmiHsbpArray = ipmiHsbpArray; + } + + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + public List getIpmiGlobalAggregateTemperatureMarginArray() { + return ipmiGlobalAggregateTemperatureMarginArray; + } + + /** + * array of ipmiGlobalAggregateTemperatureMargin objects + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") + public void setIpmiGlobalAggregateTemperatureMarginArray(List ipmiGlobalAggregateTemperatureMarginArray) { + this.ipmiGlobalAggregateTemperatureMarginArray = ipmiGlobalAggregateTemperatureMarginArray; + } + + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + public List getIpmiNicArray() { + return ipmiNicArray; + } + + /** + * array of ipmiNic objects + * + */ + @JsonProperty("ipmiNicArray") + public void setIpmiNicArray(List ipmiNicArray) { + this.ipmiNicArray = ipmiNicArray; + } + + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + public List getIpmiPowerSupplyArray() { + return ipmiPowerSupplyArray; + } + + /** + * array of ipmiPowerSupply objects + * + */ + @JsonProperty("ipmiPowerSupplyArray") + public void setIpmiPowerSupplyArray(List ipmiPowerSupplyArray) { + this.ipmiPowerSupplyArray = ipmiPowerSupplyArray; + } + + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + public List getIpmiProcessorArray() { + return ipmiProcessorArray; + } + + /** + * array of ipmiProcessor objects + * + */ + @JsonProperty("ipmiProcessorArray") + public void setIpmiProcessorArray(List ipmiProcessorArray) { + this.ipmiProcessorArray = ipmiProcessorArray; + } + + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + public Double getSystemAirflow() { + return systemAirflow; + } + + /** + * airfflow in cubic feet per minute (cfm) + * + */ + @JsonProperty("systemAirflow") + public void setSystemAirflow(Double systemAirflow) { + this.systemAirflow = systemAirflow; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(exitAirTemperature).append(frontPanelTemperature).append(ioModuleTemperature).append(ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray).append(ipmiFanArray).append(ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray).append(ipmiPowerSupplyArray).append(ipmiProcessorArray).append(systemAirflow).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof Ipmi) == false) { + return false; + } + Ipmi rhs = ((Ipmi) other); + return new EqualsBuilder().append(exitAirTemperature, rhs.exitAirTemperature).append(frontPanelTemperature, rhs.frontPanelTemperature).append(ioModuleTemperature, rhs.ioModuleTemperature).append(ipmiBaseboardTemperatureArray, rhs.ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray, rhs.ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray, rhs.ipmiBatteryArray).append(ipmiFanArray, rhs.ipmiFanArray).append(ipmiHsbpArray, rhs.ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray, rhs.ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray, rhs.ipmiNicArray).append(ipmiPowerSupplyArray, rhs.ipmiPowerSupplyArray).append(ipmiProcessorArray, rhs.ipmiProcessorArray).append(systemAirflow, rhs.systemAirflow).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java new file mode 100644 index 0000000..6992883 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardTemperatureArray.java @@ -0,0 +1,118 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) baseboard temperature metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "baseboardTemperatureIdentifier", + "baseboardTemperature" +}) +public class IpmiBaseboardTemperatureArray { + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + @JsonPropertyDescription("identifier for the location where the temperature is taken") + private String baseboardTemperatureIdentifier; + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + @JsonPropertyDescription("baseboard temperature in celsius") + private Double baseboardTemperature; + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + public String getBaseboardTemperatureIdentifier() { + return baseboardTemperatureIdentifier; + } + + /** + * identifier for the location where the temperature is taken + * (Required) + * + */ + @JsonProperty("baseboardTemperatureIdentifier") + public void setBaseboardTemperatureIdentifier(String baseboardTemperatureIdentifier) { + this.baseboardTemperatureIdentifier = baseboardTemperatureIdentifier; + } + + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + public Double getBaseboardTemperature() { + return baseboardTemperature; + } + + /** + * baseboard temperature in celsius + * + */ + @JsonProperty("baseboardTemperature") + public void setBaseboardTemperature(Double baseboardTemperature) { + this.baseboardTemperature = baseboardTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(baseboardTemperatureIdentifier).append(baseboardTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBaseboardTemperatureArray) == false) { + return false; + } + IpmiBaseboardTemperatureArray rhs = ((IpmiBaseboardTemperatureArray) other); + return new EqualsBuilder().append(baseboardTemperatureIdentifier, rhs.baseboardTemperatureIdentifier).append(baseboardTemperature, rhs.baseboardTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java new file mode 100644 index 0000000..d7a9404 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBaseboardVoltageRegulatorArray.java @@ -0,0 +1,118 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) baseboard voltage regulator metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "baseboardVoltageRegulatorIdentifier", + "voltageRegulatorTemperature" +}) +public class IpmiBaseboardVoltageRegulatorArray { + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + @JsonPropertyDescription("identifier for the baseboard voltage regulator") + private String baseboardVoltageRegulatorIdentifier; + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + @JsonPropertyDescription("voltage regulator temperature in celsius") + private Double voltageRegulatorTemperature; + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + public String getBaseboardVoltageRegulatorIdentifier() { + return baseboardVoltageRegulatorIdentifier; + } + + /** + * identifier for the baseboard voltage regulator + * (Required) + * + */ + @JsonProperty("baseboardVoltageRegulatorIdentifier") + public void setBaseboardVoltageRegulatorIdentifier(String baseboardVoltageRegulatorIdentifier) { + this.baseboardVoltageRegulatorIdentifier = baseboardVoltageRegulatorIdentifier; + } + + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + public Double getVoltageRegulatorTemperature() { + return voltageRegulatorTemperature; + } + + /** + * voltage regulator temperature in celsius + * + */ + @JsonProperty("voltageRegulatorTemperature") + public void setVoltageRegulatorTemperature(Double voltageRegulatorTemperature) { + this.voltageRegulatorTemperature = voltageRegulatorTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBaseboardVoltageRegulatorArray) == false) { + return false; + } + IpmiBaseboardVoltageRegulatorArray rhs = ((IpmiBaseboardVoltageRegulatorArray) other); + return new EqualsBuilder().append(baseboardVoltageRegulatorIdentifier, rhs.baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature, rhs.voltageRegulatorTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java new file mode 100644 index 0000000..17d29a7 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiBatteryArray.java @@ -0,0 +1,144 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) battery metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "batteryIdentifier", + "batteryType", + "batteryVoltageLevel" +}) +public class IpmiBatteryArray { + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + @JsonPropertyDescription("identifier for the battery") + private String batteryIdentifier; + /** + * type of battery + * + */ + @JsonProperty("batteryType") + @JsonPropertyDescription("type of battery") + private String batteryType; + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + @JsonPropertyDescription("battery voltage level") + private Double batteryVoltageLevel; + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + public String getBatteryIdentifier() { + return batteryIdentifier; + } + + /** + * identifier for the battery + * (Required) + * + */ + @JsonProperty("batteryIdentifier") + public void setBatteryIdentifier(String batteryIdentifier) { + this.batteryIdentifier = batteryIdentifier; + } + + /** + * type of battery + * + */ + @JsonProperty("batteryType") + public String getBatteryType() { + return batteryType; + } + + /** + * type of battery + * + */ + @JsonProperty("batteryType") + public void setBatteryType(String batteryType) { + this.batteryType = batteryType; + } + + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + public Double getBatteryVoltageLevel() { + return batteryVoltageLevel; + } + + /** + * battery voltage level + * + */ + @JsonProperty("batteryVoltageLevel") + public void setBatteryVoltageLevel(Double batteryVoltageLevel) { + this.batteryVoltageLevel = batteryVoltageLevel; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(batteryIdentifier).append(batteryType).append(batteryVoltageLevel).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiBatteryArray) == false) { + return false; + } + IpmiBatteryArray rhs = ((IpmiBatteryArray) other); + return new EqualsBuilder().append(batteryIdentifier, rhs.batteryIdentifier).append(batteryType, rhs.batteryType).append(batteryVoltageLevel, rhs.batteryVoltageLevel).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java new file mode 100644 index 0000000..5b1e110 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiFanArray.java @@ -0,0 +1,118 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) fan metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "fanIdentifier", + "fanSpeed" +}) +public class IpmiFanArray { + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + @JsonPropertyDescription("identifier for the fan") + private String fanIdentifier; + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + @JsonPropertyDescription("fan speed in revolutions per minute (rpm)") + private Double fanSpeed; + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + public String getFanIdentifier() { + return fanIdentifier; + } + + /** + * identifier for the fan + * (Required) + * + */ + @JsonProperty("fanIdentifier") + public void setFanIdentifier(String fanIdentifier) { + this.fanIdentifier = fanIdentifier; + } + + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + public Double getFanSpeed() { + return fanSpeed; + } + + /** + * fan speed in revolutions per minute (rpm) + * + */ + @JsonProperty("fanSpeed") + public void setFanSpeed(Double fanSpeed) { + this.fanSpeed = fanSpeed; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(fanIdentifier).append(fanSpeed).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiFanArray) == false) { + return false; + } + IpmiFanArray rhs = ((IpmiFanArray) other); + return new EqualsBuilder().append(fanIdentifier, rhs.fanIdentifier).append(fanSpeed, rhs.fanSpeed).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.java new file mode 100644 index 0000000..fd843b3 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiGlobalAggregateTemperatureMarginArray.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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) global aggregate temperature margin + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "ipmiGlobalAggregateTemperatureMarginIdentifier", + "globalAggregateTemperatureMargin" +}) +public class IpmiGlobalAggregateTemperatureMarginArray { + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + @JsonPropertyDescription("identifier for the ipmi global aggregate temperature margin metrics") + private String ipmiGlobalAggregateTemperatureMarginIdentifier; + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + @JsonPropertyDescription("the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point") + private Double globalAggregateTemperatureMargin; + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + public String getIpmiGlobalAggregateTemperatureMarginIdentifier() { + return ipmiGlobalAggregateTemperatureMarginIdentifier; + } + + /** + * identifier for the ipmi global aggregate temperature margin metrics + * (Required) + * + */ + @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") + public void setIpmiGlobalAggregateTemperatureMarginIdentifier(String ipmiGlobalAggregateTemperatureMarginIdentifier) { + this.ipmiGlobalAggregateTemperatureMarginIdentifier = ipmiGlobalAggregateTemperatureMarginIdentifier; + } + + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + public Double getGlobalAggregateTemperatureMargin() { + return globalAggregateTemperatureMargin; + } + + /** + * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point + * (Required) + * + */ + @JsonProperty("globalAggregateTemperatureMargin") + public void setGlobalAggregateTemperatureMargin(Double globalAggregateTemperatureMargin) { + this.globalAggregateTemperatureMargin = globalAggregateTemperatureMargin; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiGlobalAggregateTemperatureMarginArray) == false) { + return false; + } + IpmiGlobalAggregateTemperatureMarginArray rhs = ((IpmiGlobalAggregateTemperatureMarginArray) other); + return new EqualsBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier, rhs.ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin, rhs.globalAggregateTemperatureMargin).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java new file mode 100644 index 0000000..7715879 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiHsbpArray.java @@ -0,0 +1,119 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) hot swap backplane power metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "hsbpIdentifier", + "hsbpTemperature" +}) +public class IpmiHsbpArray { + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + @JsonPropertyDescription("identifier for the hot swap backplane power unit") + private String hsbpIdentifier; + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + @JsonPropertyDescription("hot swap backplane power temperature in celsius") + private Double hsbpTemperature; + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + public String getHsbpIdentifier() { + return hsbpIdentifier; + } + + /** + * identifier for the hot swap backplane power unit + * (Required) + * + */ + @JsonProperty("hsbpIdentifier") + public void setHsbpIdentifier(String hsbpIdentifier) { + this.hsbpIdentifier = hsbpIdentifier; + } + + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + public Double getHsbpTemperature() { + return hsbpTemperature; + } + + /** + * hot swap backplane power temperature in celsius + * + */ + @JsonProperty("hsbpTemperature") + public void setHsbpTemperature(Double hsbpTemperature) { + this.hsbpTemperature = hsbpTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiHsbpArray) == false) { + return false; + } + IpmiHsbpArray rhs = ((IpmiHsbpArray) other); + return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java new file mode 100644 index 0000000..c820319 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiNicArray.java @@ -0,0 +1,118 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) network interface control card (nic) metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "nicIdentifier", + "nicTemperature" +}) +public class IpmiNicArray { + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + @JsonPropertyDescription("identifier for the network interface control card") + private String nicIdentifier; + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + @JsonPropertyDescription("nic temperature in celsius") + private Double nicTemperature; + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public String getNicIdentifier() { + return nicIdentifier; + } + + /** + * identifier for the network interface control card + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public void setNicIdentifier(String nicIdentifier) { + this.nicIdentifier = nicIdentifier; + } + + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + public Double getNicTemperature() { + return nicTemperature; + } + + /** + * nic temperature in celsius + * + */ + @JsonProperty("nicTemperature") + public void setNicTemperature(Double nicTemperature) { + this.nicTemperature = nicTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(nicIdentifier).append(nicTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiNicArray) == false) { + return false; + } + IpmiNicArray rhs = ((IpmiNicArray) other); + return new EqualsBuilder().append(nicIdentifier, rhs.nicIdentifier).append(nicTemperature, rhs.nicTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java new file mode 100644 index 0000000..a3dff4e --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiPowerSupplyArray.java @@ -0,0 +1,170 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) power supply metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "powerSupplyIdentifier", + "powerSupplyInputPower", + "powerSupplyCurrentOutputPercent", + "powerSupplyTemperature" +}) +public class IpmiPowerSupplyArray { + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + @JsonPropertyDescription("identifier for the power supply") + private String powerSupplyIdentifier; + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + @JsonPropertyDescription("input power in watts") + private Double powerSupplyInputPower; + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + @JsonPropertyDescription("current output voltage as a percentage of the design specified level") + private Double powerSupplyCurrentOutputPercent; + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + @JsonPropertyDescription("power supply temperature in celsius") + private Double powerSupplyTemperature; + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + public String getPowerSupplyIdentifier() { + return powerSupplyIdentifier; + } + + /** + * identifier for the power supply + * (Required) + * + */ + @JsonProperty("powerSupplyIdentifier") + public void setPowerSupplyIdentifier(String powerSupplyIdentifier) { + this.powerSupplyIdentifier = powerSupplyIdentifier; + } + + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + public Double getPowerSupplyInputPower() { + return powerSupplyInputPower; + } + + /** + * input power in watts + * + */ + @JsonProperty("powerSupplyInputPower") + public void setPowerSupplyInputPower(Double powerSupplyInputPower) { + this.powerSupplyInputPower = powerSupplyInputPower; + } + + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + public Double getPowerSupplyCurrentOutputPercent() { + return powerSupplyCurrentOutputPercent; + } + + /** + * current output voltage as a percentage of the design specified level + * + */ + @JsonProperty("powerSupplyCurrentOutputPercent") + public void setPowerSupplyCurrentOutputPercent(Double powerSupplyCurrentOutputPercent) { + this.powerSupplyCurrentOutputPercent = powerSupplyCurrentOutputPercent; + } + + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + public Double getPowerSupplyTemperature() { + return powerSupplyTemperature; + } + + /** + * power supply temperature in celsius + * + */ + @JsonProperty("powerSupplyTemperature") + public void setPowerSupplyTemperature(Double powerSupplyTemperature) { + this.powerSupplyTemperature = powerSupplyTemperature; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(powerSupplyIdentifier).append(powerSupplyInputPower).append(powerSupplyCurrentOutputPercent).append(powerSupplyTemperature).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiPowerSupplyArray) == false) { + return false; + } + IpmiPowerSupplyArray rhs = ((IpmiPowerSupplyArray) other); + return new EqualsBuilder().append(powerSupplyIdentifier, rhs.powerSupplyIdentifier).append(powerSupplyInputPower, rhs.powerSupplyInputPower).append(powerSupplyCurrentOutputPercent, rhs.powerSupplyCurrentOutputPercent).append(powerSupplyTemperature, rhs.powerSupplyTemperature).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java new file mode 100644 index 0000000..829abc1 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/IpmiProcessorArray.java @@ -0,0 +1,172 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.List; +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface processor metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "processorIdentifier", + "processorThermalControlPercent", + "processorDtsThermalMargin", + "processorDimmAggregateThermalMarginArray" +}) +public class IpmiProcessorArray { + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + @JsonPropertyDescription("identifier for an ipmi processor") + private String processorIdentifier; + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + @JsonPropertyDescription("io module temperature in celsius") + private Double processorThermalControlPercent; + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + @JsonPropertyDescription("front panel temperature in celsius") + private Double processorDtsThermalMargin; + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + @JsonPropertyDescription("array of processorDimmAggregateThermalMargin objects") + private List processorDimmAggregateThermalMarginArray = new ArrayList(); + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + public String getProcessorIdentifier() { + return processorIdentifier; + } + + /** + * identifier for an ipmi processor + * (Required) + * + */ + @JsonProperty("processorIdentifier") + public void setProcessorIdentifier(String processorIdentifier) { + this.processorIdentifier = processorIdentifier; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + public Double getProcessorThermalControlPercent() { + return processorThermalControlPercent; + } + + /** + * io module temperature in celsius + * + */ + @JsonProperty("processorThermalControlPercent") + public void setProcessorThermalControlPercent(Double processorThermalControlPercent) { + this.processorThermalControlPercent = processorThermalControlPercent; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + public Double getProcessorDtsThermalMargin() { + return processorDtsThermalMargin; + } + + /** + * front panel temperature in celsius + * + */ + @JsonProperty("processorDtsThermalMargin") + public void setProcessorDtsThermalMargin(Double processorDtsThermalMargin) { + this.processorDtsThermalMargin = processorDtsThermalMargin; + } + + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + public List getProcessorDimmAggregateThermalMarginArray() { + return processorDimmAggregateThermalMarginArray; + } + + /** + * array of processorDimmAggregateThermalMargin objects + * + */ + @JsonProperty("processorDimmAggregateThermalMarginArray") + public void setProcessorDimmAggregateThermalMarginArray(List processorDimmAggregateThermalMarginArray) { + this.processorDimmAggregateThermalMarginArray = processorDimmAggregateThermalMarginArray; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(processorIdentifier).append(processorThermalControlPercent).append(processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof IpmiProcessorArray) == false) { + return false; + } + IpmiProcessorArray rhs = ((IpmiProcessorArray) other); + return new EqualsBuilder().append(processorIdentifier, rhs.processorIdentifier).append(processorThermalControlPercent, rhs.processorThermalControlPercent).append(processorDtsThermalMargin, rhs.processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray, rhs.processorDimmAggregateThermalMarginArray).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java new file mode 100644 index 0000000..7bdf886 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LatencyDistribution.java @@ -0,0 +1,117 @@ +/* +* ============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.ves70; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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; + + /** + * + * (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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket).append(lowEndOfLatencyBucket).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof LatencyDistribution) == false) { + return false; + } + LatencyDistribution rhs = ((LatencyDistribution) other); + return new EqualsBuilder().append(countsInTheBucket, rhs.countsInTheBucket).append(highEndOfLatencyBucket, rhs.highEndOfLatencyBucket).append(lowEndOfLatencyBucket, rhs.lowEndOfLatencyBucket).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.java new file mode 100644 index 0000000..5a407c4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/LoadArray.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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * /proc/loadavg cpu utilization and io utilization metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "longTerm", + "midTerm", + "shortTerm" +}) +public class LoadArray { + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg") + private Double longTerm; + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg") + private Double midTerm; + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg") + private Double shortTerm; + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + public Double getLongTerm() { + return longTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg + * + */ + @JsonProperty("longTerm") + public void setLongTerm(Double longTerm) { + this.longTerm = longTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + public Double getMidTerm() { + return midTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg + * + */ + @JsonProperty("midTerm") + public void setMidTerm(Double midTerm) { + this.midTerm = midTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + public Double getShortTerm() { + return shortTerm; + } + + /** + * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg + * + */ + @JsonProperty("shortTerm") + public void setShortTerm(Double shortTerm) { + this.shortTerm = shortTerm; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(longTerm).append(midTerm).append(shortTerm).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof LoadArray) == false) { + return false; + } + LoadArray rhs = ((LoadArray) other); + return new EqualsBuilder().append(longTerm, rhs.longTerm).append(midTerm, rhs.midTerm).append(shortTerm, rhs.shortTerm).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java new file mode 100644 index 0000000..47ab244 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MachineCheckExceptionArray.java @@ -0,0 +1,197 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on vm machine check exceptions + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "correctedMemoryErrors", + "correctedMemoryErrorsIn1Hr", + "uncorrectedMemoryErrors", + "uncorrectedMemoryErrorsIn1Hr", + "vmIdentifier" +}) +public class MachineCheckExceptionArray { + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + @JsonPropertyDescription("total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval") + private Double correctedMemoryErrors; + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + @JsonPropertyDescription("total hardware errors that were corrected by the hardware over the last one hour") + private Double correctedMemoryErrorsIn1Hr; + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval") + private Double uncorrectedMemoryErrors; + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware over the last one hour") + private Double uncorrectedMemoryErrorsIn1Hr; + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + @JsonPropertyDescription("virtual machine identifier associated with the machine check exception") + private String vmIdentifier; + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + public Double getCorrectedMemoryErrors() { + return correctedMemoryErrors; + } + + /** + * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval + * + */ + @JsonProperty("correctedMemoryErrors") + public void setCorrectedMemoryErrors(Double correctedMemoryErrors) { + this.correctedMemoryErrors = correctedMemoryErrors; + } + + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + public Double getCorrectedMemoryErrorsIn1Hr() { + return correctedMemoryErrorsIn1Hr; + } + + /** + * total hardware errors that were corrected by the hardware over the last one hour + * + */ + @JsonProperty("correctedMemoryErrorsIn1Hr") + public void setCorrectedMemoryErrorsIn1Hr(Double correctedMemoryErrorsIn1Hr) { + this.correctedMemoryErrorsIn1Hr = correctedMemoryErrorsIn1Hr; + } + + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + public Double getUncorrectedMemoryErrors() { + return uncorrectedMemoryErrors; + } + + /** + * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval + * + */ + @JsonProperty("uncorrectedMemoryErrors") + public void setUncorrectedMemoryErrors(Double uncorrectedMemoryErrors) { + this.uncorrectedMemoryErrors = uncorrectedMemoryErrors; + } + + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + public Double getUncorrectedMemoryErrorsIn1Hr() { + return uncorrectedMemoryErrorsIn1Hr; + } + + /** + * total uncorrected hardware errors that were detected by the hardware over the last one hour + * + */ + @JsonProperty("uncorrectedMemoryErrorsIn1Hr") + public void setUncorrectedMemoryErrorsIn1Hr(Double uncorrectedMemoryErrorsIn1Hr) { + this.uncorrectedMemoryErrorsIn1Hr = uncorrectedMemoryErrorsIn1Hr; + } + + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public String getVmIdentifier() { + return vmIdentifier; + } + + /** + * virtual machine identifier associated with the machine check exception + * (Required) + * + */ + @JsonProperty("vmIdentifier") + public void setVmIdentifier(String vmIdentifier) { + this.vmIdentifier = vmIdentifier; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MachineCheckExceptionArray) == false) { + return false; + } + MachineCheckExceptionArray rhs = ((MachineCheckExceptionArray) other); + return new EqualsBuilder().append(correctedMemoryErrors, rhs.correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr, rhs.correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors, rhs.uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr, rhs.uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier, rhs.vmIdentifier).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java new file mode 100644 index 0000000..a4cd30c --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MeasurementFields.java @@ -0,0 +1,737 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * measurement fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "additionalMeasurements", + "additionalObjects", + "codecUsageArray", + "concurrentSessions", + "configuredEntities", + "cpuUsageArray", + "diskUsageArray", + "featureUsageArray", + "filesystemUsageArray", + "hugePagesArray", + "ipmi", + "latencyDistribution", + "loadArray", + "machineCheckExceptionArray", + "meanRequestLatency", + "measurementInterval", + "measurementFieldsVersion", + "memoryUsageArray", + "numberOfMediaPortsInUse", + "requestRate", + "nfcScalingMetric", + "nicPerformanceArray", + "processStatsArray" +}) +public class MeasurementFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + @JsonPropertyDescription("array of named hashMaps") + private List additionalMeasurements = new ArrayList(); + /** + * 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 additionalObjects = new ArrayList(); + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + @JsonPropertyDescription("array of codecs in use") + private List codecUsageArray = new ArrayList(); + /** + * peak concurrent sessions for the VM or xNF over the measurementInterval + * + */ + @JsonProperty("concurrentSessions") + @JsonPropertyDescription("peak concurrent sessions for the VM or xNF 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 xNF + * + */ + @JsonProperty("configuredEntities") + @JsonPropertyDescription("over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF") + private Integer configuredEntities; + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + @JsonPropertyDescription("usage of an array of CPUs") + private List cpuUsageArray = new ArrayList(); + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + @JsonPropertyDescription("usage of an array of disks") + private List diskUsageArray = new ArrayList(); + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation featureUsageArray; + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + @JsonPropertyDescription("filesystem usage of the VM on which the xNFC reporting the event is running") + private List filesystemUsageArray = new ArrayList(); + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + @JsonPropertyDescription("array of metrics on hugepPages") + private List hugePagesArray = new ArrayList(); + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + @JsonPropertyDescription("intelligent platform management interface metrics") + private Ipmi ipmi; + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + @JsonPropertyDescription("array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges") + private List latencyDistribution = new ArrayList(); + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + @JsonPropertyDescription("array of system load metrics") + private List loadArray = new ArrayList(); + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + @JsonPropertyDescription("array of machine check exceptions") + private List machineCheckExceptionArray = new ArrayList(); + /** + * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("meanRequestLatency") + @JsonPropertyDescription("mean seconds required to respond to each request for the VM on which the xNFC 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 measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + @JsonPropertyDescription("version of the measurementFields block") + private MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion; + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + @JsonPropertyDescription("memory usage of an array of VMs") + private List memoryUsageArray = new ArrayList(); + /** + * 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 xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + @JsonPropertyDescription("peak rate of service requests per second to the xNF over the measurementInterval") + private Double requestRate; + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + @JsonPropertyDescription("represents busy-ness of the network function from 0 to 100 as reported by the xNFC") + private Integer nfcScalingMetric; + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + @JsonPropertyDescription("usage of an array of network interface cards") + private List nicPerformanceArray = new ArrayList(); + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + @JsonPropertyDescription("array of metrics on system processes") + private List processStatsArray = new ArrayList(); + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + public List getAdditionalMeasurements() { + return additionalMeasurements; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("additionalMeasurements") + public void setAdditionalMeasurements(List additionalMeasurements) { + this.additionalMeasurements = additionalMeasurements; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("additionalObjects") + public List getAdditionalObjects() { + return additionalObjects; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("additionalObjects") + public void setAdditionalObjects(List additionalObjects) { + this.additionalObjects = additionalObjects; + } + + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + public List getCodecUsageArray() { + return codecUsageArray; + } + + /** + * array of codecs in use + * + */ + @JsonProperty("codecUsageArray") + public void setCodecUsageArray(List codecUsageArray) { + this.codecUsageArray = codecUsageArray; + } + + /** + * peak concurrent sessions for the VM or xNF over the measurementInterval + * + */ + @JsonProperty("concurrentSessions") + public Integer getConcurrentSessions() { + return concurrentSessions; + } + + /** + * peak concurrent sessions for the VM or xNF 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 xNF + * + */ + @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 xNF + * + */ + @JsonProperty("configuredEntities") + public void setConfiguredEntities(Integer configuredEntities) { + this.configuredEntities = configuredEntities; + } + + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + public List getCpuUsageArray() { + return cpuUsageArray; + } + + /** + * usage of an array of CPUs + * + */ + @JsonProperty("cpuUsageArray") + public void setCpuUsageArray(List cpuUsageArray) { + this.cpuUsageArray = cpuUsageArray; + } + + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + public List getDiskUsageArray() { + return diskUsageArray; + } + + /** + * usage of an array of disks + * + */ + @JsonProperty("diskUsageArray") + public void setDiskUsageArray(List diskUsageArray) { + this.diskUsageArray = diskUsageArray; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + public AlarmAdditionalInformation getFeatureUsageArray() { + return featureUsageArray; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("featureUsageArray") + public void setFeatureUsageArray(AlarmAdditionalInformation featureUsageArray) { + this.featureUsageArray = featureUsageArray; + } + + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + public List getFilesystemUsageArray() { + return filesystemUsageArray; + } + + /** + * filesystem usage of the VM on which the xNFC reporting the event is running + * + */ + @JsonProperty("filesystemUsageArray") + public void setFilesystemUsageArray(List filesystemUsageArray) { + this.filesystemUsageArray = filesystemUsageArray; + } + + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + public List getHugePagesArray() { + return hugePagesArray; + } + + /** + * array of metrics on hugepPages + * + */ + @JsonProperty("hugePagesArray") + public void setHugePagesArray(List hugePagesArray) { + this.hugePagesArray = hugePagesArray; + } + + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + public Ipmi getIpmi() { + return ipmi; + } + + /** + * intelligent platform management interface metrics + * + */ + @JsonProperty("ipmi") + public void setIpmi(Ipmi ipmi) { + this.ipmi = ipmi; + } + + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + public List getLatencyDistribution() { + return latencyDistribution; + } + + /** + * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges + * + */ + @JsonProperty("latencyDistribution") + public void setLatencyDistribution(List latencyDistribution) { + this.latencyDistribution = latencyDistribution; + } + + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + public List getLoadArray() { + return loadArray; + } + + /** + * array of system load metrics + * + */ + @JsonProperty("loadArray") + public void setLoadArray(List loadArray) { + this.loadArray = loadArray; + } + + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + public List getMachineCheckExceptionArray() { + return machineCheckExceptionArray; + } + + /** + * array of machine check exceptions + * + */ + @JsonProperty("machineCheckExceptionArray") + public void setMachineCheckExceptionArray(List machineCheckExceptionArray) { + this.machineCheckExceptionArray = machineCheckExceptionArray; + } + + /** + * mean seconds required to respond to each request for the VM on which the xNFC 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 xNFC 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 measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + public MeasurementFields.MeasurementFieldsVersion getMeasurementFieldsVersion() { + return measurementFieldsVersion; + } + + /** + * version of the measurementFields block + * (Required) + * + */ + @JsonProperty("measurementFieldsVersion") + public void setMeasurementFieldsVersion(MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion) { + this.measurementFieldsVersion = measurementFieldsVersion; + } + + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + public List getMemoryUsageArray() { + return memoryUsageArray; + } + + /** + * memory usage of an array of VMs + * + */ + @JsonProperty("memoryUsageArray") + public void setMemoryUsageArray(List 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 xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + public Double getRequestRate() { + return requestRate; + } + + /** + * peak rate of service requests per second to the xNF over the measurementInterval + * + */ + @JsonProperty("requestRate") + public void setRequestRate(Double requestRate) { + this.requestRate = requestRate; + } + + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + public Integer getNfcScalingMetric() { + return nfcScalingMetric; + } + + /** + * represents busy-ness of the network function from 0 to 100 as reported by the xNFC + * + */ + @JsonProperty("nfcScalingMetric") + public void setNfcScalingMetric(Integer nfcScalingMetric) { + this.nfcScalingMetric = nfcScalingMetric; + } + + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + public List getNicPerformanceArray() { + return nicPerformanceArray; + } + + /** + * usage of an array of network interface cards + * + */ + @JsonProperty("nicPerformanceArray") + public void setNicPerformanceArray(List nicPerformanceArray) { + this.nicPerformanceArray = nicPerformanceArray; + } + + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + public List getProcessStatsArray() { + return processStatsArray; + } + + /** + * array of metrics on system processes + * + */ + @JsonProperty("processStatsArray") + public void setProcessStatsArray(List processStatsArray) { + this.processStatsArray = processStatsArray; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @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(hugePagesArray).append(ipmi).append(latencyDistribution).append(loadArray).append(machineCheckExceptionArray).append(meanRequestLatency).append(measurementInterval).append(measurementFieldsVersion).append(memoryUsageArray).append(numberOfMediaPortsInUse).append(requestRate).append(nfcScalingMetric).append(nicPerformanceArray).append(processStatsArray).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MeasurementFields) == false) { + return false; + } + MeasurementFields rhs = ((MeasurementFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalMeasurements, rhs.additionalMeasurements).append(additionalObjects, rhs.additionalObjects).append(codecUsageArray, rhs.codecUsageArray).append(concurrentSessions, rhs.concurrentSessions).append(configuredEntities, rhs.configuredEntities).append(cpuUsageArray, rhs.cpuUsageArray).append(diskUsageArray, rhs.diskUsageArray).append(featureUsageArray, rhs.featureUsageArray).append(filesystemUsageArray, rhs.filesystemUsageArray).append(hugePagesArray, rhs.hugePagesArray).append(ipmi, rhs.ipmi).append(latencyDistribution, rhs.latencyDistribution).append(loadArray, rhs.loadArray).append(machineCheckExceptionArray, rhs.machineCheckExceptionArray).append(meanRequestLatency, rhs.meanRequestLatency).append(measurementInterval, rhs.measurementInterval).append(measurementFieldsVersion, rhs.measurementFieldsVersion).append(memoryUsageArray, rhs.memoryUsageArray).append(numberOfMediaPortsInUse, rhs.numberOfMediaPortsInUse).append(requestRate, rhs.requestRate).append(nfcScalingMetric, rhs.nfcScalingMetric).append(nicPerformanceArray, rhs.nicPerformanceArray).append(processStatsArray, rhs.processStatsArray).isEquals(); + } + + public enum MeasurementFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (MeasurementFields.MeasurementFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private MeasurementFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static MeasurementFields.MeasurementFieldsVersion fromValue(String value) { + MeasurementFields.MeasurementFieldsVersion 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/ves70/MemoryUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java new file mode 100644 index 0000000..a13cc73 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MemoryUsageArray.java @@ -0,0 +1,514 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * memory usage of an identified virtual machine + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "memoryBuffered", + "memoryCached", + "memoryConfigured", + "memoryDemand", + "memoryFree", + "memoryLatencyAvg", + "memorySharedAvg", + "memorySlabRecl", + "memorySlabUnrecl", + "memorySwapInAvg", + "memorySwapInRateAvg", + "memorySwapOutAvg", + "memorySwapOutRateAvg", + "memorySwapUsedAvg", + "memoryUsed", + "percentMemoryUsage", + "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 xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running") + private Double memoryConfigured; + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + @JsonPropertyDescription("host demand in kibibytes") + private Double memoryDemand; + /** + * 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; + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + @JsonPropertyDescription("Percentage of time the VM is waiting to access swapped or compressed memory") + private Double memoryLatencyAvg; + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + @JsonPropertyDescription("shared memory in kilobytes") + private Double memorySharedAvg; + /** + * 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; + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + @JsonPropertyDescription("Amount of memory swapped-in from host cache in kibibytes") + private Double memorySwapInAvg; + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + @JsonPropertyDescription("rate at which memory is swapped from disk into active memory during the interval in kilobytes per second") + private Double memorySwapInRateAvg; + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + @JsonPropertyDescription("Amount of memory swapped-out to host cache in kibibytes") + private Double memorySwapOutAvg; + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + @JsonPropertyDescription("rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second") + private Double memorySwapOutRateAvg; + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + @JsonPropertyDescription("space used for caching swapped pages in the host cache in kibibytes") + private Double memorySwapUsedAvg; + /** + * 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; + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + @JsonPropertyDescription("Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise") + private Double percentMemoryUsage; + /** + * virtual machine identifier associated with the memory metrics + * (Required) + * + */ + @JsonProperty("vmIdentifier") + @JsonPropertyDescription("virtual machine identifier associated with the memory metrics") + private String vmIdentifier; + + /** + * 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 xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + public Double getMemoryConfigured() { + return memoryConfigured; + } + + /** + * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running + * + */ + @JsonProperty("memoryConfigured") + public void setMemoryConfigured(Double memoryConfigured) { + this.memoryConfigured = memoryConfigured; + } + + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + public Double getMemoryDemand() { + return memoryDemand; + } + + /** + * host demand in kibibytes + * + */ + @JsonProperty("memoryDemand") + public void setMemoryDemand(Double memoryDemand) { + this.memoryDemand = memoryDemand; + } + + /** + * 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; + } + + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + public Double getMemoryLatencyAvg() { + return memoryLatencyAvg; + } + + /** + * Percentage of time the VM is waiting to access swapped or compressed memory + * + */ + @JsonProperty("memoryLatencyAvg") + public void setMemoryLatencyAvg(Double memoryLatencyAvg) { + this.memoryLatencyAvg = memoryLatencyAvg; + } + + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + public Double getMemorySharedAvg() { + return memorySharedAvg; + } + + /** + * shared memory in kilobytes + * + */ + @JsonProperty("memorySharedAvg") + public void setMemorySharedAvg(Double memorySharedAvg) { + this.memorySharedAvg = memorySharedAvg; + } + + /** + * 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; + } + + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + public Double getMemorySwapInAvg() { + return memorySwapInAvg; + } + + /** + * Amount of memory swapped-in from host cache in kibibytes + * + */ + @JsonProperty("memorySwapInAvg") + public void setMemorySwapInAvg(Double memorySwapInAvg) { + this.memorySwapInAvg = memorySwapInAvg; + } + + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + public Double getMemorySwapInRateAvg() { + return memorySwapInRateAvg; + } + + /** + * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second + * + */ + @JsonProperty("memorySwapInRateAvg") + public void setMemorySwapInRateAvg(Double memorySwapInRateAvg) { + this.memorySwapInRateAvg = memorySwapInRateAvg; + } + + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + public Double getMemorySwapOutAvg() { + return memorySwapOutAvg; + } + + /** + * Amount of memory swapped-out to host cache in kibibytes + * + */ + @JsonProperty("memorySwapOutAvg") + public void setMemorySwapOutAvg(Double memorySwapOutAvg) { + this.memorySwapOutAvg = memorySwapOutAvg; + } + + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + public Double getMemorySwapOutRateAvg() { + return memorySwapOutRateAvg; + } + + /** + * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second + * + */ + @JsonProperty("memorySwapOutRateAvg") + public void setMemorySwapOutRateAvg(Double memorySwapOutRateAvg) { + this.memorySwapOutRateAvg = memorySwapOutRateAvg; + } + + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + public Double getMemorySwapUsedAvg() { + return memorySwapUsedAvg; + } + + /** + * space used for caching swapped pages in the host cache in kibibytes + * + */ + @JsonProperty("memorySwapUsedAvg") + public void setMemorySwapUsedAvg(Double memorySwapUsedAvg) { + this.memorySwapUsedAvg = memorySwapUsedAvg; + } + + /** + * 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; + } + + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + public Double getPercentMemoryUsage() { + return percentMemoryUsage; + } + + /** + * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise + * + */ + @JsonProperty("percentMemoryUsage") + public void setPercentMemoryUsage(Double percentMemoryUsage) { + this.percentMemoryUsage = percentMemoryUsage; + } + + /** + * 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(memoryBuffered).append(memoryCached).append(memoryConfigured).append(memoryDemand).append(memoryFree).append(memoryLatencyAvg).append(memorySharedAvg).append(memorySlabRecl).append(memorySlabUnrecl).append(memorySwapInAvg).append(memorySwapInRateAvg).append(memorySwapOutAvg).append(memorySwapOutRateAvg).append(memorySwapUsedAvg).append(memoryUsed).append(percentMemoryUsage).append(vmIdentifier).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MemoryUsageArray) == false) { + return false; + } + MemoryUsageArray rhs = ((MemoryUsageArray) other); + return new EqualsBuilder().append(memoryBuffered, rhs.memoryBuffered).append(memoryCached, rhs.memoryCached).append(memoryConfigured, rhs.memoryConfigured).append(memoryDemand, rhs.memoryDemand).append(memoryFree, rhs.memoryFree).append(memoryLatencyAvg, rhs.memoryLatencyAvg).append(memorySharedAvg, rhs.memorySharedAvg).append(memorySlabRecl, rhs.memorySlabRecl).append(memorySlabUnrecl, rhs.memorySlabUnrecl).append(memorySwapInAvg, rhs.memorySwapInAvg).append(memorySwapInRateAvg, rhs.memorySwapInRateAvg).append(memorySwapOutAvg, rhs.memorySwapOutAvg).append(memorySwapOutRateAvg, rhs.memorySwapOutRateAvg).append(memorySwapUsedAvg, rhs.memorySwapUsedAvg).append(memoryUsed, rhs.memoryUsed).append(percentMemoryUsage, rhs.percentMemoryUsage).append(vmIdentifier, rhs.vmIdentifier).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java new file mode 100644 index 0000000..adddaaf --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/MobileFlowFields.java @@ -0,0 +1,990 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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 { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * 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 MobileFlowFields.MobileFlowFieldsVersion 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; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(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 MobileFlowFields.MobileFlowFieldsVersion getMobileFlowFieldsVersion() { + return mobileFlowFieldsVersion; + } + + /** + * version of the mobileFlowFields block + * (Required) + * + */ + @JsonProperty("mobileFlowFieldsVersion") + public void setMobileFlowFieldsVersion(MobileFlowFields.MobileFlowFieldsVersion 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); + } + + @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).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof MobileFlowFields) == false) { + return false; + } + MobileFlowFields rhs = ((MobileFlowFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(applicationType, rhs.applicationType).append(appProtocolType, rhs.appProtocolType).append(appProtocolVersion, rhs.appProtocolVersion).append(cid, rhs.cid).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(flowDirection, rhs.flowDirection).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(gtpProtocolType, rhs.gtpProtocolType).append(gtpVersion, rhs.gtpVersion).append(httpHeader, rhs.httpHeader).append(imei, rhs.imei).append(imsi, rhs.imsi).append(ipProtocolType, rhs.ipProtocolType).append(ipVersion, rhs.ipVersion).append(lac, rhs.lac).append(mcc, rhs.mcc).append(mnc, rhs.mnc).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(msisdn, rhs.msisdn).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(otherEndpointPort, rhs.otherEndpointPort).append(otherFunctionalRole, rhs.otherFunctionalRole).append(rac, rhs.rac).append(radioAccessTechnology, rhs.radioAccessTechnology).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(reportingEndpointPort, rhs.reportingEndpointPort).append(sac, rhs.sac).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(tunnelId, rhs.tunnelId).append(vlanId, rhs.vlanId).isEquals(); + } + + public enum MobileFlowFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (MobileFlowFields.MobileFlowFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private MobileFlowFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static MobileFlowFields.MobileFlowFieldsVersion fromValue(String value) { + MobileFlowFields.MobileFlowFieldsVersion 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/ves70/NicPerformanceArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java new file mode 100644 index 0000000..bb6ea1f --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NicPerformanceArray.java @@ -0,0 +1,1204 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * describes the performance and errors of an identified network interface card + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "administrativeState", + "nicIdentifier", + "operationalState", + "receivedBroadcastPacketsAccumulated", + "receivedBroadcastPacketsDelta", + "receivedDiscardedPacketsAccumulated", + "receivedDiscardedPacketsDelta", + "receivedErrorPacketsAccumulated", + "receivedErrorPacketsDelta", + "receivedMulticastPacketsAccumulated", + "receivedMulticastPacketsDelta", + "receivedOctetsAccumulated", + "receivedOctetsDelta", + "receivedTotalPacketsAccumulated", + "receivedPercentDiscard", + "receivedPercentError", + "receivedTotalPacketsDelta", + "receivedUnicastPacketsAccumulated", + "receivedUnicastPacketsDelta", + "receivedUtilization", + "speed", + "transmittedBroadcastPacketsAccumulated", + "transmittedBroadcastPacketsDelta", + "transmittedDiscardedPacketsAccumulated", + "transmittedDiscardedPacketsDelta", + "transmittedErrorPacketsAccumulated", + "transmittedErrorPacketsDelta", + "transmittedMulticastPacketsAccumulated", + "transmittedMulticastPacketsDelta", + "transmittedOctetsAccumulated", + "transmittedOctetsDelta", + "transmittedTotalPacketsAccumulated", + "transmittedTotalPacketsDelta", + "transmittedUnicastPacketsAccumulated", + "transmittedUnicastPacketsDelta", + "transmittedPercentDiscard", + "transmittedPercentError", + "transmittedUtilization", + "valuesAreSuspect" +}) +public class NicPerformanceArray { + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + @JsonPropertyDescription("administrative state") + private NicPerformanceArray.AdministrativeState administrativeState; + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + @JsonPropertyDescription("nic identification") + private String nicIdentifier; + /** + * operational state + * + */ + @JsonProperty("operationalState") + @JsonPropertyDescription("operational state") + private NicPerformanceArray.OperationalState operationalState; + /** + * 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; + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + @JsonPropertyDescription("Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double receivedPercentDiscard; + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + @JsonPropertyDescription("Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise.") + private Double receivedPercentError; + /** + * 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; + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + @JsonPropertyDescription("Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise") + private Double receivedUtilization; + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + @JsonPropertyDescription("Speed configured in mbps") + private Double speed; + /** + * 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; + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + @JsonPropertyDescription("Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double transmittedPercentDiscard; + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + @JsonPropertyDescription("Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") + private Double transmittedPercentError; + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + @JsonPropertyDescription("Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise.") + private Double transmittedUtilization; + /** + * 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 NicPerformanceArray.ValuesAreSuspect valuesAreSuspect; + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + public NicPerformanceArray.AdministrativeState getAdministrativeState() { + return administrativeState; + } + + /** + * administrative state + * + */ + @JsonProperty("administrativeState") + public void setAdministrativeState(NicPerformanceArray.AdministrativeState administrativeState) { + this.administrativeState = administrativeState; + } + + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public String getNicIdentifier() { + return nicIdentifier; + } + + /** + * nic identification + * (Required) + * + */ + @JsonProperty("nicIdentifier") + public void setNicIdentifier(String nicIdentifier) { + this.nicIdentifier = nicIdentifier; + } + + /** + * operational state + * + */ + @JsonProperty("operationalState") + public NicPerformanceArray.OperationalState getOperationalState() { + return operationalState; + } + + /** + * operational state + * + */ + @JsonProperty("operationalState") + public void setOperationalState(NicPerformanceArray.OperationalState operationalState) { + this.operationalState = operationalState; + } + + /** + * 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; + } + + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + public Double getReceivedPercentDiscard() { + return receivedPercentDiscard; + } + + /** + * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedPercentDiscard") + public void setReceivedPercentDiscard(Double receivedPercentDiscard) { + this.receivedPercentDiscard = receivedPercentDiscard; + } + + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + public Double getReceivedPercentError() { + return receivedPercentError; + } + + /** + * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("receivedPercentError") + public void setReceivedPercentError(Double receivedPercentError) { + this.receivedPercentError = receivedPercentError; + } + + /** + * 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; + } + + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + public Double getReceivedUtilization() { + return receivedUtilization; + } + + /** + * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("receivedUtilization") + public void setReceivedUtilization(Double receivedUtilization) { + this.receivedUtilization = receivedUtilization; + } + + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + public Double getSpeed() { + return speed; + } + + /** + * Speed configured in mbps + * + */ + @JsonProperty("speed") + public void setSpeed(Double speed) { + this.speed = speed; + } + + /** + * 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; + } + + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + public Double getTransmittedPercentDiscard() { + return transmittedPercentDiscard; + } + + /** + * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentDiscard") + public void setTransmittedPercentDiscard(Double transmittedPercentDiscard) { + this.transmittedPercentDiscard = transmittedPercentDiscard; + } + + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + public Double getTransmittedPercentError() { + return transmittedPercentError; + } + + /** + * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise + * + */ + @JsonProperty("transmittedPercentError") + public void setTransmittedPercentError(Double transmittedPercentError) { + this.transmittedPercentError = transmittedPercentError; + } + + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + public Double getTransmittedUtilization() { + return transmittedUtilization; + } + + /** + * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. + * + */ + @JsonProperty("transmittedUtilization") + public void setTransmittedUtilization(Double transmittedUtilization) { + this.transmittedUtilization = transmittedUtilization; + } + + /** + * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions + * (Required) + * + */ + @JsonProperty("valuesAreSuspect") + public NicPerformanceArray.ValuesAreSuspect getValuesAreSuspect() { + return valuesAreSuspect; + } + + /** + * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions + * (Required) + * + */ + @JsonProperty("valuesAreSuspect") + public void setValuesAreSuspect(NicPerformanceArray.ValuesAreSuspect valuesAreSuspect) { + this.valuesAreSuspect = valuesAreSuspect; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(administrativeState).append(nicIdentifier).append(operationalState).append(receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta).append(receivedOctetsAccumulated).append(receivedOctetsDelta).append(receivedTotalPacketsAccumulated).append(receivedPercentDiscard).append(receivedPercentError).append(receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta).append(receivedUtilization).append(speed).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(transmittedPercentDiscard).append(transmittedPercentError).append(transmittedUtilization).append(valuesAreSuspect).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof NicPerformanceArray) == false) { + return false; + } + NicPerformanceArray rhs = ((NicPerformanceArray) other); + return new EqualsBuilder().append(administrativeState, rhs.administrativeState).append(nicIdentifier, rhs.nicIdentifier).append(operationalState, rhs.operationalState).append(receivedBroadcastPacketsAccumulated, rhs.receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta, rhs.receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated, rhs.receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta, rhs.receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated, rhs.receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta, rhs.receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated, rhs.receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta, rhs.receivedMulticastPacketsDelta).append(receivedOctetsAccumulated, rhs.receivedOctetsAccumulated).append(receivedOctetsDelta, rhs.receivedOctetsDelta).append(receivedTotalPacketsAccumulated, rhs.receivedTotalPacketsAccumulated).append(receivedPercentDiscard, rhs.receivedPercentDiscard).append(receivedPercentError, rhs.receivedPercentError).append(receivedTotalPacketsDelta, rhs.receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated, rhs.receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta, rhs.receivedUnicastPacketsDelta).append(receivedUtilization, rhs.receivedUtilization).append(speed, rhs.speed).append(transmittedBroadcastPacketsAccumulated, rhs.transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta, rhs.transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated, rhs.transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta, rhs.transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated, rhs.transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta, rhs.transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated, rhs.transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta, rhs.transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated, rhs.transmittedOctetsAccumulated).append(transmittedOctetsDelta, rhs.transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated, rhs.transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta, rhs.transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated, rhs.transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta, rhs.transmittedUnicastPacketsDelta).append(transmittedPercentDiscard, rhs.transmittedPercentDiscard).append(transmittedPercentError, rhs.transmittedPercentError).append(transmittedUtilization, rhs.transmittedUtilization).append(valuesAreSuspect, rhs.valuesAreSuspect).isEquals(); + } + + public enum AdministrativeState { + + IN_SERVICE("inService"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.AdministrativeState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private AdministrativeState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NicPerformanceArray.AdministrativeState fromValue(String value) { + NicPerformanceArray.AdministrativeState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum OperationalState { + + IN_SERVICE("inService"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.OperationalState c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private OperationalState(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NicPerformanceArray.OperationalState fromValue(String value) { + NicPerformanceArray.OperationalState constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + public enum ValuesAreSuspect { + + TRUE("true"), + FALSE("false"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NicPerformanceArray.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 NicPerformanceArray.ValuesAreSuspect fromValue(String value) { + NicPerformanceArray.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/ves70/NotificationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java new file mode 100644 index 0000000..59a50a2 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/NotificationFields.java @@ -0,0 +1,350 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * notification fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "arrayOfNamedHashMap", + "changeContact", + "changeIdentifier", + "changeType", + "newState", + "oldState", + "notificationFieldsVersion", + "stateInterface" +}) +public class NotificationFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + @JsonPropertyDescription("array of named hashMaps") + private List arrayOfNamedHashMap = new ArrayList(); + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + @JsonPropertyDescription("identifier for a contact related to the change") + private String changeContact; + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + @JsonPropertyDescription("system or session identifier associated with the change") + private String changeIdentifier; + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + @JsonPropertyDescription("describes what has changed for the entity") + private String changeType; + /** + * new state of the entity + * + */ + @JsonProperty("newState") + @JsonPropertyDescription("new state of the entity") + private String newState; + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + @JsonPropertyDescription("previous state of the entity") + private String oldState; + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + @JsonPropertyDescription("version of the notificationFields block") + private NotificationFields.NotificationFieldsVersion notificationFieldsVersion; + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + @JsonPropertyDescription("card or port name of the entity that changed state") + private String stateInterface; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public List getArrayOfNamedHashMap() { + return arrayOfNamedHashMap; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { + this.arrayOfNamedHashMap = arrayOfNamedHashMap; + } + + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + public String getChangeContact() { + return changeContact; + } + + /** + * identifier for a contact related to the change + * + */ + @JsonProperty("changeContact") + public void setChangeContact(String changeContact) { + this.changeContact = changeContact; + } + + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + public String getChangeIdentifier() { + return changeIdentifier; + } + + /** + * system or session identifier associated with the change + * (Required) + * + */ + @JsonProperty("changeIdentifier") + public void setChangeIdentifier(String changeIdentifier) { + this.changeIdentifier = changeIdentifier; + } + + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + public String getChangeType() { + return changeType; + } + + /** + * describes what has changed for the entity + * (Required) + * + */ + @JsonProperty("changeType") + public void setChangeType(String changeType) { + this.changeType = changeType; + } + + /** + * new state of the entity + * + */ + @JsonProperty("newState") + public String getNewState() { + return newState; + } + + /** + * new state of the entity + * + */ + @JsonProperty("newState") + public void setNewState(String newState) { + this.newState = newState; + } + + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + public String getOldState() { + return oldState; + } + + /** + * previous state of the entity + * + */ + @JsonProperty("oldState") + public void setOldState(String oldState) { + this.oldState = oldState; + } + + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + public NotificationFields.NotificationFieldsVersion getNotificationFieldsVersion() { + return notificationFieldsVersion; + } + + /** + * version of the notificationFields block + * (Required) + * + */ + @JsonProperty("notificationFieldsVersion") + public void setNotificationFieldsVersion(NotificationFields.NotificationFieldsVersion notificationFieldsVersion) { + this.notificationFieldsVersion = notificationFieldsVersion; + } + + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + public String getStateInterface() { + return stateInterface; + } + + /** + * card or port name of the entity that changed state + * + */ + @JsonProperty("stateInterface") + public void setStateInterface(String stateInterface) { + this.stateInterface = stateInterface; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(arrayOfNamedHashMap).append(changeContact).append(changeIdentifier).append(changeType).append(newState).append(oldState).append(notificationFieldsVersion).append(stateInterface).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof NotificationFields) == false) { + return false; + } + NotificationFields rhs = ((NotificationFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(changeContact, rhs.changeContact).append(changeIdentifier, rhs.changeIdentifier).append(changeType, rhs.changeType).append(newState, rhs.newState).append(oldState, rhs.oldState).append(notificationFieldsVersion, rhs.notificationFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); + } + + public enum NotificationFieldsVersion { + + _2_0("2.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (NotificationFields.NotificationFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private NotificationFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static NotificationFields.NotificationFieldsVersion fromValue(String value) { + NotificationFields.NotificationFieldsVersion 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/ves70/ObjectInstance.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java new file mode 100644 index 0000000..aab83f0 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectInstance.java @@ -0,0 +1,169 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.List; +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * meta-information about an instance of a jsonObject along with the actual object instance + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "jsonObject", + "objectInstance", + "objectInstanceEpochMicrosec", + "objectKeys" +}) +public class ObjectInstance { + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + @JsonPropertyDescription("json object schema, name and other meta-information along with one or more object instances") + private AdditionalObject jsonObject; + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @JsonProperty("objectInstance") + @JsonPropertyDescription("an instance conforming to the jsonObject objectSchema") + 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 objectKeys = new ArrayList(); + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + public AdditionalObject getJsonObject() { + return jsonObject; + } + + /** + * json object schema, name and other meta-information along with one or more object instances + * + */ + @JsonProperty("jsonObject") + public void setJsonObject(AdditionalObject jsonObject) { + this.jsonObject = jsonObject; + } + + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @JsonProperty("objectInstance") + public ObjectInstance getObjectInstance() { + return objectInstance; + } + + /** + * an instance conforming to the jsonObject objectSchema + * + */ + @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 getObjectKeys() { + return objectKeys; + } + + /** + * an ordered set of keys that identifies this particular instance of jsonObject + * + */ + @JsonProperty("objectKeys") + public void setObjectKeys(List objectKeys) { + this.objectKeys = objectKeys; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(jsonObject).append(objectInstance).append(objectInstanceEpochMicrosec).append(objectKeys).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ObjectInstance) == false) { + return false; + } + ObjectInstance rhs = ((ObjectInstance) other); + return new EqualsBuilder().append(jsonObject, rhs.jsonObject).append(objectInstance, rhs.objectInstance).append(objectInstanceEpochMicrosec, rhs.objectInstanceEpochMicrosec).append(objectKeys, rhs.objectKeys).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java new file mode 100644 index 0000000..b75927b --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ObjectKey.java @@ -0,0 +1,144 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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; + + /** + * 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(keyName).append(keyOrder).append(keyValue).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ObjectKey) == false) { + return false; + } + ObjectKey rhs = ((ObjectKey) other); + return new EqualsBuilder().append(keyName, rhs.keyName).append(keyOrder, rhs.keyOrder).append(keyValue, rhs.keyValue).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java new file mode 100644 index 0000000..322c023 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/OtherFields.java @@ -0,0 +1,214 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "arrayOfNamedHashMap", + "hashMap", + "jsonObjects", + "otherFieldsVersion" +}) +public class OtherFields { + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + @JsonPropertyDescription("array of named hashMaps") + private List arrayOfNamedHashMap = new ArrayList(); + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation hashMap; + /** + * 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 jsonObjects = new ArrayList(); + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + @JsonPropertyDescription("version of the otherFields block") + private OtherFields.OtherFieldsVersion otherFieldsVersion; + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public List getArrayOfNamedHashMap() { + return arrayOfNamedHashMap; + } + + /** + * array of named hashMaps + * + */ + @JsonProperty("arrayOfNamedHashMap") + public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { + this.arrayOfNamedHashMap = arrayOfNamedHashMap; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + public AlarmAdditionalInformation getHashMap() { + return hashMap; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("hashMap") + public void setHashMap(AlarmAdditionalInformation hashMap) { + this.hashMap = hashMap; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("jsonObjects") + public List getJsonObjects() { + return jsonObjects; + } + + /** + * array of json objects described by name, schema and other meta-information + * + */ + @JsonProperty("jsonObjects") + public void setJsonObjects(List jsonObjects) { + this.jsonObjects = jsonObjects; + } + + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + public OtherFields.OtherFieldsVersion getOtherFieldsVersion() { + return otherFieldsVersion; + } + + /** + * version of the otherFields block + * (Required) + * + */ + @JsonProperty("otherFieldsVersion") + public void setOtherFieldsVersion(OtherFields.OtherFieldsVersion otherFieldsVersion) { + this.otherFieldsVersion = otherFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(arrayOfNamedHashMap).append(hashMap).append(jsonObjects).append(otherFieldsVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof OtherFields) == false) { + return false; + } + OtherFields rhs = ((OtherFields) other); + return new EqualsBuilder().append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(hashMap, rhs.hashMap).append(jsonObjects, rhs.jsonObjects).append(otherFieldsVersion, rhs.otherFieldsVersion).isEquals(); + } + + public enum OtherFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (OtherFields.OtherFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private OtherFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static OtherFields.OtherFieldsVersion fromValue(String value) { + OtherFields.OtherFieldsVersion 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/ves70/PnfRegistrationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java new file mode 100644 index 0000000..979a1b9 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/PnfRegistrationFields.java @@ -0,0 +1,446 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * hardware device registration fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "lastServiceDate", + "macAddress", + "manufactureDate", + "modelNumber", + "oamV4IpAddress", + "oamV6IpAddress", + "pnfRegistrationFieldsVersion", + "serialNumber", + "softwareVersion", + "unitFamily", + "unitType", + "vendorName" +}) +public class PnfRegistrationFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017") + private String lastServiceDate; + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + @JsonPropertyDescription("MAC address of OAM interface of the unit") + private String macAddress; + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016") + private String manufactureDate; + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model") + private String modelNumber; + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF") + private String oamV4IpAddress; + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF") + private String oamV6IpAddress; + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + @JsonPropertyDescription("version of the pnfRegistrationFields block") + private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion; + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3") + private String serialNumber; + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201") + private String softwareVersion; + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU") + private String unitFamily; + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale") + private String unitType; + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor") + private String vendorName; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + public String getLastServiceDate() { + return lastServiceDate; + } + + /** + * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 + * + */ + @JsonProperty("lastServiceDate") + public void setLastServiceDate(String lastServiceDate) { + this.lastServiceDate = lastServiceDate; + } + + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + public String getMacAddress() { + return macAddress; + } + + /** + * MAC address of OAM interface of the unit + * + */ + @JsonProperty("macAddress") + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + public String getManufactureDate() { + return manufactureDate; + } + + /** + * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 + * + */ + @JsonProperty("manufactureDate") + public void setManufactureDate(String manufactureDate) { + this.manufactureDate = manufactureDate; + } + + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + public String getModelNumber() { + return modelNumber; + } + + /** + * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model + * + */ + @JsonProperty("modelNumber") + public void setModelNumber(String modelNumber) { + this.modelNumber = modelNumber; + } + + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + public String getOamV4IpAddress() { + return oamV4IpAddress; + } + + /** + * IPv4 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV4IpAddress") + public void setOamV4IpAddress(String oamV4IpAddress) { + this.oamV4IpAddress = oamV4IpAddress; + } + + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + public String getOamV6IpAddress() { + return oamV6IpAddress; + } + + /** + * IPv6 m-plane IP address to be used by the manager to contact the PNF + * + */ + @JsonProperty("oamV6IpAddress") + public void setOamV6IpAddress(String oamV6IpAddress) { + this.oamV6IpAddress = oamV6IpAddress; + } + + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() { + return pnfRegistrationFieldsVersion; + } + + /** + * version of the pnfRegistrationFields block + * (Required) + * + */ + @JsonProperty("pnfRegistrationFieldsVersion") + public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) { + this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion; + } + + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + public String getSerialNumber() { + return serialNumber; + } + + /** + * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 + * + */ + @JsonProperty("serialNumber") + public void setSerialNumber(String serialNumber) { + this.serialNumber = serialNumber; + } + + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + public String getSoftwareVersion() { + return softwareVersion; + } + + /** + * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 + * + */ + @JsonProperty("softwareVersion") + public void setSoftwareVersion(String softwareVersion) { + this.softwareVersion = softwareVersion; + } + + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + public String getUnitFamily() { + return unitFamily; + } + + /** + * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU + * + */ + @JsonProperty("unitFamily") + public void setUnitFamily(String unitFamily) { + this.unitFamily = unitFamily; + } + + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + public String getUnitType() { + return unitType; + } + + /** + * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale + * + */ + @JsonProperty("unitType") + public void setUnitType(String unitType) { + this.unitType = unitType; + } + + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + public String getVendorName() { + return vendorName; + } + + /** + * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor + * + */ + @JsonProperty("vendorName") + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof PnfRegistrationFields) == false) { + return false; + } + PnfRegistrationFields rhs = ((PnfRegistrationFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals(); + } + + public enum PnfRegistrationFieldsVersion { + + _2_0("2.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private PnfRegistrationFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) { + PnfRegistrationFields.PnfRegistrationFieldsVersion 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/ves70/ProcessStatsArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java new file mode 100644 index 0000000..3e24c3a --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessStatsArray.java @@ -0,0 +1,274 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * metrics on system processes + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "forkRate", + "processIdentifier", + "psStateBlocked", + "psStatePaging", + "psStateRunning", + "psStateSleeping", + "psStateStopped", + "psStateZombie" +}) +public class ProcessStatsArray { + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + @JsonPropertyDescription("the number of threads created since the last reboot") + private Double forkRate; + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + @JsonPropertyDescription("processIdentifier") + private String processIdentifier; + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + @JsonPropertyDescription("the number of processes in a blocked state") + private Double psStateBlocked; + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + @JsonPropertyDescription("the number of processes in a paging state") + private Double psStatePaging; + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + @JsonPropertyDescription("the number of processes in a running state") + private Double psStateRunning; + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + @JsonPropertyDescription("the number of processes in a sleeping state") + private Double psStateSleeping; + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + @JsonPropertyDescription("the number of processes in a stopped state") + private Double psStateStopped; + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + @JsonPropertyDescription("the number of processes in a zombie state") + private Double psStateZombie; + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + public Double getForkRate() { + return forkRate; + } + + /** + * the number of threads created since the last reboot + * + */ + @JsonProperty("forkRate") + public void setForkRate(Double forkRate) { + this.forkRate = forkRate; + } + + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + public String getProcessIdentifier() { + return processIdentifier; + } + + /** + * processIdentifier + * (Required) + * + */ + @JsonProperty("processIdentifier") + public void setProcessIdentifier(String processIdentifier) { + this.processIdentifier = processIdentifier; + } + + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + public Double getPsStateBlocked() { + return psStateBlocked; + } + + /** + * the number of processes in a blocked state + * + */ + @JsonProperty("psStateBlocked") + public void setPsStateBlocked(Double psStateBlocked) { + this.psStateBlocked = psStateBlocked; + } + + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + public Double getPsStatePaging() { + return psStatePaging; + } + + /** + * the number of processes in a paging state + * + */ + @JsonProperty("psStatePaging") + public void setPsStatePaging(Double psStatePaging) { + this.psStatePaging = psStatePaging; + } + + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + public Double getPsStateRunning() { + return psStateRunning; + } + + /** + * the number of processes in a running state + * + */ + @JsonProperty("psStateRunning") + public void setPsStateRunning(Double psStateRunning) { + this.psStateRunning = psStateRunning; + } + + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + public Double getPsStateSleeping() { + return psStateSleeping; + } + + /** + * the number of processes in a sleeping state + * + */ + @JsonProperty("psStateSleeping") + public void setPsStateSleeping(Double psStateSleeping) { + this.psStateSleeping = psStateSleeping; + } + + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + public Double getPsStateStopped() { + return psStateStopped; + } + + /** + * the number of processes in a stopped state + * + */ + @JsonProperty("psStateStopped") + public void setPsStateStopped(Double psStateStopped) { + this.psStateStopped = psStateStopped; + } + + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + public Double getPsStateZombie() { + return psStateZombie; + } + + /** + * the number of processes in a zombie state + * + */ + @JsonProperty("psStateZombie") + public void setPsStateZombie(Double psStateZombie) { + this.psStateZombie = psStateZombie; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(forkRate).append(processIdentifier).append(psStateBlocked).append(psStatePaging).append(psStateRunning).append(psStateSleeping).append(psStateStopped).append(psStateZombie).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ProcessStatsArray) == false) { + return false; + } + ProcessStatsArray rhs = ((ProcessStatsArray) other); + return new EqualsBuilder().append(forkRate, rhs.forkRate).append(processIdentifier, rhs.processIdentifier).append(psStateBlocked, rhs.psStateBlocked).append(psStatePaging, rhs.psStatePaging).append(psStateRunning, rhs.psStateRunning).append(psStateSleeping, rhs.psStateSleeping).append(psStateStopped, rhs.psStateStopped).append(psStateZombie, rhs.psStateZombie).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.java new file mode 100644 index 0000000..e5c5de6 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ProcessorDimmAggregateThermalMarginArray.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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * intelligent platform management interface (ipmi) processor dual inline memory module aggregate thermal margin metrics + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "processorDimmAggregateThermalMarginIdentifier", + "thermalMargin" +}) +public class ProcessorDimmAggregateThermalMarginArray { + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + @JsonPropertyDescription("identifier for the aggregate thermal margin metrics from the processor dual inline memory module") + private String processorDimmAggregateThermalMarginIdentifier; + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + @JsonPropertyDescription("the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point") + private Double thermalMargin; + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + public String getProcessorDimmAggregateThermalMarginIdentifier() { + return processorDimmAggregateThermalMarginIdentifier; + } + + /** + * identifier for the aggregate thermal margin metrics from the processor dual inline memory module + * (Required) + * + */ + @JsonProperty("processorDimmAggregateThermalMarginIdentifier") + public void setProcessorDimmAggregateThermalMarginIdentifier(String processorDimmAggregateThermalMarginIdentifier) { + this.processorDimmAggregateThermalMarginIdentifier = processorDimmAggregateThermalMarginIdentifier; + } + + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + public Double getThermalMargin() { + return thermalMargin; + } + + /** + * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point + * (Required) + * + */ + @JsonProperty("thermalMargin") + public void setThermalMargin(Double thermalMargin) { + this.thermalMargin = thermalMargin; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(processorDimmAggregateThermalMarginIdentifier).append(thermalMargin).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ProcessorDimmAggregateThermalMarginArray) == false) { + return false; + } + ProcessorDimmAggregateThermalMarginArray rhs = ((ProcessorDimmAggregateThermalMarginArray) other); + return new EqualsBuilder().append(processorDimmAggregateThermalMarginIdentifier, rhs.processorDimmAggregateThermalMarginIdentifier).append(thermalMargin, rhs.thermalMargin).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java new file mode 100644 index 0000000..9f68b08 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SipSignalingFields.java @@ -0,0 +1,386 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * sip signaling fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalInformation", + "compressedSip", + "correlator", + "localIpAddress", + "localPort", + "remoteIpAddress", + "remotePort", + "sipSignalingFieldsVersion", + "summarySip", + "vendorNfNameFields" +}) +public class SipSignalingFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalInformation; + /** + * 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 xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + @JsonPropertyDescription("IP address on xNF") + private String localIpAddress; + /** + * port on xNF + * (Required) + * + */ + @JsonProperty("localPort") + @JsonPropertyDescription("port on xNF") + 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 SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion; + /** + * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) + * + */ + @JsonProperty("summarySip") + @JsonPropertyDescription("the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)") + private String summarySip; + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") + private VendorNfNameFields vendorNfNameFields; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public AlarmAdditionalInformation getAdditionalInformation() { + return additionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public void setAdditionalInformation(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 xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + public String getLocalIpAddress() { + return localIpAddress; + } + + /** + * IP address on xNF + * (Required) + * + */ + @JsonProperty("localIpAddress") + public void setLocalIpAddress(String localIpAddress) { + this.localIpAddress = localIpAddress; + } + + /** + * port on xNF + * (Required) + * + */ + @JsonProperty("localPort") + public String getLocalPort() { + return localPort; + } + + /** + * port on xNF + * (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 SipSignalingFields.SipSignalingFieldsVersion getSipSignalingFieldsVersion() { + return sipSignalingFieldsVersion; + } + + /** + * version of the sipSignalingFields block + * (Required) + * + */ + @JsonProperty("sipSignalingFieldsVersion") + public void setSipSignalingFieldsVersion(SipSignalingFields.SipSignalingFieldsVersion 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, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public VendorNfNameFields getVendorNfNameFields() { + return vendorNfNameFields; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { + this.vendorNfNameFields = vendorNfNameFields; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @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(vendorNfNameFields).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof SipSignalingFields) == false) { + return false; + } + SipSignalingFields rhs = ((SipSignalingFields) other); + return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(compressedSip, rhs.compressedSip).append(correlator, rhs.correlator).append(localIpAddress, rhs.localIpAddress).append(localPort, rhs.localPort).append(remoteIpAddress, rhs.remoteIpAddress).append(remotePort, rhs.remotePort).append(sipSignalingFieldsVersion, rhs.sipSignalingFieldsVersion).append(summarySip, rhs.summarySip).append(vendorNfNameFields, rhs.vendorNfNameFields).isEquals(); + } + + public enum SipSignalingFieldsVersion { + + _3_0("3.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (SipSignalingFields.SipSignalingFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private SipSignalingFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static SipSignalingFields.SipSignalingFieldsVersion fromValue(String value) { + SipSignalingFields.SipSignalingFieldsVersion 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/ves70/StateChangeFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java new file mode 100644 index 0000000..5aa0626 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/StateChangeFields.java @@ -0,0 +1,327 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * stateChange fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "newState", + "oldState", + "stateChangeFieldsVersion", + "stateInterface" +}) +public class StateChangeFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * 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 StateChangeFields.StateChangeFieldsVersion 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; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(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 StateChangeFields.StateChangeFieldsVersion getStateChangeFieldsVersion() { + return stateChangeFieldsVersion; + } + + /** + * version of the stateChangeFields block + * (Required) + * + */ + @JsonProperty("stateChangeFieldsVersion") + public void setStateChangeFieldsVersion(StateChangeFields.StateChangeFieldsVersion 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(newState).append(oldState).append(stateChangeFieldsVersion).append(stateInterface).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof StateChangeFields) == false) { + return false; + } + StateChangeFields rhs = ((StateChangeFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(newState, rhs.newState).append(oldState, rhs.oldState).append(stateChangeFieldsVersion, rhs.stateChangeFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); + } + + public enum NewState { + + IN_SERVICE("inService"), + MAINTENANCE("maintenance"), + OUT_OF_SERVICE("outOfService"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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 CONSTANTS = new HashMap(); + + 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; + } + } + + } + + public enum StateChangeFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (StateChangeFields.StateChangeFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private StateChangeFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static StateChangeFields.StateChangeFieldsVersion fromValue(String value) { + StateChangeFields.StateChangeFieldsVersion 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/ves70/SyslogFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java new file mode 100644 index 0000000..ed9f6c9 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/SyslogFields.java @@ -0,0 +1,578 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * sysLog fields + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalFields", + "eventSourceHost", + "eventSourceType", + "syslogFacility", + "syslogFieldsVersion", + "syslogMsg", + "syslogMsgHost", + "syslogPri", + "syslogProc", + "syslogProcId", + "syslogSData", + "syslogSdId", + "syslogSev", + "syslogTag", + "syslogTs", + "syslogVer" +}) +public class SyslogFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation 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 SyslogFields.SyslogFieldsVersion syslogFieldsVersion; + /** + * syslog message + * (Required) + * + */ + @JsonProperty("syslogMsg") + @JsonPropertyDescription("syslog message") + private String syslogMsg; + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + @JsonPropertyDescription("hostname parsed from non-VES syslog message") + private String syslogMsgHost; + /** + * 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; + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + @JsonPropertyDescription("timestamp parsed from non-VES syslog message") + private String syslogTs; + /** + * 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; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation 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 SyslogFields.SyslogFieldsVersion getSyslogFieldsVersion() { + return syslogFieldsVersion; + } + + /** + * version of the syslogFields block + * (Required) + * + */ + @JsonProperty("syslogFieldsVersion") + public void setSyslogFieldsVersion(SyslogFields.SyslogFieldsVersion 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; + } + + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + public String getSyslogMsgHost() { + return syslogMsgHost; + } + + /** + * hostname parsed from non-VES syslog message + * + */ + @JsonProperty("syslogMsgHost") + public void setSyslogMsgHost(String syslogMsgHost) { + this.syslogMsgHost = syslogMsgHost; + } + + /** + * 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; + } + + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + public String getSyslogTs() { + return syslogTs; + } + + /** + * timestamp parsed from non-VES syslog message + * + */ + @JsonProperty("syslogTs") + public void setSyslogTs(String syslogTs) { + this.syslogTs = syslogTs; + } + + /** + * 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); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalFields).append(eventSourceHost).append(eventSourceType).append(syslogFacility).append(syslogFieldsVersion).append(syslogMsg).append(syslogMsgHost).append(syslogPri).append(syslogProc).append(syslogProcId).append(syslogSData).append(syslogSdId).append(syslogSev).append(syslogTag).append(syslogTs).append(syslogVer).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof SyslogFields) == false) { + return false; + } + SyslogFields rhs = ((SyslogFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(eventSourceHost, rhs.eventSourceHost).append(eventSourceType, rhs.eventSourceType).append(syslogFacility, rhs.syslogFacility).append(syslogFieldsVersion, rhs.syslogFieldsVersion).append(syslogMsg, rhs.syslogMsg).append(syslogMsgHost, rhs.syslogMsgHost).append(syslogPri, rhs.syslogPri).append(syslogProc, rhs.syslogProc).append(syslogProcId, rhs.syslogProcId).append(syslogSData, rhs.syslogSData).append(syslogSdId, rhs.syslogSdId).append(syslogSev, rhs.syslogSev).append(syslogTag, rhs.syslogTag).append(syslogTs, rhs.syslogTs).append(syslogVer, rhs.syslogVer).isEquals(); + } + + public enum SyslogFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (SyslogFields.SyslogFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private SyslogFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static SyslogFields.SyslogFieldsVersion fromValue(String value) { + SyslogFields.SyslogFieldsVersion constant = CONSTANTS.get(value); + if (constant == null) { + throw new IllegalArgumentException(value); + } else { + return constant; + } + } + + } + + 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 CONSTANTS = new HashMap(); + + 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/ves70/ThresholdCrossingAlertFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java new file mode 100644 index 0000000..ee096e4 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/ThresholdCrossingAlertFields.java @@ -0,0 +1,670 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * 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 { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalFields; + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + @JsonPropertyDescription("performance counters") + private List additionalParameters = new ArrayList(); + /** + * 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 associatedAlertIdList = new ArrayList(); + /** + * 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 ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public AlarmAdditionalInformation getAdditionalFields() { + return additionalFields; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalFields") + public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { + this.additionalFields = additionalFields; + } + + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + public List getAdditionalParameters() { + return additionalParameters; + } + + /** + * performance counters + * (Required) + * + */ + @JsonProperty("additionalParameters") + public void setAdditionalParameters(List 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 getAssociatedAlertIdList() { + return associatedAlertIdList; + } + + /** + * List of eventIds associated with the event being reported + * + */ + @JsonProperty("associatedAlertIdList") + public void setAssociatedAlertIdList(List 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 ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion getThresholdCrossingFieldsVersion() { + return thresholdCrossingFieldsVersion; + } + + /** + * version of the thresholdCrossingAlertFields block + * (Required) + * + */ + @JsonProperty("thresholdCrossingFieldsVersion") + public void setThresholdCrossingFieldsVersion(ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion) { + this.thresholdCrossingFieldsVersion = thresholdCrossingFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @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).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof ThresholdCrossingAlertFields) == false) { + return false; + } + ThresholdCrossingAlertFields rhs = ((ThresholdCrossingAlertFields) other); + return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalParameters, rhs.additionalParameters).append(alertAction, rhs.alertAction).append(alertDescription, rhs.alertDescription).append(alertType, rhs.alertType).append(alertValue, rhs.alertValue).append(associatedAlertIdList, rhs.associatedAlertIdList).append(collectionTimestamp, rhs.collectionTimestamp).append(dataCollector, rhs.dataCollector).append(elementType, rhs.elementType).append(eventSeverity, rhs.eventSeverity).append(eventStartTimestamp, rhs.eventStartTimestamp).append(interfaceName, rhs.interfaceName).append(networkService, rhs.networkService).append(possibleRootCause, rhs.possibleRootCause).append(thresholdCrossingFieldsVersion, rhs.thresholdCrossingFieldsVersion).isEquals(); + } + + public enum AlertAction { + + CLEAR("CLEAR"), + CONT("CONT"), + SET("SET"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + 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 CONSTANTS = new HashMap(); + + 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 CONSTANTS = new HashMap(); + + 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; + } + } + + } + + public enum ThresholdCrossingFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private ThresholdCrossingFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion fromValue(String value) { + ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion 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/ves70/VendorNfNameFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java new file mode 100644 index 0000000..f355cc7 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VendorNfNameFields.java @@ -0,0 +1,144 @@ +/* +* ============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.ves70; + +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 org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides vendor, nf and nfModule identifying information + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "vendorName", + "nfModuleName", + "nfName" +}) +public class VendorNfNameFields { + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + @JsonPropertyDescription("network function vendor name") + private String vendorName; + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + @JsonPropertyDescription("name of the nfModule generating the event") + private String nfModuleName; + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + @JsonPropertyDescription("name of the network function generating the event") + private String nfName; + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + public String getVendorName() { + return vendorName; + } + + /** + * network function vendor name + * (Required) + * + */ + @JsonProperty("vendorName") + public void setVendorName(String vendorName) { + this.vendorName = vendorName; + } + + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + public String getNfModuleName() { + return nfModuleName; + } + + /** + * name of the nfModule generating the event + * + */ + @JsonProperty("nfModuleName") + public void setNfModuleName(String nfModuleName) { + this.nfModuleName = nfModuleName; + } + + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + public String getNfName() { + return nfName; + } + + /** + * name of the network function generating the event + * + */ + @JsonProperty("nfName") + public void setNfName(String nfName) { + this.nfName = nfName; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VendorNfNameFields) == false) { + return false; + } + VendorNfNameFields rhs = ((VendorNfNameFields) other); + return new EqualsBuilder().append(vendorName, rhs.vendorName).append(nfModuleName, rhs.nfModuleName).append(nfName, rhs.nfName).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java new file mode 100644 index 0000000..b48d50a --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VesEvent.java @@ -0,0 +1,116 @@ +/* +* ============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.ves70; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * VES Event Listener Common Event Format + *

+ * + * + */ +@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 additionalProperties = new HashMap(); + + /** + * 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 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(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VesEvent) == false) { + return false; + } + VesEvent rhs = ((VesEvent) other); + return new EqualsBuilder().append(event, rhs.event).append(additionalProperties, rhs.additionalProperties).isEquals(); + } + +} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java new file mode 100644 index 0000000..0304b92 --- /dev/null +++ b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves70/VoiceQualityFields.java @@ -0,0 +1,357 @@ +/* +* ============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.ves70; + +import java.util.HashMap; +import java.util.Map; +import com.fasterxml.jackson.annotation.JsonCreator; +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; +import org.apache.commons.lang.builder.EqualsBuilder; +import org.apache.commons.lang.builder.HashCodeBuilder; +import org.apache.commons.lang.builder.ToStringBuilder; + + +/** + * provides statistics related to customer facing voice products + * + */ +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonPropertyOrder({ + "additionalInformation", + "calleeSideCodec", + "callerSideCodec", + "correlator", + "endOfCallVqmSummaries", + "phoneNumber", + "midCallRtcp", + "vendorNfNameFields", + "voiceQualityFieldsVersion" +}) +public class VoiceQualityFields { + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + @JsonPropertyDescription("an associative array which is an array of key:value pairs") + private AlarmAdditionalInformation additionalInformation; + /** + * 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, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") + private VendorNfNameFields vendorNfNameFields; + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + @JsonPropertyDescription("version of the voiceQualityFields block") + private VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion; + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public AlarmAdditionalInformation getAdditionalInformation() { + return additionalInformation; + } + + /** + * an associative array which is an array of key:value pairs + * + */ + @JsonProperty("additionalInformation") + public void setAdditionalInformation(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, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public VendorNfNameFields getVendorNfNameFields() { + return vendorNfNameFields; + } + + /** + * provides vendor, nf and nfModule identifying information + * (Required) + * + */ + @JsonProperty("vendorNfNameFields") + public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { + this.vendorNfNameFields = vendorNfNameFields; + } + + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + public VoiceQualityFields.VoiceQualityFieldsVersion getVoiceQualityFieldsVersion() { + return voiceQualityFieldsVersion; + } + + /** + * version of the voiceQualityFields block + * (Required) + * + */ + @JsonProperty("voiceQualityFieldsVersion") + public void setVoiceQualityFieldsVersion(VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion) { + this.voiceQualityFieldsVersion = voiceQualityFieldsVersion; + } + + @Override + public String toString() { + return ToStringBuilder.reflectionToString(this); + } + + @Override + public int hashCode() { + return new HashCodeBuilder().append(additionalInformation).append(calleeSideCodec).append(callerSideCodec).append(correlator).append(endOfCallVqmSummaries).append(phoneNumber).append(midCallRtcp).append(vendorNfNameFields).append(voiceQualityFieldsVersion).toHashCode(); + } + + @Override + public boolean equals(Object other) { + if (other == this) { + return true; + } + if ((other instanceof VoiceQualityFields) == false) { + return false; + } + VoiceQualityFields rhs = ((VoiceQualityFields) other); + return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(calleeSideCodec, rhs.calleeSideCodec).append(callerSideCodec, rhs.callerSideCodec).append(correlator, rhs.correlator).append(endOfCallVqmSummaries, rhs.endOfCallVqmSummaries).append(phoneNumber, rhs.phoneNumber).append(midCallRtcp, rhs.midCallRtcp).append(vendorNfNameFields, rhs.vendorNfNameFields).append(voiceQualityFieldsVersion, rhs.voiceQualityFieldsVersion).isEquals(); + } + + public enum VoiceQualityFieldsVersion { + + _4_0("4.0"); + private final String value; + private final static Map CONSTANTS = new HashMap(); + + static { + for (VoiceQualityFields.VoiceQualityFieldsVersion c: values()) { + CONSTANTS.put(c.value, c); + } + } + + private VoiceQualityFieldsVersion(String value) { + this.value = value; + } + + @Override + public String toString() { + return this.value; + } + + @JsonValue + public String value() { + return this.value; + } + + @JsonCreator + public static VoiceQualityFields.VoiceQualityFieldsVersion fromValue(String value) { + VoiceQualityFields.VoiceQualityFieldsVersion 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/ves7_0/AdditionalMeasurement.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java deleted file mode 100644 index b7d3dce..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalMeasurement.java +++ /dev/null @@ -1,120 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * a hashMap which is associated with and described by a name - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "name", - "hashMap" -}) -public class AdditionalMeasurement { - - /** - * - * (Required) - * - */ - @JsonProperty("name") - private String name; - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - - /** - * - * (Required) - * - */ - @JsonProperty("name") - public String getName() { - return name; - } - - /** - * - * (Required) - * - */ - @JsonProperty("name") - public void setName(String name) { - this.name = name; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(name).append(hashMap).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalMeasurement) == false) { - return false; - } - AdditionalMeasurement rhs = ((AdditionalMeasurement) other); - return new EqualsBuilder().append(name, rhs.name).append(hashMap, rhs.hashMap).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java deleted file mode 100644 index 9b656e2..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalObject.java +++ /dev/null @@ -1,227 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.List; -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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 objectInstances = new ArrayList(); - /** - * 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; - - /** - * one or more instances of the jsonObject - * (Required) - * - */ - @JsonProperty("objectInstances") - public List getObjectInstances() { - return objectInstances; - } - - /** - * one or more instances of the jsonObject - * (Required) - * - */ - @JsonProperty("objectInstances") - public void setObjectInstances(List 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(objectInstances).append(objectName).append(objectSchema).append(objectSchemaUrl).append(nfSubscribedObjectName).append(nfSubscriptionId).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalObject) == false) { - return false; - } - AdditionalObject rhs = ((AdditionalObject) other); - return new EqualsBuilder().append(objectInstances, rhs.objectInstances).append(objectName, rhs.objectName).append(objectSchema, rhs.objectSchema).append(objectSchemaUrl, rhs.objectSchemaUrl).append(nfSubscribedObjectName, rhs.nfSubscribedObjectName).append(nfSubscriptionId, rhs.nfSubscriptionId).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java deleted file mode 100644 index 0a8b8ab..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AdditionalParameter.java +++ /dev/null @@ -1,191 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * performance counter - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "criticality", - "hashMap", - "thresholdCrossed" -}) -public class AdditionalParameter { - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - private AdditionalParameter.Criticality criticality; - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - private String thresholdCrossed; - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - public AdditionalParameter.Criticality getCriticality() { - return criticality; - } - - /** - * - * (Required) - * - */ - @JsonProperty("criticality") - public void setCriticality(AdditionalParameter.Criticality criticality) { - this.criticality = criticality; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * (Required) - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - public String getThresholdCrossed() { - return thresholdCrossed; - } - - /** - * - * (Required) - * - */ - @JsonProperty("thresholdCrossed") - public void setThresholdCrossed(String thresholdCrossed) { - this.thresholdCrossed = thresholdCrossed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(criticality).append(hashMap).append(thresholdCrossed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AdditionalParameter) == false) { - return false; - } - AdditionalParameter rhs = ((AdditionalParameter) other); - return new EqualsBuilder().append(criticality, rhs.criticality).append(hashMap, rhs.hashMap).append(thresholdCrossed, rhs.thresholdCrossed).isEquals(); - } - - public enum Criticality { - - CRIT("CRIT"), - MAJ("MAJ"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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/ves7_0/AlarmAdditionalInformation.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java deleted file mode 100644 index caacd12..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/AlarmAdditionalInformation.java +++ /dev/null @@ -1,79 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * an associative array which is an array of key:value pairs - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - -}) -public class AlarmAdditionalInformation { - - @JsonIgnore - private Map additionalProperties = new HashMap(); - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @JsonAnyGetter - public Map getAdditionalProperties() { - return this.additionalProperties; - } - - @JsonAnySetter - public void setAdditionalProperty(String name, String value) { - this.additionalProperties.put(name, value); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalProperties).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof AlarmAdditionalInformation) == false) { - return false; - } - AlarmAdditionalInformation rhs = ((AlarmAdditionalInformation) other); - return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java deleted file mode 100644 index eda48f5..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CodecUsageArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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; - - /** - * - * (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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(codecIdentifier).append(numberInUse).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CodecUsageArray) == false) { - return false; - } - CodecUsageArray rhs = ((CodecUsageArray) other); - return new EqualsBuilder().append(codecIdentifier, rhs.codecIdentifier).append(numberInUse, rhs.numberInUse).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java deleted file mode 100644 index 48e2c32..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CommonEventHeader.java +++ /dev/null @@ -1,777 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.Date; -import java.util.HashMap; -import java.util.Map; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - - -/** - * fields common to all events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "domain", - "eventId", - "eventName", - "eventType", - "internalHeaderFields", - "lastEpochMicrosec", - "nfcNamingCode", - "nfNamingCode", - "nfVendorName", - "priority", - "reportingEntityId", - "reportingEntityName", - "sequence", - "sourceId", - "sourceName", - "startEpochMicrosec", - "timeZoneOffset", - "version", - "vesEventListenerVersion" -}) -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 - applicationNf, guestOS, hostOS, platform - * - */ - @JsonProperty("eventType") - @JsonPropertyDescription("for example - applicationNf, 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 nf naming standards - * - */ - @JsonProperty("nfNamingCode") - @JsonPropertyDescription("4 character network function type, aligned with nf naming standards") - private String nfNamingCode; - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - @JsonPropertyDescription("network function vendor name") - private String nfVendorName; - /** - * 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; - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - @JsonPropertyDescription("UTC offset for the local time zone of the device as UTC+/-hh.mm") - private String timeZoneOffset; - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - @JsonPropertyDescription("version of the event header") - private CommonEventHeader.Version version; - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - @JsonPropertyDescription("version of the VES Event Listener API") - private CommonEventHeader.VesEventListenerVersion vesEventListenerVersion; - - @JsonIgnore - private long ts1 = new Date().getTime(); - @JsonIgnore - public long getTs1() { - return ts1; - } - - @JsonIgnore - public void setTs1(long ts1) { - this.ts1 = ts1; - } - - /** - * 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 - applicationNf, guestOS, hostOS, platform - * - */ - @JsonProperty("eventType") - public String getEventType() { - return eventType; - } - - /** - * for example - applicationNf, 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 nf naming standards - * - */ - @JsonProperty("nfNamingCode") - public String getNfNamingCode() { - return nfNamingCode; - } - - /** - * 4 character network function type, aligned with nf naming standards - * - */ - @JsonProperty("nfNamingCode") - public void setNfNamingCode(String nfNamingCode) { - this.nfNamingCode = nfNamingCode; - } - - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - public String getNfVendorName() { - return nfVendorName; - } - - /** - * network function vendor name - * - */ - @JsonProperty("nfVendorName") - public void setNfVendorName(String nfVendorName) { - this.nfVendorName = nfVendorName; - } - - /** - * 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; - } - - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - public String getTimeZoneOffset() { - return timeZoneOffset; - } - - /** - * UTC offset for the local time zone of the device as UTC+/-hh.mm - * - */ - @JsonProperty("timeZoneOffset") - public void setTimeZoneOffset(String timeZoneOffset) { - this.timeZoneOffset = timeZoneOffset; - } - - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - public CommonEventHeader.Version getVersion() { - return version; - } - - /** - * version of the event header - * (Required) - * - */ - @JsonProperty("version") - public void setVersion(CommonEventHeader.Version version) { - this.version = version; - } - - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - public CommonEventHeader.VesEventListenerVersion getVesEventListenerVersion() { - return vesEventListenerVersion; - } - - /** - * version of the VES Event Listener API - * (Required) - * - */ - @JsonProperty("vesEventListenerVersion") - public void setVesEventListenerVersion(CommonEventHeader.VesEventListenerVersion vesEventListenerVersion) { - this.vesEventListenerVersion = vesEventListenerVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(domain).append(eventId).append(eventName).append(eventType).append(internalHeaderFields).append(lastEpochMicrosec).append(nfcNamingCode).append(nfNamingCode).append(nfVendorName).append(priority).append(reportingEntityId).append(reportingEntityName).append(sequence).append(sourceId).append(sourceName).append(startEpochMicrosec).append(timeZoneOffset).append(version).append(vesEventListenerVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CommonEventHeader) == false) { - return false; - } - CommonEventHeader rhs = ((CommonEventHeader) other); - return new EqualsBuilder().append(domain, rhs.domain).append(eventId, rhs.eventId).append(eventName, rhs.eventName).append(eventType, rhs.eventType).append(internalHeaderFields, rhs.internalHeaderFields).append(lastEpochMicrosec, rhs.lastEpochMicrosec).append(nfcNamingCode, rhs.nfcNamingCode).append(nfNamingCode, rhs.nfNamingCode).append(nfVendorName, rhs.nfVendorName).append(priority, rhs.priority).append(reportingEntityId, rhs.reportingEntityId).append(reportingEntityName, rhs.reportingEntityName).append(sequence, rhs.sequence).append(sourceId, rhs.sourceId).append(sourceName, rhs.sourceName).append(startEpochMicrosec, rhs.startEpochMicrosec).append(timeZoneOffset, rhs.timeZoneOffset).append(version, rhs.version).append(vesEventListenerVersion, rhs.vesEventListenerVersion).isEquals(); - } - - public enum Domain { - - FAULT("fault"), - HEARTBEAT("heartbeat"), - MEASUREMENT("measurement"), - MOBILE_FLOW("mobileFlow"), - NOTIFICATION("notification"), - OTHER("other"), - PNF_REGISTRATION("pnfRegistration"), - SIP_SIGNALING("sipSignaling"), - STATE_CHANGE("stateChange"), - SYSLOG("syslog"), - THRESHOLD_CROSSING_ALERT("thresholdCrossingAlert"), - VOICE_QUALITY("voiceQuality"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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 CONSTANTS = new HashMap(); - - 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; - } - } - - } - - public enum Version { - - _4_0_1("4.0.1"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.Version c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private Version(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.Version fromValue(String value) { - CommonEventHeader.Version constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum VesEventListenerVersion { - - _7_0_1("7.0.1"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (CommonEventHeader.VesEventListenerVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private VesEventListenerVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static CommonEventHeader.VesEventListenerVersion fromValue(String value) { - CommonEventHeader.VesEventListenerVersion 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/ves7_0/CpuUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java deleted file mode 100644 index 4d075a6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/CpuUsageArray.java +++ /dev/null @@ -1,511 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * usage of an identified CPU - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "cpuCapacityContention", - "cpuDemandAvg", - "cpuDemandMhz", - "cpuDemandPct", - "cpuIdentifier", - "cpuIdle", - "cpuLatencyAvg", - "cpuOverheadAvg", - "cpuSwapWaitTime", - "cpuUsageInterrupt", - "cpuUsageNice", - "cpuUsageSoftIrq", - "cpuUsageSteal", - "cpuUsageSystem", - "cpuUsageUser", - "cpuWait", - "percentUsage" -}) -public class CpuUsageArray { - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - @JsonPropertyDescription("the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval") - private Double cpuCapacityContention; - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - @JsonPropertyDescription("the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval") - private Double cpuDemandAvg; - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - @JsonPropertyDescription("CPU demand in megahertz") - private Double cpuDemandMhz; - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - @JsonPropertyDescription("CPU demand as a percentage of the provisioned capacity") - private Double cpuDemandPct; - /** - * 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 the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - @JsonPropertyDescription("percentage of time the VM is unable to run because it is contending for access to the physical CPUs") - private Double cpuLatencyAvg; - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - @JsonPropertyDescription("the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval") - private Double cpuOverheadAvg; - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - @JsonPropertyDescription("swap wait time. in milliseconds over the measurementInterval") - private Double cpuSwapWaitTime; - /** - * 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 xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - @JsonPropertyDescription("aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running") - private Double percentUsage; - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - public Double getCpuCapacityContention() { - return cpuCapacityContention; - } - - /** - * the amount of time the CPU cannot run due to contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuCapacityContention") - public void setCpuCapacityContention(Double cpuCapacityContention) { - this.cpuCapacityContention = cpuCapacityContention; - } - - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - public Double getCpuDemandAvg() { - return cpuDemandAvg; - } - - /** - * the total CPU time that the NF/NFC/VM could use if there was no contention, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuDemandAvg") - public void setCpuDemandAvg(Double cpuDemandAvg) { - this.cpuDemandAvg = cpuDemandAvg; - } - - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - public Double getCpuDemandMhz() { - return cpuDemandMhz; - } - - /** - * CPU demand in megahertz - * - */ - @JsonProperty("cpuDemandMhz") - public void setCpuDemandMhz(Double cpuDemandMhz) { - this.cpuDemandMhz = cpuDemandMhz; - } - - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - public Double getCpuDemandPct() { - return cpuDemandPct; - } - - /** - * CPU demand as a percentage of the provisioned capacity - * - */ - @JsonProperty("cpuDemandPct") - public void setCpuDemandPct(Double cpuDemandPct) { - this.cpuDemandPct = cpuDemandPct; - } - - /** - * 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 the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - public Double getCpuLatencyAvg() { - return cpuLatencyAvg; - } - - /** - * percentage of time the VM is unable to run because it is contending for access to the physical CPUs - * - */ - @JsonProperty("cpuLatencyAvg") - public void setCpuLatencyAvg(Double cpuLatencyAvg) { - this.cpuLatencyAvg = cpuLatencyAvg; - } - - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - public Double getCpuOverheadAvg() { - return cpuOverheadAvg; - } - - /** - * the overhead demand above available allocations and reservations, in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuOverheadAvg") - public void setCpuOverheadAvg(Double cpuOverheadAvg) { - this.cpuOverheadAvg = cpuOverheadAvg; - } - - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - public Double getCpuSwapWaitTime() { - return cpuSwapWaitTime; - } - - /** - * swap wait time. in milliseconds over the measurementInterval - * - */ - @JsonProperty("cpuSwapWaitTime") - public void setCpuSwapWaitTime(Double cpuSwapWaitTime) { - this.cpuSwapWaitTime = cpuSwapWaitTime; - } - - /** - * 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 xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - public Double getPercentUsage() { - return percentUsage; - } - - /** - * aggregate cpu usage of the virtual machine on which the xNFC reporting the event is running - * (Required) - * - */ - @JsonProperty("percentUsage") - public void setPercentUsage(Double percentUsage) { - this.percentUsage = percentUsage; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(cpuCapacityContention).append(cpuDemandAvg).append(cpuDemandMhz).append(cpuDemandPct).append(cpuIdentifier).append(cpuIdle).append(cpuLatencyAvg).append(cpuOverheadAvg).append(cpuSwapWaitTime).append(cpuUsageInterrupt).append(cpuUsageNice).append(cpuUsageSoftIrq).append(cpuUsageSteal).append(cpuUsageSystem).append(cpuUsageUser).append(cpuWait).append(percentUsage).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof CpuUsageArray) == false) { - return false; - } - CpuUsageArray rhs = ((CpuUsageArray) other); - return new EqualsBuilder().append(cpuCapacityContention, rhs.cpuCapacityContention).append(cpuDemandAvg, rhs.cpuDemandAvg).append(cpuDemandMhz, rhs.cpuDemandMhz).append(cpuDemandPct, rhs.cpuDemandPct).append(cpuIdentifier, rhs.cpuIdentifier).append(cpuIdle, rhs.cpuIdle).append(cpuLatencyAvg, rhs.cpuLatencyAvg).append(cpuOverheadAvg, rhs.cpuOverheadAvg).append(cpuSwapWaitTime, rhs.cpuSwapWaitTime).append(cpuUsageInterrupt, rhs.cpuUsageInterrupt).append(cpuUsageNice, rhs.cpuUsageNice).append(cpuUsageSoftIrq, rhs.cpuUsageSoftIrq).append(cpuUsageSteal, rhs.cpuUsageSteal).append(cpuUsageSystem, rhs.cpuUsageSystem).append(cpuUsageUser, rhs.cpuUsageUser).append(cpuWait, rhs.cpuWait).append(percentUsage, rhs.percentUsage).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java deleted file mode 100644 index e505aa6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/DiskUsageArray.java +++ /dev/null @@ -1,1496 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * usage of an identified disk - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "diskBusResets", - "diskCommandsAborted", - "diskCommandsAvg", - "diskFlushRequests", - "diskFlushTime", - "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", - "diskReadCommandsAvg", - "diskTime", - "diskTimeReadAvg", - "diskTimeReadLast", - "diskTimeReadMax", - "diskTimeReadMin", - "diskTimeWriteAvg", - "diskTimeWriteLast", - "diskTimeWriteMax", - "diskTimeWriteMin", - "diskTotalReadLatencyAvg", - "diskTotalWriteLatencyAvg", - "diskWeightedIoTimeAvg", - "diskWeightedIoTimeLast", - "diskWeightedIoTimeMax", - "diskWeightedIoTimeMin", - "diskWriteCommandsAvg" -}) -public class DiskUsageArray { - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - @JsonPropertyDescription("number of bus resets over the measurementInterval") - private Double diskBusResets; - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - @JsonPropertyDescription("number of disk commands aborted over the measurementInterval") - private Double diskCommandsAborted; - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - @JsonPropertyDescription("average number of commands per second over the measurementInterval") - private Double diskCommandsAvg; - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - @JsonPropertyDescription("total flush requests of the disk cache over the measurementInterval") - private Double diskFlushRequests; - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - @JsonPropertyDescription("milliseconds spent on disk cache flushing over the measurementInterval") - private Double diskFlushTime; - /** - * 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; - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - @JsonPropertyDescription("average number of read commands issued per second to the disk over the measurementInterval") - private Double diskReadCommandsAvg; - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - @JsonPropertyDescription("nanoseconds spent on disk cache reads/writes within the measurement interval") - private Double diskTime; - /** - * 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; - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - @JsonPropertyDescription("average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval") - private Double diskTotalReadLatencyAvg; - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - @JsonPropertyDescription("average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval") - private Double diskTotalWriteLatencyAvg; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval") - private Double diskWeightedIoTimeAvg; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval") - private Double diskWeightedIoTimeLast; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval") - private Double diskWeightedIoTimeMax; - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - @JsonPropertyDescription("measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval") - private Double diskWeightedIoTimeMin; - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - @JsonPropertyDescription("average number of write commands issued per second to the disk over the measurementInterval") - private Double diskWriteCommandsAvg; - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - public Double getDiskBusResets() { - return diskBusResets; - } - - /** - * number of bus resets over the measurementInterval - * - */ - @JsonProperty("diskBusResets") - public void setDiskBusResets(Double diskBusResets) { - this.diskBusResets = diskBusResets; - } - - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - public Double getDiskCommandsAborted() { - return diskCommandsAborted; - } - - /** - * number of disk commands aborted over the measurementInterval - * - */ - @JsonProperty("diskCommandsAborted") - public void setDiskCommandsAborted(Double diskCommandsAborted) { - this.diskCommandsAborted = diskCommandsAborted; - } - - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - public Double getDiskCommandsAvg() { - return diskCommandsAvg; - } - - /** - * average number of commands per second over the measurementInterval - * - */ - @JsonProperty("diskCommandsAvg") - public void setDiskCommandsAvg(Double diskCommandsAvg) { - this.diskCommandsAvg = diskCommandsAvg; - } - - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - public Double getDiskFlushRequests() { - return diskFlushRequests; - } - - /** - * total flush requests of the disk cache over the measurementInterval - * - */ - @JsonProperty("diskFlushRequests") - public void setDiskFlushRequests(Double diskFlushRequests) { - this.diskFlushRequests = diskFlushRequests; - } - - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - public Double getDiskFlushTime() { - return diskFlushTime; - } - - /** - * milliseconds spent on disk cache flushing over the measurementInterval - * - */ - @JsonProperty("diskFlushTime") - public void setDiskFlushTime(Double diskFlushTime) { - this.diskFlushTime = diskFlushTime; - } - - /** - * 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; - } - - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - public Double getDiskReadCommandsAvg() { - return diskReadCommandsAvg; - } - - /** - * average number of read commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskReadCommandsAvg") - public void setDiskReadCommandsAvg(Double diskReadCommandsAvg) { - this.diskReadCommandsAvg = diskReadCommandsAvg; - } - - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - public Double getDiskTime() { - return diskTime; - } - - /** - * nanoseconds spent on disk cache reads/writes within the measurement interval - * - */ - @JsonProperty("diskTime") - public void setDiskTime(Double diskTime) { - this.diskTime = diskTime; - } - - /** - * 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; - } - - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - public Double getDiskTotalReadLatencyAvg() { - return diskTotalReadLatencyAvg; - } - - /** - * average read time from the perspective of a Guest OS: sum of the Kernel Read Latency and Physical Device Read Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalReadLatencyAvg") - public void setDiskTotalReadLatencyAvg(Double diskTotalReadLatencyAvg) { - this.diskTotalReadLatencyAvg = diskTotalReadLatencyAvg; - } - - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - public Double getDiskTotalWriteLatencyAvg() { - return diskTotalWriteLatencyAvg; - } - - /** - * average write time from the perspective of a Guest OS: sum of the Kernel Write Latency and Physical Device Write Latency in milliseconds over the measurement interval - * - */ - @JsonProperty("diskTotalWriteLatencyAvg") - public void setDiskTotalWriteLatencyAvg(Double diskTotalWriteLatencyAvg) { - this.diskTotalWriteLatencyAvg = diskTotalWriteLatencyAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - public Double getDiskWeightedIoTimeAvg() { - return diskWeightedIoTimeAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the average within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeAvg") - public void setDiskWeightedIoTimeAvg(Double diskWeightedIoTimeAvg) { - this.diskWeightedIoTimeAvg = diskWeightedIoTimeAvg; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - public Double getDiskWeightedIoTimeLast() { - return diskWeightedIoTimeLast; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the last within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeLast") - public void setDiskWeightedIoTimeLast(Double diskWeightedIoTimeLast) { - this.diskWeightedIoTimeLast = diskWeightedIoTimeLast; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - public Double getDiskWeightedIoTimeMax() { - return diskWeightedIoTimeMax; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the maximum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMax") - public void setDiskWeightedIoTimeMax(Double diskWeightedIoTimeMax) { - this.diskWeightedIoTimeMax = diskWeightedIoTimeMax; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - public Double getDiskWeightedIoTimeMin() { - return diskWeightedIoTimeMin; - } - - /** - * measure in ms over 1 sec of both I/O completion time and the backlog that may be accumulating; value is the minimum within the collection interval - * - */ - @JsonProperty("diskWeightedIoTimeMin") - public void setDiskWeightedIoTimeMin(Double diskWeightedIoTimeMin) { - this.diskWeightedIoTimeMin = diskWeightedIoTimeMin; - } - - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - public Double getDiskWriteCommandsAvg() { - return diskWriteCommandsAvg; - } - - /** - * average number of write commands issued per second to the disk over the measurementInterval - * - */ - @JsonProperty("diskWriteCommandsAvg") - public void setDiskWriteCommandsAvg(Double diskWriteCommandsAvg) { - this.diskWriteCommandsAvg = diskWriteCommandsAvg; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(diskBusResets).append(diskCommandsAborted).append(diskCommandsAvg).append(diskFlushRequests).append(diskFlushTime).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(diskReadCommandsAvg).append(diskTime).append(diskTimeReadAvg).append(diskTimeReadLast).append(diskTimeReadMax).append(diskTimeReadMin).append(diskTimeWriteAvg).append(diskTimeWriteLast).append(diskTimeWriteMax).append(diskTimeWriteMin).append(diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast).append(diskWeightedIoTimeMax).append(diskWeightedIoTimeMin).append(diskWriteCommandsAvg).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof DiskUsageArray) == false) { - return false; - } - DiskUsageArray rhs = ((DiskUsageArray) other); - return new EqualsBuilder().append(diskBusResets, rhs.diskBusResets).append(diskCommandsAborted, rhs.diskCommandsAborted).append(diskCommandsAvg, rhs.diskCommandsAvg).append(diskFlushRequests, rhs.diskFlushRequests).append(diskFlushTime, rhs.diskFlushTime).append(diskIdentifier, rhs.diskIdentifier).append(diskIoTimeAvg, rhs.diskIoTimeAvg).append(diskIoTimeLast, rhs.diskIoTimeLast).append(diskIoTimeMax, rhs.diskIoTimeMax).append(diskIoTimeMin, rhs.diskIoTimeMin).append(diskMergedReadAvg, rhs.diskMergedReadAvg).append(diskMergedReadLast, rhs.diskMergedReadLast).append(diskMergedReadMax, rhs.diskMergedReadMax).append(diskMergedReadMin, rhs.diskMergedReadMin).append(diskMergedWriteAvg, rhs.diskMergedWriteAvg).append(diskMergedWriteLast, rhs.diskMergedWriteLast).append(diskMergedWriteMax, rhs.diskMergedWriteMax).append(diskMergedWriteMin, rhs.diskMergedWriteMin).append(diskOctetsReadAvg, rhs.diskOctetsReadAvg).append(diskOctetsReadLast, rhs.diskOctetsReadLast).append(diskOctetsReadMax, rhs.diskOctetsReadMax).append(diskOctetsReadMin, rhs.diskOctetsReadMin).append(diskOctetsWriteAvg, rhs.diskOctetsWriteAvg).append(diskOctetsWriteLast, rhs.diskOctetsWriteLast).append(diskOctetsWriteMax, rhs.diskOctetsWriteMax).append(diskOctetsWriteMin, rhs.diskOctetsWriteMin).append(diskOpsReadAvg, rhs.diskOpsReadAvg).append(diskOpsReadLast, rhs.diskOpsReadLast).append(diskOpsReadMax, rhs.diskOpsReadMax).append(diskOpsReadMin, rhs.diskOpsReadMin).append(diskOpsWriteAvg, rhs.diskOpsWriteAvg).append(diskOpsWriteLast, rhs.diskOpsWriteLast).append(diskOpsWriteMax, rhs.diskOpsWriteMax).append(diskOpsWriteMin, rhs.diskOpsWriteMin).append(diskPendingOperationsAvg, rhs.diskPendingOperationsAvg).append(diskPendingOperationsLast, rhs.diskPendingOperationsLast).append(diskPendingOperationsMax, rhs.diskPendingOperationsMax).append(diskPendingOperationsMin, rhs.diskPendingOperationsMin).append(diskReadCommandsAvg, rhs.diskReadCommandsAvg).append(diskTime, rhs.diskTime).append(diskTimeReadAvg, rhs.diskTimeReadAvg).append(diskTimeReadLast, rhs.diskTimeReadLast).append(diskTimeReadMax, rhs.diskTimeReadMax).append(diskTimeReadMin, rhs.diskTimeReadMin).append(diskTimeWriteAvg, rhs.diskTimeWriteAvg).append(diskTimeWriteLast, rhs.diskTimeWriteLast).append(diskTimeWriteMax, rhs.diskTimeWriteMax).append(diskTimeWriteMin, rhs.diskTimeWriteMin).append(diskTotalReadLatencyAvg, rhs.diskTotalReadLatencyAvg).append(diskTotalWriteLatencyAvg, rhs.diskTotalWriteLatencyAvg).append(diskWeightedIoTimeAvg, rhs.diskWeightedIoTimeAvg).append(diskWeightedIoTimeLast, rhs.diskWeightedIoTimeLast).append(diskWeightedIoTimeMax, rhs.diskWeightedIoTimeMax).append(diskWeightedIoTimeMin, rhs.diskWeightedIoTimeMin).append(diskWriteCommandsAvg, rhs.diskWriteCommandsAvg).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java deleted file mode 100644 index 5ddbe43..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/EndOfCallVqmSummaries.java +++ /dev/null @@ -1,866 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides end of call voice quality metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "adjacencyName", - "endpointAverageJitter", - "endpointDescription", - "endpointMaxJitter", - "endpointRtpOctetsDiscarded", - "endpointRtpOctetsLost", - "endpointRtpOctetsReceived", - "endpointRtpOctetsSent", - "endpointRtpPacketsDiscarded", - "endpointRtpPacketsLost", - "endpointRtpPacketsReceived", - "endpointRtpPacketsSent", - "localAverageJitter", - "localAverageJitterBufferDelay", - "localMaxJitter", - "localMaxJitterBufferDelay", - "localRtpOctetsDiscarded", - "localRtpOctetsLost", - "localRtpOctetsReceived", - "localRtpOctetsSent", - "localRtpPacketsDiscarded", - "localRtpPacketsLost", - "localRtpPacketsReceived", - "localRtpPacketsSent", - "mosCqe", - "oneWayDelay", - "packetLossPercent", - "rFactor", - "roundTripDelay" -}) -public class EndOfCallVqmSummaries { - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - @JsonPropertyDescription(" adjacency name") - private String adjacencyName; - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - @JsonPropertyDescription("endpoint average jitter") - private Double endpointAverageJitter; - /** - * either Caller or Callee - * (Required) - * - */ - @JsonProperty("endpointDescription") - @JsonPropertyDescription("either Caller or Callee") - private EndOfCallVqmSummaries.EndpointDescription endpointDescription; - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - @JsonPropertyDescription("endpoint maximum jitter") - private Double endpointMaxJitter; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - @JsonPropertyDescription("") - private Double endpointRtpOctetsDiscarded; - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - @JsonPropertyDescription("endpoint RTP octets lost") - private Double endpointRtpOctetsLost; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsReceived") - @JsonPropertyDescription("") - private Double endpointRtpOctetsReceived; - /** - * - * - */ - @JsonProperty("endpointRtpOctetsSent") - @JsonPropertyDescription("") - private Double endpointRtpOctetsSent; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsDiscarded") - @JsonPropertyDescription("") - private Double endpointRtpPacketsDiscarded; - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - @JsonPropertyDescription("endpoint RTP packets lost") - private Double endpointRtpPacketsLost; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsReceived") - @JsonPropertyDescription("") - private Double endpointRtpPacketsReceived; - /** - * - * - */ - @JsonProperty("endpointRtpPacketsSent") - @JsonPropertyDescription("") - private Double endpointRtpPacketsSent; - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - @JsonPropertyDescription("Local average jitter") - private Double localAverageJitter; - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - @JsonPropertyDescription("Local average jitter delay") - private Double localAverageJitterBufferDelay; - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - @JsonPropertyDescription("Local maximum jitter") - private Double localMaxJitter; - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - @JsonPropertyDescription("Local maximum jitter delay") - private Double localMaxJitterBufferDelay; - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - @JsonPropertyDescription("") - private Double localRtpOctetsDiscarded; - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - @JsonPropertyDescription("Local RTP octets lost") - private Double localRtpOctetsLost; - /** - * - * - */ - @JsonProperty("localRtpOctetsReceived") - @JsonPropertyDescription("") - private Double localRtpOctetsReceived; - /** - * - * - */ - @JsonProperty("localRtpOctetsSent") - @JsonPropertyDescription("") - private Double localRtpOctetsSent; - /** - * - * - */ - @JsonProperty("localRtpPacketsDiscarded") - @JsonPropertyDescription("") - private Double localRtpPacketsDiscarded; - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - @JsonPropertyDescription("Local RTP packets lost") - private Double localRtpPacketsLost; - /** - * - * - */ - @JsonProperty("localRtpPacketsReceived") - @JsonPropertyDescription("") - private Double localRtpPacketsReceived; - /** - * - * - */ - @JsonProperty("localRtpPacketsSent") - @JsonPropertyDescription("") - private Double localRtpPacketsSent; - /** - * 1-5 1dp - * - */ - @JsonProperty("mosCqe") - @JsonPropertyDescription("1-5 1dp") - private Double mosCqe; - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - @JsonPropertyDescription("one-way path delay in milliseconds") - private Double oneWayDelay; - /** - * 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; - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - public String getAdjacencyName() { - return adjacencyName; - } - - /** - * adjacency name - * (Required) - * - */ - @JsonProperty("adjacencyName") - public void setAdjacencyName(String adjacencyName) { - this.adjacencyName = adjacencyName; - } - - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - public Double getEndpointAverageJitter() { - return endpointAverageJitter; - } - - /** - * endpoint average jitter - * - */ - @JsonProperty("endpointAverageJitter") - public void setEndpointAverageJitter(Double endpointAverageJitter) { - this.endpointAverageJitter = endpointAverageJitter; - } - - /** - * 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; - } - - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - public Double getEndpointMaxJitter() { - return endpointMaxJitter; - } - - /** - * endpoint maximum jitter - * - */ - @JsonProperty("endpointMaxJitter") - public void setEndpointMaxJitter(Double endpointMaxJitter) { - this.endpointMaxJitter = endpointMaxJitter; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - public Double getEndpointRtpOctetsDiscarded() { - return endpointRtpOctetsDiscarded; - } - - /** - * - * - */ - @JsonProperty("endpointRtpOctetsDiscarded") - public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) { - this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded; - } - - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - public Double getEndpointRtpOctetsLost() { - return endpointRtpOctetsLost; - } - - /** - * endpoint RTP octets lost - * - */ - @JsonProperty("endpointRtpOctetsLost") - public void setEndpointRtpOctetsLost(Double endpointRtpOctetsLost) { - this.endpointRtpOctetsLost = endpointRtpOctetsLost; - } - - /** - * - * - */ - @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; - } - - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - public Double getEndpointRtpPacketsLost() { - return endpointRtpPacketsLost; - } - - /** - * endpoint RTP packets lost - * - */ - @JsonProperty("endpointRtpPacketsLost") - public void setEndpointRtpPacketsLost(Double endpointRtpPacketsLost) { - this.endpointRtpPacketsLost = endpointRtpPacketsLost; - } - - /** - * - * - */ - @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; - } - - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - public Double getLocalAverageJitter() { - return localAverageJitter; - } - - /** - * Local average jitter - * - */ - @JsonProperty("localAverageJitter") - public void setLocalAverageJitter(Double localAverageJitter) { - this.localAverageJitter = localAverageJitter; - } - - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - public Double getLocalAverageJitterBufferDelay() { - return localAverageJitterBufferDelay; - } - - /** - * Local average jitter delay - * - */ - @JsonProperty("localAverageJitterBufferDelay") - public void setLocalAverageJitterBufferDelay(Double localAverageJitterBufferDelay) { - this.localAverageJitterBufferDelay = localAverageJitterBufferDelay; - } - - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - public Double getLocalMaxJitter() { - return localMaxJitter; - } - - /** - * Local maximum jitter - * - */ - @JsonProperty("localMaxJitter") - public void setLocalMaxJitter(Double localMaxJitter) { - this.localMaxJitter = localMaxJitter; - } - - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - public Double getLocalMaxJitterBufferDelay() { - return localMaxJitterBufferDelay; - } - - /** - * Local maximum jitter delay - * - */ - @JsonProperty("localMaxJitterBufferDelay") - public void setLocalMaxJitterBufferDelay(Double localMaxJitterBufferDelay) { - this.localMaxJitterBufferDelay = localMaxJitterBufferDelay; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - public Double getLocalRtpOctetsDiscarded() { - return localRtpOctetsDiscarded; - } - - /** - * - * - */ - @JsonProperty("localRtpOctetsDiscarded") - public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) { - this.localRtpOctetsDiscarded = localRtpOctetsDiscarded; - } - - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - public Double getLocalRtpOctetsLost() { - return localRtpOctetsLost; - } - - /** - * Local RTP octets lost - * - */ - @JsonProperty("localRtpOctetsLost") - public void setLocalRtpOctetsLost(Double localRtpOctetsLost) { - this.localRtpOctetsLost = localRtpOctetsLost; - } - - /** - * - * - */ - @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; - } - - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - public Double getLocalRtpPacketsLost() { - return localRtpPacketsLost; - } - - /** - * Local RTP packets lost - * - */ - @JsonProperty("localRtpPacketsLost") - public void setLocalRtpPacketsLost(Double localRtpPacketsLost) { - this.localRtpPacketsLost = localRtpPacketsLost; - } - - /** - * - * - */ - @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; - } - - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - public Double getOneWayDelay() { - return oneWayDelay; - } - - /** - * one-way path delay in milliseconds - * - */ - @JsonProperty("oneWayDelay") - public void setOneWayDelay(Double oneWayDelay) { - this.oneWayDelay = oneWayDelay; - } - - /** - * 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(adjacencyName).append(endpointAverageJitter).append(endpointDescription).append(endpointMaxJitter).append(endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost).append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost).append(endpointRtpPacketsReceived).append(endpointRtpPacketsSent).append(localAverageJitter).append(localAverageJitterBufferDelay).append(localMaxJitter).append(localMaxJitterBufferDelay).append(localRtpOctetsDiscarded).append(localRtpOctetsLost).append(localRtpOctetsReceived).append(localRtpOctetsSent).append(localRtpPacketsDiscarded).append(localRtpPacketsLost).append(localRtpPacketsReceived).append(localRtpPacketsSent).append(mosCqe).append(oneWayDelay).append(packetLossPercent).append(rFactor).append(roundTripDelay).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof EndOfCallVqmSummaries) == false) { - return false; - } - EndOfCallVqmSummaries rhs = ((EndOfCallVqmSummaries) other); - return new EqualsBuilder().append(adjacencyName, rhs.adjacencyName).append(endpointAverageJitter, rhs.endpointAverageJitter).append(endpointDescription, rhs.endpointDescription).append(endpointMaxJitter, rhs.endpointMaxJitter).append(endpointRtpOctetsDiscarded, rhs.endpointRtpOctetsDiscarded).append(endpointRtpOctetsLost, rhs.endpointRtpOctetsLost).append(endpointRtpOctetsReceived, rhs.endpointRtpOctetsReceived).append(endpointRtpOctetsSent, rhs.endpointRtpOctetsSent).append(endpointRtpPacketsDiscarded, rhs.endpointRtpPacketsDiscarded).append(endpointRtpPacketsLost, rhs.endpointRtpPacketsLost).append(endpointRtpPacketsReceived, rhs.endpointRtpPacketsReceived).append(endpointRtpPacketsSent, rhs.endpointRtpPacketsSent).append(localAverageJitter, rhs.localAverageJitter).append(localAverageJitterBufferDelay, rhs.localAverageJitterBufferDelay).append(localMaxJitter, rhs.localMaxJitter).append(localMaxJitterBufferDelay, rhs.localMaxJitterBufferDelay).append(localRtpOctetsDiscarded, rhs.localRtpOctetsDiscarded).append(localRtpOctetsLost, rhs.localRtpOctetsLost).append(localRtpOctetsReceived, rhs.localRtpOctetsReceived).append(localRtpOctetsSent, rhs.localRtpOctetsSent).append(localRtpPacketsDiscarded, rhs.localRtpPacketsDiscarded).append(localRtpPacketsLost, rhs.localRtpPacketsLost).append(localRtpPacketsReceived, rhs.localRtpPacketsReceived).append(localRtpPacketsSent, rhs.localRtpPacketsSent).append(mosCqe, rhs.mosCqe).append(oneWayDelay, rhs.oneWayDelay).append(packetLossPercent, rhs.packetLossPercent).append(rFactor, rhs.rFactor).append(roundTripDelay, rhs.roundTripDelay).isEquals(); - } - - public enum EndpointDescription { - - CALLER("Caller"), - CALLEE("Callee"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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/ves7_0/Event.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java deleted file mode 100644 index e2e6265..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Event.java +++ /dev/null @@ -1,404 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * the root level of the common event format - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "commonEventHeader", - "faultFields", - "heartbeatFields", - "measurementFields", - "mobileFlowFields", - "notificationFields", - "otherFields", - "pnfRegistrationFields", - "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; - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - @JsonPropertyDescription("measurement fields") - private MeasurementFields measurementFields; - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - @JsonPropertyDescription("mobileFlow fields") - private MobileFlowFields mobileFlowFields; - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - @JsonPropertyDescription("notification fields") - private NotificationFields notificationFields; - /** - * 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; - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - @JsonPropertyDescription("hardware device registration fields") - private PnfRegistrationFields pnfRegistrationFields; - /** - * 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; - - /** - * 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; - } - - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - public MeasurementFields getMeasurementFields() { - return measurementFields; - } - - /** - * measurement fields - * - */ - @JsonProperty("measurementFields") - public void setMeasurementFields(MeasurementFields measurementFields) { - this.measurementFields = measurementFields; - } - - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - public MobileFlowFields getMobileFlowFields() { - return mobileFlowFields; - } - - /** - * mobileFlow fields - * - */ - @JsonProperty("mobileFlowFields") - public void setMobileFlowFields(MobileFlowFields mobileFlowFields) { - this.mobileFlowFields = mobileFlowFields; - } - - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - public NotificationFields getNotificationFields() { - return notificationFields; - } - - /** - * notification fields - * - */ - @JsonProperty("notificationFields") - public void setNotificationFields(NotificationFields notificationFields) { - this.notificationFields = notificationFields; - } - - /** - * 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; - } - - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - public PnfRegistrationFields getPnfRegistrationFields() { - return pnfRegistrationFields; - } - - /** - * hardware device registration fields - * - */ - @JsonProperty("pnfRegistrationFields") - public void setPnfRegistrationFields(PnfRegistrationFields pnfRegistrationFields) { - this.pnfRegistrationFields = pnfRegistrationFields; - } - - /** - * 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(commonEventHeader).append(faultFields).append(heartbeatFields).append(measurementFields).append(mobileFlowFields).append(notificationFields).append(otherFields).append(pnfRegistrationFields).append(sipSignalingFields).append(stateChangeFields).append(syslogFields).append(thresholdCrossingAlertFields).append(voiceQualityFields).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof Event) == false) { - return false; - } - Event rhs = ((Event) other); - return new EqualsBuilder().append(commonEventHeader, rhs.commonEventHeader).append(faultFields, rhs.faultFields).append(heartbeatFields, rhs.heartbeatFields).append(measurementFields, rhs.measurementFields).append(mobileFlowFields, rhs.mobileFlowFields).append(notificationFields, rhs.notificationFields).append(otherFields, rhs.otherFields).append(pnfRegistrationFields, rhs.pnfRegistrationFields).append(sipSignalingFields, rhs.sipSignalingFields).append(stateChangeFields, rhs.stateChangeFields).append(syslogFields, rhs.syslogFields).append(thresholdCrossingAlertFields, rhs.thresholdCrossingAlertFields).append(voiceQualityFields, rhs.voiceQualityFields).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java deleted file mode 100644 index c62bd4c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FaultFields.java +++ /dev/null @@ -1,441 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * fields specific to fault events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "alarmAdditionalInformation", - "alarmCondition", - "alarmInterfaceA", - "eventCategory", - "eventSeverity", - "eventSourceType", - "faultFieldsVersion", - "specificProblem", - "vfStatus" -}) -public class FaultFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation 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 FaultFields.FaultFieldsVersion 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; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - public AlarmAdditionalInformation getAlarmAdditionalInformation() { - return alarmAdditionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("alarmAdditionalInformation") - public void setAlarmAdditionalInformation(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 FaultFields.FaultFieldsVersion getFaultFieldsVersion() { - return faultFieldsVersion; - } - - /** - * version of the faultFields block - * (Required) - * - */ - @JsonProperty("faultFieldsVersion") - public void setFaultFieldsVersion(FaultFields.FaultFieldsVersion 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); - } - - @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).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof FaultFields) == false) { - return false; - } - FaultFields rhs = ((FaultFields) other); - return new EqualsBuilder().append(alarmAdditionalInformation, rhs.alarmAdditionalInformation).append(alarmCondition, rhs.alarmCondition).append(alarmInterfaceA, rhs.alarmInterfaceA).append(eventCategory, rhs.eventCategory).append(eventSeverity, rhs.eventSeverity).append(eventSourceType, rhs.eventSourceType).append(faultFieldsVersion, rhs.faultFieldsVersion).append(specificProblem, rhs.specificProblem).append(vfStatus, rhs.vfStatus).isEquals(); - } - - public enum EventSeverity { - - CRITICAL("CRITICAL"), - MAJOR("MAJOR"), - MINOR("MINOR"), - WARNING("WARNING"), - NORMAL("NORMAL"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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 FaultFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (FaultFields.FaultFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private FaultFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static FaultFields.FaultFieldsVersion fromValue(String value) { - FaultFields.FaultFieldsVersion 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 CONSTANTS = new HashMap(); - - 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/ves7_0/FilesystemUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java deleted file mode 100644 index f36ff0f..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/FilesystemUsageArray.java +++ /dev/null @@ -1,258 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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; - - /** - * - * (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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(blockConfigured).append(blockIops).append(blockUsed).append(ephemeralConfigured).append(ephemeralIops).append(ephemeralUsed).append(filesystemName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof FilesystemUsageArray) == false) { - return false; - } - FilesystemUsageArray rhs = ((FilesystemUsageArray) other); - return new EqualsBuilder().append(blockConfigured, rhs.blockConfigured).append(blockIops, rhs.blockIops).append(blockUsed, rhs.blockUsed).append(ephemeralConfigured, rhs.ephemeralConfigured).append(ephemeralIops, rhs.ephemeralIops).append(ephemeralUsed, rhs.ephemeralUsed).append(filesystemName, rhs.filesystemName).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java deleted file mode 100644 index e915e5c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/GtpPerFlowMetrics.java +++ /dev/null @@ -1,1455 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.List; -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation ipTosCountList; - /** - * 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 ipTosList = new ArrayList(); - /** - * 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; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation mobileQciCosCountList; - /** - * 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 mobileQciCosList = new ArrayList(); - /** - * 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; - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation tcpFlagCountList; - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - @JsonPropertyDescription("Array of unique TCP Flags observed in the flow") - private List tcpFlagList = new ArrayList(); - /** - * 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; - - /** - * 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; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - public AlarmAdditionalInformation getIpTosCountList() { - return ipTosCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("ipTosCountList") - public void setIpTosCountList(AlarmAdditionalInformation 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 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 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; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - public AlarmAdditionalInformation getMobileQciCosCountList() { - return mobileQciCosCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("mobileQciCosCountList") - public void setMobileQciCosCountList(AlarmAdditionalInformation mobileQciCosCountList) { - this.mobileQciCosCountList = mobileQciCosCountList; - } - - /** - * Array of unique LTE QCI or UMTS class-of-service values observed in the flow - * - */ - @JsonProperty("mobileQciCosList") - public List getMobileQciCosList() { - return mobileQciCosList; - } - - /** - * Array of unique LTE QCI or UMTS class-of-service values observed in the flow - * - */ - @JsonProperty("mobileQciCosList") - public void setMobileQciCosList(List 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; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - public AlarmAdditionalInformation getTcpFlagCountList() { - return tcpFlagCountList; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("tcpFlagCountList") - public void setTcpFlagCountList(AlarmAdditionalInformation tcpFlagCountList) { - this.tcpFlagCountList = tcpFlagCountList; - } - - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - public List getTcpFlagList() { - return tcpFlagList; - } - - /** - * Array of unique TCP Flags observed in the flow - * - */ - @JsonProperty("tcpFlagList") - public void setTcpFlagList(List 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); - } - - @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).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof GtpPerFlowMetrics) == false) { - return false; - } - GtpPerFlowMetrics rhs = ((GtpPerFlowMetrics) other); - return new EqualsBuilder().append(avgBitErrorRate, rhs.avgBitErrorRate).append(avgPacketDelayVariation, rhs.avgPacketDelayVariation).append(avgPacketLatency, rhs.avgPacketLatency).append(avgReceiveThroughput, rhs.avgReceiveThroughput).append(avgTransmitThroughput, rhs.avgTransmitThroughput).append(durConnectionFailedStatus, rhs.durConnectionFailedStatus).append(durTunnelFailedStatus, rhs.durTunnelFailedStatus).append(flowActivatedBy, rhs.flowActivatedBy).append(flowActivationEpoch, rhs.flowActivationEpoch).append(flowActivationMicrosec, rhs.flowActivationMicrosec).append(flowActivationTime, rhs.flowActivationTime).append(flowDeactivatedBy, rhs.flowDeactivatedBy).append(flowDeactivationEpoch, rhs.flowDeactivationEpoch).append(flowDeactivationMicrosec, rhs.flowDeactivationMicrosec).append(flowDeactivationTime, rhs.flowDeactivationTime).append(flowStatus, rhs.flowStatus).append(gtpConnectionStatus, rhs.gtpConnectionStatus).append(gtpTunnelStatus, rhs.gtpTunnelStatus).append(ipTosCountList, rhs.ipTosCountList).append(ipTosList, rhs.ipTosList).append(largePacketRtt, rhs.largePacketRtt).append(largePacketThreshold, rhs.largePacketThreshold).append(maxPacketDelayVariation, rhs.maxPacketDelayVariation).append(maxReceiveBitRate, rhs.maxReceiveBitRate).append(maxTransmitBitRate, rhs.maxTransmitBitRate).append(mobileQciCosCountList, rhs.mobileQciCosCountList).append(mobileQciCosList, rhs.mobileQciCosList).append(numActivationFailures, rhs.numActivationFailures).append(numBitErrors, rhs.numBitErrors).append(numBytesReceived, rhs.numBytesReceived).append(numBytesTransmitted, rhs.numBytesTransmitted).append(numDroppedPackets, rhs.numDroppedPackets).append(numGtpEchoFailures, rhs.numGtpEchoFailures).append(numGtpTunnelErrors, rhs.numGtpTunnelErrors).append(numHttpErrors, rhs.numHttpErrors).append(numL7BytesReceived, rhs.numL7BytesReceived).append(numL7BytesTransmitted, rhs.numL7BytesTransmitted).append(numLostPackets, rhs.numLostPackets).append(numOutOfOrderPackets, rhs.numOutOfOrderPackets).append(numPacketErrors, rhs.numPacketErrors).append(numPacketsReceivedExclRetrans, rhs.numPacketsReceivedExclRetrans).append(numPacketsReceivedInclRetrans, rhs.numPacketsReceivedInclRetrans).append(numPacketsTransmittedInclRetrans, rhs.numPacketsTransmittedInclRetrans).append(numRetries, rhs.numRetries).append(numTimeouts, rhs.numTimeouts).append(numTunneledL7BytesReceived, rhs.numTunneledL7BytesReceived).append(roundTripTime, rhs.roundTripTime).append(tcpFlagCountList, rhs.tcpFlagCountList).append(tcpFlagList, rhs.tcpFlagList).append(timeToFirstByte, rhs.timeToFirstByte).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java deleted file mode 100644 index b650fca..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HeartbeatFields.java +++ /dev/null @@ -1,189 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * optional field block for fields specific to heartbeat events - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "heartbeatFieldsVersion", - "heartbeatInterval" -}) -public class HeartbeatFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - @JsonPropertyDescription("version of the heartbeatFields block") - private HeartbeatFields.HeartbeatFieldsVersion heartbeatFieldsVersion; - /** - * current heartbeat interval in seconds - * (Required) - * - */ - @JsonProperty("heartbeatInterval") - @JsonPropertyDescription("current heartbeat interval in seconds") - private Integer heartbeatInterval; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - public HeartbeatFields.HeartbeatFieldsVersion getHeartbeatFieldsVersion() { - return heartbeatFieldsVersion; - } - - /** - * version of the heartbeatFields block - * (Required) - * - */ - @JsonProperty("heartbeatFieldsVersion") - public void setHeartbeatFieldsVersion(HeartbeatFields.HeartbeatFieldsVersion 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(heartbeatFieldsVersion).append(heartbeatInterval).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof HeartbeatFields) == false) { - return false; - } - HeartbeatFields rhs = ((HeartbeatFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(heartbeatFieldsVersion, rhs.heartbeatFieldsVersion).append(heartbeatInterval, rhs.heartbeatInterval).isEquals(); - } - - public enum HeartbeatFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (HeartbeatFields.HeartbeatFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private HeartbeatFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static HeartbeatFields.HeartbeatFieldsVersion fromValue(String value) { - HeartbeatFields.HeartbeatFieldsVersion 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/ves7_0/HugePagesArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java deleted file mode 100644 index 5ffe324..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/HugePagesArray.java +++ /dev/null @@ -1,248 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on system hugepages - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "bytesFree", - "bytesUsed", - "hugePagesIdentifier", - "percentFree", - "percentUsed", - "vmPageNumberFree", - "vmPageNumberUsed" -}) -public class HugePagesArray { - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - @JsonPropertyDescription("number of free hugepages in bytes") - private Double bytesFree; - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - @JsonPropertyDescription("number of used hugepages in bytes") - private Double bytesUsed; - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - @JsonPropertyDescription("hugePages identifier") - private Double hugePagesIdentifier; - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - @JsonPropertyDescription("number of free hugepages in percent") - private Double percentFree; - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - @JsonPropertyDescription("number of free hugepages in percent") - private Double percentUsed; - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - @JsonPropertyDescription("number of free vmPages in numbers") - private Double vmPageNumberFree; - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - @JsonPropertyDescription("number of used vmPages in numbers") - private Double vmPageNumberUsed; - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - public Double getBytesFree() { - return bytesFree; - } - - /** - * number of free hugepages in bytes - * - */ - @JsonProperty("bytesFree") - public void setBytesFree(Double bytesFree) { - this.bytesFree = bytesFree; - } - - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - public Double getBytesUsed() { - return bytesUsed; - } - - /** - * number of used hugepages in bytes - * - */ - @JsonProperty("bytesUsed") - public void setBytesUsed(Double bytesUsed) { - this.bytesUsed = bytesUsed; - } - - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - public Double getHugePagesIdentifier() { - return hugePagesIdentifier; - } - - /** - * hugePages identifier - * (Required) - * - */ - @JsonProperty("hugePagesIdentifier") - public void setHugePagesIdentifier(Double hugePagesIdentifier) { - this.hugePagesIdentifier = hugePagesIdentifier; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - public Double getPercentFree() { - return percentFree; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentFree") - public void setPercentFree(Double percentFree) { - this.percentFree = percentFree; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - public Double getPercentUsed() { - return percentUsed; - } - - /** - * number of free hugepages in percent - * - */ - @JsonProperty("percentUsed") - public void setPercentUsed(Double percentUsed) { - this.percentUsed = percentUsed; - } - - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - public Double getVmPageNumberFree() { - return vmPageNumberFree; - } - - /** - * number of free vmPages in numbers - * - */ - @JsonProperty("vmPageNumberFree") - public void setVmPageNumberFree(Double vmPageNumberFree) { - this.vmPageNumberFree = vmPageNumberFree; - } - - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - public Double getVmPageNumberUsed() { - return vmPageNumberUsed; - } - - /** - * number of used vmPages in numbers - * - */ - @JsonProperty("vmPageNumberUsed") - public void setVmPageNumberUsed(Double vmPageNumberUsed) { - this.vmPageNumberUsed = vmPageNumberUsed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(bytesFree).append(bytesUsed).append(hugePagesIdentifier).append(percentFree).append(percentUsed).append(vmPageNumberFree).append(vmPageNumberUsed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof HugePagesArray) == false) { - return false; - } - HugePagesArray rhs = ((HugePagesArray) other); - return new EqualsBuilder().append(bytesFree, rhs.bytesFree).append(bytesUsed, rhs.bytesUsed).append(hugePagesIdentifier, rhs.hugePagesIdentifier).append(percentFree, rhs.percentFree).append(percentUsed, rhs.percentUsed).append(vmPageNumberFree, rhs.vmPageNumberFree).append(vmPageNumberUsed, rhs.vmPageNumberUsed).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java deleted file mode 100644 index 4b34a24..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/InternalHeaderFields.java +++ /dev/null @@ -1,79 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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 additionalProperties = new HashMap(); - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @JsonAnyGetter - public Map 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(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof InternalHeaderFields) == false) { - return false; - } - InternalHeaderFields rhs = ((InternalHeaderFields) other); - return new EqualsBuilder().append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java deleted file mode 100644 index be17bff..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/Ipmi.java +++ /dev/null @@ -1,403 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.List; -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "exitAirTemperature", - "frontPanelTemperature", - "ioModuleTemperature", - "ipmiBaseboardTemperatureArray", - "ipmiBaseboardVoltageRegulatorArray", - "ipmiBatteryArray", - "ipmiFanArray", - "ipmiHsbpArray", - "ipmiGlobalAggregateTemperatureMarginArray", - "ipmiNicArray", - "ipmiPowerSupplyArray", - "ipmiProcessorArray", - "systemAirflow" -}) -public class Ipmi { - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - @JsonPropertyDescription("system fan exit air flow temperature in celsius") - private Double exitAirTemperature; - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - @JsonPropertyDescription("front panel temperature in celsius") - private Double frontPanelTemperature; - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - @JsonPropertyDescription("io module temperature in celsius") - private Double ioModuleTemperature; - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - @JsonPropertyDescription("array of ipmiBaseboardTemperature objects") - private List ipmiBaseboardTemperatureArray = new ArrayList(); - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - @JsonPropertyDescription("array of ipmiBaseboardVoltageRegulator objects") - private List ipmiBaseboardVoltageRegulatorArray = new ArrayList(); - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - @JsonPropertyDescription("array of ipmiBattery objects") - private List ipmiBatteryArray = new ArrayList(); - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - @JsonPropertyDescription("array of ipmiFan objects") - private List ipmiFanArray = new ArrayList(); - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - @JsonPropertyDescription("array of ipmiHsbp objects") - private List ipmiHsbpArray = new ArrayList(); - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - @JsonPropertyDescription("array of ipmiGlobalAggregateTemperatureMargin objects") - private List ipmiGlobalAggregateTemperatureMarginArray = new ArrayList(); - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - @JsonPropertyDescription("array of ipmiNic objects") - private List ipmiNicArray = new ArrayList(); - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - @JsonPropertyDescription("array of ipmiPowerSupply objects") - private List ipmiPowerSupplyArray = new ArrayList(); - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - @JsonPropertyDescription("array of ipmiProcessor objects") - private List ipmiProcessorArray = new ArrayList(); - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - @JsonPropertyDescription("airfflow in cubic feet per minute (cfm)") - private Double systemAirflow; - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - public Double getExitAirTemperature() { - return exitAirTemperature; - } - - /** - * system fan exit air flow temperature in celsius - * - */ - @JsonProperty("exitAirTemperature") - public void setExitAirTemperature(Double exitAirTemperature) { - this.exitAirTemperature = exitAirTemperature; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - public Double getFrontPanelTemperature() { - return frontPanelTemperature; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("frontPanelTemperature") - public void setFrontPanelTemperature(Double frontPanelTemperature) { - this.frontPanelTemperature = frontPanelTemperature; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - public Double getIoModuleTemperature() { - return ioModuleTemperature; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("ioModuleTemperature") - public void setIoModuleTemperature(Double ioModuleTemperature) { - this.ioModuleTemperature = ioModuleTemperature; - } - - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - public List getIpmiBaseboardTemperatureArray() { - return ipmiBaseboardTemperatureArray; - } - - /** - * array of ipmiBaseboardTemperature objects - * - */ - @JsonProperty("ipmiBaseboardTemperatureArray") - public void setIpmiBaseboardTemperatureArray(List ipmiBaseboardTemperatureArray) { - this.ipmiBaseboardTemperatureArray = ipmiBaseboardTemperatureArray; - } - - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - public List getIpmiBaseboardVoltageRegulatorArray() { - return ipmiBaseboardVoltageRegulatorArray; - } - - /** - * array of ipmiBaseboardVoltageRegulator objects - * - */ - @JsonProperty("ipmiBaseboardVoltageRegulatorArray") - public void setIpmiBaseboardVoltageRegulatorArray(List ipmiBaseboardVoltageRegulatorArray) { - this.ipmiBaseboardVoltageRegulatorArray = ipmiBaseboardVoltageRegulatorArray; - } - - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - public List getIpmiBatteryArray() { - return ipmiBatteryArray; - } - - /** - * array of ipmiBattery objects - * - */ - @JsonProperty("ipmiBatteryArray") - public void setIpmiBatteryArray(List ipmiBatteryArray) { - this.ipmiBatteryArray = ipmiBatteryArray; - } - - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - public List getIpmiFanArray() { - return ipmiFanArray; - } - - /** - * array of ipmiFan objects - * - */ - @JsonProperty("ipmiFanArray") - public void setIpmiFanArray(List ipmiFanArray) { - this.ipmiFanArray = ipmiFanArray; - } - - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - public List getIpmiHsbpArray() { - return ipmiHsbpArray; - } - - /** - * array of ipmiHsbp objects - * - */ - @JsonProperty("ipmiHsbpArray") - public void setIpmiHsbpArray(List ipmiHsbpArray) { - this.ipmiHsbpArray = ipmiHsbpArray; - } - - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - public List getIpmiGlobalAggregateTemperatureMarginArray() { - return ipmiGlobalAggregateTemperatureMarginArray; - } - - /** - * array of ipmiGlobalAggregateTemperatureMargin objects - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginArray") - public void setIpmiGlobalAggregateTemperatureMarginArray(List ipmiGlobalAggregateTemperatureMarginArray) { - this.ipmiGlobalAggregateTemperatureMarginArray = ipmiGlobalAggregateTemperatureMarginArray; - } - - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - public List getIpmiNicArray() { - return ipmiNicArray; - } - - /** - * array of ipmiNic objects - * - */ - @JsonProperty("ipmiNicArray") - public void setIpmiNicArray(List ipmiNicArray) { - this.ipmiNicArray = ipmiNicArray; - } - - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - public List getIpmiPowerSupplyArray() { - return ipmiPowerSupplyArray; - } - - /** - * array of ipmiPowerSupply objects - * - */ - @JsonProperty("ipmiPowerSupplyArray") - public void setIpmiPowerSupplyArray(List ipmiPowerSupplyArray) { - this.ipmiPowerSupplyArray = ipmiPowerSupplyArray; - } - - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - public List getIpmiProcessorArray() { - return ipmiProcessorArray; - } - - /** - * array of ipmiProcessor objects - * - */ - @JsonProperty("ipmiProcessorArray") - public void setIpmiProcessorArray(List ipmiProcessorArray) { - this.ipmiProcessorArray = ipmiProcessorArray; - } - - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - public Double getSystemAirflow() { - return systemAirflow; - } - - /** - * airfflow in cubic feet per minute (cfm) - * - */ - @JsonProperty("systemAirflow") - public void setSystemAirflow(Double systemAirflow) { - this.systemAirflow = systemAirflow; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(exitAirTemperature).append(frontPanelTemperature).append(ioModuleTemperature).append(ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray).append(ipmiFanArray).append(ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray).append(ipmiPowerSupplyArray).append(ipmiProcessorArray).append(systemAirflow).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof Ipmi) == false) { - return false; - } - Ipmi rhs = ((Ipmi) other); - return new EqualsBuilder().append(exitAirTemperature, rhs.exitAirTemperature).append(frontPanelTemperature, rhs.frontPanelTemperature).append(ioModuleTemperature, rhs.ioModuleTemperature).append(ipmiBaseboardTemperatureArray, rhs.ipmiBaseboardTemperatureArray).append(ipmiBaseboardVoltageRegulatorArray, rhs.ipmiBaseboardVoltageRegulatorArray).append(ipmiBatteryArray, rhs.ipmiBatteryArray).append(ipmiFanArray, rhs.ipmiFanArray).append(ipmiHsbpArray, rhs.ipmiHsbpArray).append(ipmiGlobalAggregateTemperatureMarginArray, rhs.ipmiGlobalAggregateTemperatureMarginArray).append(ipmiNicArray, rhs.ipmiNicArray).append(ipmiPowerSupplyArray, rhs.ipmiPowerSupplyArray).append(ipmiProcessorArray, rhs.ipmiProcessorArray).append(systemAirflow, rhs.systemAirflow).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java deleted file mode 100644 index 1f492a8..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardTemperatureArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) baseboard temperature metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "baseboardTemperatureIdentifier", - "baseboardTemperature" -}) -public class IpmiBaseboardTemperatureArray { - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - @JsonPropertyDescription("identifier for the location where the temperature is taken") - private String baseboardTemperatureIdentifier; - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - @JsonPropertyDescription("baseboard temperature in celsius") - private Double baseboardTemperature; - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - public String getBaseboardTemperatureIdentifier() { - return baseboardTemperatureIdentifier; - } - - /** - * identifier for the location where the temperature is taken - * (Required) - * - */ - @JsonProperty("baseboardTemperatureIdentifier") - public void setBaseboardTemperatureIdentifier(String baseboardTemperatureIdentifier) { - this.baseboardTemperatureIdentifier = baseboardTemperatureIdentifier; - } - - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - public Double getBaseboardTemperature() { - return baseboardTemperature; - } - - /** - * baseboard temperature in celsius - * - */ - @JsonProperty("baseboardTemperature") - public void setBaseboardTemperature(Double baseboardTemperature) { - this.baseboardTemperature = baseboardTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(baseboardTemperatureIdentifier).append(baseboardTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBaseboardTemperatureArray) == false) { - return false; - } - IpmiBaseboardTemperatureArray rhs = ((IpmiBaseboardTemperatureArray) other); - return new EqualsBuilder().append(baseboardTemperatureIdentifier, rhs.baseboardTemperatureIdentifier).append(baseboardTemperature, rhs.baseboardTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java deleted file mode 100644 index 0fce2d9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBaseboardVoltageRegulatorArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) baseboard voltage regulator metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "baseboardVoltageRegulatorIdentifier", - "voltageRegulatorTemperature" -}) -public class IpmiBaseboardVoltageRegulatorArray { - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - @JsonPropertyDescription("identifier for the baseboard voltage regulator") - private String baseboardVoltageRegulatorIdentifier; - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - @JsonPropertyDescription("voltage regulator temperature in celsius") - private Double voltageRegulatorTemperature; - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - public String getBaseboardVoltageRegulatorIdentifier() { - return baseboardVoltageRegulatorIdentifier; - } - - /** - * identifier for the baseboard voltage regulator - * (Required) - * - */ - @JsonProperty("baseboardVoltageRegulatorIdentifier") - public void setBaseboardVoltageRegulatorIdentifier(String baseboardVoltageRegulatorIdentifier) { - this.baseboardVoltageRegulatorIdentifier = baseboardVoltageRegulatorIdentifier; - } - - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - public Double getVoltageRegulatorTemperature() { - return voltageRegulatorTemperature; - } - - /** - * voltage regulator temperature in celsius - * - */ - @JsonProperty("voltageRegulatorTemperature") - public void setVoltageRegulatorTemperature(Double voltageRegulatorTemperature) { - this.voltageRegulatorTemperature = voltageRegulatorTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBaseboardVoltageRegulatorArray) == false) { - return false; - } - IpmiBaseboardVoltageRegulatorArray rhs = ((IpmiBaseboardVoltageRegulatorArray) other); - return new EqualsBuilder().append(baseboardVoltageRegulatorIdentifier, rhs.baseboardVoltageRegulatorIdentifier).append(voltageRegulatorTemperature, rhs.voltageRegulatorTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java deleted file mode 100644 index 6c9ab9a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiBatteryArray.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) battery metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "batteryIdentifier", - "batteryType", - "batteryVoltageLevel" -}) -public class IpmiBatteryArray { - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - @JsonPropertyDescription("identifier for the battery") - private String batteryIdentifier; - /** - * type of battery - * - */ - @JsonProperty("batteryType") - @JsonPropertyDescription("type of battery") - private String batteryType; - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - @JsonPropertyDescription("battery voltage level") - private Double batteryVoltageLevel; - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - public String getBatteryIdentifier() { - return batteryIdentifier; - } - - /** - * identifier for the battery - * (Required) - * - */ - @JsonProperty("batteryIdentifier") - public void setBatteryIdentifier(String batteryIdentifier) { - this.batteryIdentifier = batteryIdentifier; - } - - /** - * type of battery - * - */ - @JsonProperty("batteryType") - public String getBatteryType() { - return batteryType; - } - - /** - * type of battery - * - */ - @JsonProperty("batteryType") - public void setBatteryType(String batteryType) { - this.batteryType = batteryType; - } - - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - public Double getBatteryVoltageLevel() { - return batteryVoltageLevel; - } - - /** - * battery voltage level - * - */ - @JsonProperty("batteryVoltageLevel") - public void setBatteryVoltageLevel(Double batteryVoltageLevel) { - this.batteryVoltageLevel = batteryVoltageLevel; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(batteryIdentifier).append(batteryType).append(batteryVoltageLevel).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiBatteryArray) == false) { - return false; - } - IpmiBatteryArray rhs = ((IpmiBatteryArray) other); - return new EqualsBuilder().append(batteryIdentifier, rhs.batteryIdentifier).append(batteryType, rhs.batteryType).append(batteryVoltageLevel, rhs.batteryVoltageLevel).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java deleted file mode 100644 index c3af417..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiFanArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) fan metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "fanIdentifier", - "fanSpeed" -}) -public class IpmiFanArray { - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - @JsonPropertyDescription("identifier for the fan") - private String fanIdentifier; - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - @JsonPropertyDescription("fan speed in revolutions per minute (rpm)") - private Double fanSpeed; - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - public String getFanIdentifier() { - return fanIdentifier; - } - - /** - * identifier for the fan - * (Required) - * - */ - @JsonProperty("fanIdentifier") - public void setFanIdentifier(String fanIdentifier) { - this.fanIdentifier = fanIdentifier; - } - - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - public Double getFanSpeed() { - return fanSpeed; - } - - /** - * fan speed in revolutions per minute (rpm) - * - */ - @JsonProperty("fanSpeed") - public void setFanSpeed(Double fanSpeed) { - this.fanSpeed = fanSpeed; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(fanIdentifier).append(fanSpeed).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiFanArray) == false) { - return false; - } - IpmiFanArray rhs = ((IpmiFanArray) other); - return new EqualsBuilder().append(fanIdentifier, rhs.fanIdentifier).append(fanSpeed, rhs.fanSpeed).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java deleted file mode 100644 index 8c80e35..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiGlobalAggregateTemperatureMarginArray.java +++ /dev/null @@ -1,121 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) global aggregate temperature margin - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "ipmiGlobalAggregateTemperatureMarginIdentifier", - "globalAggregateTemperatureMargin" -}) -public class IpmiGlobalAggregateTemperatureMarginArray { - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - @JsonPropertyDescription("identifier for the ipmi global aggregate temperature margin metrics") - private String ipmiGlobalAggregateTemperatureMarginIdentifier; - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - @JsonPropertyDescription("the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point") - private Double globalAggregateTemperatureMargin; - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - public String getIpmiGlobalAggregateTemperatureMarginIdentifier() { - return ipmiGlobalAggregateTemperatureMarginIdentifier; - } - - /** - * identifier for the ipmi global aggregate temperature margin metrics - * (Required) - * - */ - @JsonProperty("ipmiGlobalAggregateTemperatureMarginIdentifier") - public void setIpmiGlobalAggregateTemperatureMarginIdentifier(String ipmiGlobalAggregateTemperatureMarginIdentifier) { - this.ipmiGlobalAggregateTemperatureMarginIdentifier = ipmiGlobalAggregateTemperatureMarginIdentifier; - } - - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - public Double getGlobalAggregateTemperatureMargin() { - return globalAggregateTemperatureMargin; - } - - /** - * the difference between the current global aggregate temperature, in celsius, and the global aggregate throttling thermal trip point - * (Required) - * - */ - @JsonProperty("globalAggregateTemperatureMargin") - public void setGlobalAggregateTemperatureMargin(Double globalAggregateTemperatureMargin) { - this.globalAggregateTemperatureMargin = globalAggregateTemperatureMargin; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiGlobalAggregateTemperatureMarginArray) == false) { - return false; - } - IpmiGlobalAggregateTemperatureMarginArray rhs = ((IpmiGlobalAggregateTemperatureMarginArray) other); - return new EqualsBuilder().append(ipmiGlobalAggregateTemperatureMarginIdentifier, rhs.ipmiGlobalAggregateTemperatureMarginIdentifier).append(globalAggregateTemperatureMargin, rhs.globalAggregateTemperatureMargin).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java deleted file mode 100644 index 751d486..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiHsbpArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) hot swap backplane power metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "hsbpIdentifier", - "hsbpTemperature" -}) -public class IpmiHsbpArray { - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - @JsonPropertyDescription("identifier for the hot swap backplane power unit") - private String hsbpIdentifier; - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - @JsonPropertyDescription("hot swap backplane power temperature in celsius") - private Double hsbpTemperature; - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - public String getHsbpIdentifier() { - return hsbpIdentifier; - } - - /** - * identifier for the hot swap backplane power unit - * (Required) - * - */ - @JsonProperty("hsbpIdentifier") - public void setHsbpIdentifier(String hsbpIdentifier) { - this.hsbpIdentifier = hsbpIdentifier; - } - - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - public Double getHsbpTemperature() { - return hsbpTemperature; - } - - /** - * hot swap backplane power temperature in celsius - * - */ - @JsonProperty("hsbpTemperature") - public void setHsbpTemperature(Double hsbpTemperature) { - this.hsbpTemperature = hsbpTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(hsbpIdentifier).append(hsbpTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiHsbpArray) == false) { - return false; - } - IpmiHsbpArray rhs = ((IpmiHsbpArray) other); - return new EqualsBuilder().append(hsbpIdentifier, rhs.hsbpIdentifier).append(hsbpTemperature, rhs.hsbpTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java deleted file mode 100644 index ec84e99..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiNicArray.java +++ /dev/null @@ -1,118 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) network interface control card (nic) metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "nicIdentifier", - "nicTemperature" -}) -public class IpmiNicArray { - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - @JsonPropertyDescription("identifier for the network interface control card") - private String nicIdentifier; - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - @JsonPropertyDescription("nic temperature in celsius") - private Double nicTemperature; - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public String getNicIdentifier() { - return nicIdentifier; - } - - /** - * identifier for the network interface control card - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public void setNicIdentifier(String nicIdentifier) { - this.nicIdentifier = nicIdentifier; - } - - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - public Double getNicTemperature() { - return nicTemperature; - } - - /** - * nic temperature in celsius - * - */ - @JsonProperty("nicTemperature") - public void setNicTemperature(Double nicTemperature) { - this.nicTemperature = nicTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(nicIdentifier).append(nicTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiNicArray) == false) { - return false; - } - IpmiNicArray rhs = ((IpmiNicArray) other); - return new EqualsBuilder().append(nicIdentifier, rhs.nicIdentifier).append(nicTemperature, rhs.nicTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java deleted file mode 100644 index a78ba4a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiPowerSupplyArray.java +++ /dev/null @@ -1,170 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) power supply metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "powerSupplyIdentifier", - "powerSupplyInputPower", - "powerSupplyCurrentOutputPercent", - "powerSupplyTemperature" -}) -public class IpmiPowerSupplyArray { - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - @JsonPropertyDescription("identifier for the power supply") - private String powerSupplyIdentifier; - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - @JsonPropertyDescription("input power in watts") - private Double powerSupplyInputPower; - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - @JsonPropertyDescription("current output voltage as a percentage of the design specified level") - private Double powerSupplyCurrentOutputPercent; - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - @JsonPropertyDescription("power supply temperature in celsius") - private Double powerSupplyTemperature; - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - public String getPowerSupplyIdentifier() { - return powerSupplyIdentifier; - } - - /** - * identifier for the power supply - * (Required) - * - */ - @JsonProperty("powerSupplyIdentifier") - public void setPowerSupplyIdentifier(String powerSupplyIdentifier) { - this.powerSupplyIdentifier = powerSupplyIdentifier; - } - - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - public Double getPowerSupplyInputPower() { - return powerSupplyInputPower; - } - - /** - * input power in watts - * - */ - @JsonProperty("powerSupplyInputPower") - public void setPowerSupplyInputPower(Double powerSupplyInputPower) { - this.powerSupplyInputPower = powerSupplyInputPower; - } - - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - public Double getPowerSupplyCurrentOutputPercent() { - return powerSupplyCurrentOutputPercent; - } - - /** - * current output voltage as a percentage of the design specified level - * - */ - @JsonProperty("powerSupplyCurrentOutputPercent") - public void setPowerSupplyCurrentOutputPercent(Double powerSupplyCurrentOutputPercent) { - this.powerSupplyCurrentOutputPercent = powerSupplyCurrentOutputPercent; - } - - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - public Double getPowerSupplyTemperature() { - return powerSupplyTemperature; - } - - /** - * power supply temperature in celsius - * - */ - @JsonProperty("powerSupplyTemperature") - public void setPowerSupplyTemperature(Double powerSupplyTemperature) { - this.powerSupplyTemperature = powerSupplyTemperature; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(powerSupplyIdentifier).append(powerSupplyInputPower).append(powerSupplyCurrentOutputPercent).append(powerSupplyTemperature).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiPowerSupplyArray) == false) { - return false; - } - IpmiPowerSupplyArray rhs = ((IpmiPowerSupplyArray) other); - return new EqualsBuilder().append(powerSupplyIdentifier, rhs.powerSupplyIdentifier).append(powerSupplyInputPower, rhs.powerSupplyInputPower).append(powerSupplyCurrentOutputPercent, rhs.powerSupplyCurrentOutputPercent).append(powerSupplyTemperature, rhs.powerSupplyTemperature).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java deleted file mode 100644 index e8733fe..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/IpmiProcessorArray.java +++ /dev/null @@ -1,172 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.List; -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface processor metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "processorIdentifier", - "processorThermalControlPercent", - "processorDtsThermalMargin", - "processorDimmAggregateThermalMarginArray" -}) -public class IpmiProcessorArray { - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - @JsonPropertyDescription("identifier for an ipmi processor") - private String processorIdentifier; - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - @JsonPropertyDescription("io module temperature in celsius") - private Double processorThermalControlPercent; - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - @JsonPropertyDescription("front panel temperature in celsius") - private Double processorDtsThermalMargin; - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - @JsonPropertyDescription("array of processorDimmAggregateThermalMargin objects") - private List processorDimmAggregateThermalMarginArray = new ArrayList(); - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - public String getProcessorIdentifier() { - return processorIdentifier; - } - - /** - * identifier for an ipmi processor - * (Required) - * - */ - @JsonProperty("processorIdentifier") - public void setProcessorIdentifier(String processorIdentifier) { - this.processorIdentifier = processorIdentifier; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - public Double getProcessorThermalControlPercent() { - return processorThermalControlPercent; - } - - /** - * io module temperature in celsius - * - */ - @JsonProperty("processorThermalControlPercent") - public void setProcessorThermalControlPercent(Double processorThermalControlPercent) { - this.processorThermalControlPercent = processorThermalControlPercent; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - public Double getProcessorDtsThermalMargin() { - return processorDtsThermalMargin; - } - - /** - * front panel temperature in celsius - * - */ - @JsonProperty("processorDtsThermalMargin") - public void setProcessorDtsThermalMargin(Double processorDtsThermalMargin) { - this.processorDtsThermalMargin = processorDtsThermalMargin; - } - - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - public List getProcessorDimmAggregateThermalMarginArray() { - return processorDimmAggregateThermalMarginArray; - } - - /** - * array of processorDimmAggregateThermalMargin objects - * - */ - @JsonProperty("processorDimmAggregateThermalMarginArray") - public void setProcessorDimmAggregateThermalMarginArray(List processorDimmAggregateThermalMarginArray) { - this.processorDimmAggregateThermalMarginArray = processorDimmAggregateThermalMarginArray; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(processorIdentifier).append(processorThermalControlPercent).append(processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof IpmiProcessorArray) == false) { - return false; - } - IpmiProcessorArray rhs = ((IpmiProcessorArray) other); - return new EqualsBuilder().append(processorIdentifier, rhs.processorIdentifier).append(processorThermalControlPercent, rhs.processorThermalControlPercent).append(processorDtsThermalMargin, rhs.processorDtsThermalMargin).append(processorDimmAggregateThermalMarginArray, rhs.processorDimmAggregateThermalMarginArray).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java deleted file mode 100644 index 0ca44cd..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LatencyDistribution.java +++ /dev/null @@ -1,116 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import com.fasterxml.jackson.annotation.JsonInclude; -import com.fasterxml.jackson.annotation.JsonProperty; -import com.fasterxml.jackson.annotation.JsonPropertyOrder; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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; - - /** - * - * (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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(countsInTheBucket).append(highEndOfLatencyBucket).append(lowEndOfLatencyBucket).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof LatencyDistribution) == false) { - return false; - } - LatencyDistribution rhs = ((LatencyDistribution) other); - return new EqualsBuilder().append(countsInTheBucket, rhs.countsInTheBucket).append(highEndOfLatencyBucket, rhs.highEndOfLatencyBucket).append(lowEndOfLatencyBucket, rhs.lowEndOfLatencyBucket).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java deleted file mode 100644 index 00f5394..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/LoadArray.java +++ /dev/null @@ -1,141 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * /proc/loadavg cpu utilization and io utilization metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "longTerm", - "midTerm", - "shortTerm" -}) -public class LoadArray { - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg") - private Double longTerm; - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg") - private Double midTerm; - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - @JsonPropertyDescription("number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg") - private Double shortTerm; - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - public Double getLongTerm() { - return longTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 15 minutes using /proc/loadavg - * - */ - @JsonProperty("longTerm") - public void setLongTerm(Double longTerm) { - this.longTerm = longTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - public Double getMidTerm() { - return midTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 5 minutes using /proc/loadavg - * - */ - @JsonProperty("midTerm") - public void setMidTerm(Double midTerm) { - this.midTerm = midTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - public Double getShortTerm() { - return shortTerm; - } - - /** - * number of jobs in the run queue (state R, cpu utilization) or waiting for disk I/O (state D, io utilization) averaged over 1 minute using /proc/loadavg - * - */ - @JsonProperty("shortTerm") - public void setShortTerm(Double shortTerm) { - this.shortTerm = shortTerm; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(longTerm).append(midTerm).append(shortTerm).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof LoadArray) == false) { - return false; - } - LoadArray rhs = ((LoadArray) other); - return new EqualsBuilder().append(longTerm, rhs.longTerm).append(midTerm, rhs.midTerm).append(shortTerm, rhs.shortTerm).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java deleted file mode 100644 index fb8c075..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MachineCheckExceptionArray.java +++ /dev/null @@ -1,196 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on vm machine check exceptions - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "correctedMemoryErrors", - "correctedMemoryErrorsIn1Hr", - "uncorrectedMemoryErrors", - "uncorrectedMemoryErrorsIn1Hr", - "vmIdentifier" -}) -public class MachineCheckExceptionArray { - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - @JsonPropertyDescription("total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval") - private Double correctedMemoryErrors; - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - @JsonPropertyDescription("total hardware errors that were corrected by the hardware over the last one hour") - private Double correctedMemoryErrorsIn1Hr; - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval") - private Double uncorrectedMemoryErrors; - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - @JsonPropertyDescription("total uncorrected hardware errors that were detected by the hardware over the last one hour") - private Double uncorrectedMemoryErrorsIn1Hr; - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - @JsonPropertyDescription("virtual machine identifier associated with the machine check exception") - private String vmIdentifier; - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - public Double getCorrectedMemoryErrors() { - return correctedMemoryErrors; - } - - /** - * total hardware errors that were corrected by the hardware (e.g. data corruption corrected via ECC) over the measurementInterval - * - */ - @JsonProperty("correctedMemoryErrors") - public void setCorrectedMemoryErrors(Double correctedMemoryErrors) { - this.correctedMemoryErrors = correctedMemoryErrors; - } - - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - public Double getCorrectedMemoryErrorsIn1Hr() { - return correctedMemoryErrorsIn1Hr; - } - - /** - * total hardware errors that were corrected by the hardware over the last one hour - * - */ - @JsonProperty("correctedMemoryErrorsIn1Hr") - public void setCorrectedMemoryErrorsIn1Hr(Double correctedMemoryErrorsIn1Hr) { - this.correctedMemoryErrorsIn1Hr = correctedMemoryErrorsIn1Hr; - } - - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - public Double getUncorrectedMemoryErrors() { - return uncorrectedMemoryErrors; - } - - /** - * total uncorrected hardware errors that were detected by the hardware (e.g., causing data corruption) over the measurementInterval - * - */ - @JsonProperty("uncorrectedMemoryErrors") - public void setUncorrectedMemoryErrors(Double uncorrectedMemoryErrors) { - this.uncorrectedMemoryErrors = uncorrectedMemoryErrors; - } - - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - public Double getUncorrectedMemoryErrorsIn1Hr() { - return uncorrectedMemoryErrorsIn1Hr; - } - - /** - * total uncorrected hardware errors that were detected by the hardware over the last one hour - * - */ - @JsonProperty("uncorrectedMemoryErrorsIn1Hr") - public void setUncorrectedMemoryErrorsIn1Hr(Double uncorrectedMemoryErrorsIn1Hr) { - this.uncorrectedMemoryErrorsIn1Hr = uncorrectedMemoryErrorsIn1Hr; - } - - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public String getVmIdentifier() { - return vmIdentifier; - } - - /** - * virtual machine identifier associated with the machine check exception - * (Required) - * - */ - @JsonProperty("vmIdentifier") - public void setVmIdentifier(String vmIdentifier) { - this.vmIdentifier = vmIdentifier; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MachineCheckExceptionArray) == false) { - return false; - } - MachineCheckExceptionArray rhs = ((MachineCheckExceptionArray) other); - return new EqualsBuilder().append(correctedMemoryErrors, rhs.correctedMemoryErrors).append(correctedMemoryErrorsIn1Hr, rhs.correctedMemoryErrorsIn1Hr).append(uncorrectedMemoryErrors, rhs.uncorrectedMemoryErrors).append(uncorrectedMemoryErrorsIn1Hr, rhs.uncorrectedMemoryErrorsIn1Hr).append(vmIdentifier, rhs.vmIdentifier).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java deleted file mode 100644 index 2c82fed..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MeasurementFields.java +++ /dev/null @@ -1,737 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * measurement fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "additionalMeasurements", - "additionalObjects", - "codecUsageArray", - "concurrentSessions", - "configuredEntities", - "cpuUsageArray", - "diskUsageArray", - "featureUsageArray", - "filesystemUsageArray", - "hugePagesArray", - "ipmi", - "latencyDistribution", - "loadArray", - "machineCheckExceptionArray", - "meanRequestLatency", - "measurementInterval", - "measurementFieldsVersion", - "memoryUsageArray", - "numberOfMediaPortsInUse", - "requestRate", - "nfcScalingMetric", - "nicPerformanceArray", - "processStatsArray" -}) -public class MeasurementFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - @JsonPropertyDescription("array of named hashMaps") - private List additionalMeasurements = new ArrayList(); - /** - * 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 additionalObjects = new ArrayList(); - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - @JsonPropertyDescription("array of codecs in use") - private List codecUsageArray = new ArrayList(); - /** - * peak concurrent sessions for the VM or xNF over the measurementInterval - * - */ - @JsonProperty("concurrentSessions") - @JsonPropertyDescription("peak concurrent sessions for the VM or xNF 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 xNF - * - */ - @JsonProperty("configuredEntities") - @JsonPropertyDescription("over the measurementInterval, peak total number of: users, subscribers, devices, adjacencies, etc., for the VM, or subscribers, devices, etc., for the xNF") - private Integer configuredEntities; - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - @JsonPropertyDescription("usage of an array of CPUs") - private List cpuUsageArray = new ArrayList(); - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - @JsonPropertyDescription("usage of an array of disks") - private List diskUsageArray = new ArrayList(); - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation featureUsageArray; - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - @JsonPropertyDescription("filesystem usage of the VM on which the xNFC reporting the event is running") - private List filesystemUsageArray = new ArrayList(); - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - @JsonPropertyDescription("array of metrics on hugepPages") - private List hugePagesArray = new ArrayList(); - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - @JsonPropertyDescription("intelligent platform management interface metrics") - private Ipmi ipmi; - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - @JsonPropertyDescription("array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges") - private List latencyDistribution = new ArrayList(); - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - @JsonPropertyDescription("array of system load metrics") - private List loadArray = new ArrayList(); - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - @JsonPropertyDescription("array of machine check exceptions") - private List machineCheckExceptionArray = new ArrayList(); - /** - * mean seconds required to respond to each request for the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("meanRequestLatency") - @JsonPropertyDescription("mean seconds required to respond to each request for the VM on which the xNFC 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 measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - @JsonPropertyDescription("version of the measurementFields block") - private MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion; - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - @JsonPropertyDescription("memory usage of an array of VMs") - private List memoryUsageArray = new ArrayList(); - /** - * 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 xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - @JsonPropertyDescription("peak rate of service requests per second to the xNF over the measurementInterval") - private Double requestRate; - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - @JsonPropertyDescription("represents busy-ness of the network function from 0 to 100 as reported by the xNFC") - private Integer nfcScalingMetric; - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - @JsonPropertyDescription("usage of an array of network interface cards") - private List nicPerformanceArray = new ArrayList(); - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - @JsonPropertyDescription("array of metrics on system processes") - private List processStatsArray = new ArrayList(); - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - public List getAdditionalMeasurements() { - return additionalMeasurements; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("additionalMeasurements") - public void setAdditionalMeasurements(List additionalMeasurements) { - this.additionalMeasurements = additionalMeasurements; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("additionalObjects") - public List getAdditionalObjects() { - return additionalObjects; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("additionalObjects") - public void setAdditionalObjects(List additionalObjects) { - this.additionalObjects = additionalObjects; - } - - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - public List getCodecUsageArray() { - return codecUsageArray; - } - - /** - * array of codecs in use - * - */ - @JsonProperty("codecUsageArray") - public void setCodecUsageArray(List codecUsageArray) { - this.codecUsageArray = codecUsageArray; - } - - /** - * peak concurrent sessions for the VM or xNF over the measurementInterval - * - */ - @JsonProperty("concurrentSessions") - public Integer getConcurrentSessions() { - return concurrentSessions; - } - - /** - * peak concurrent sessions for the VM or xNF 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 xNF - * - */ - @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 xNF - * - */ - @JsonProperty("configuredEntities") - public void setConfiguredEntities(Integer configuredEntities) { - this.configuredEntities = configuredEntities; - } - - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - public List getCpuUsageArray() { - return cpuUsageArray; - } - - /** - * usage of an array of CPUs - * - */ - @JsonProperty("cpuUsageArray") - public void setCpuUsageArray(List cpuUsageArray) { - this.cpuUsageArray = cpuUsageArray; - } - - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - public List getDiskUsageArray() { - return diskUsageArray; - } - - /** - * usage of an array of disks - * - */ - @JsonProperty("diskUsageArray") - public void setDiskUsageArray(List diskUsageArray) { - this.diskUsageArray = diskUsageArray; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - public AlarmAdditionalInformation getFeatureUsageArray() { - return featureUsageArray; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("featureUsageArray") - public void setFeatureUsageArray(AlarmAdditionalInformation featureUsageArray) { - this.featureUsageArray = featureUsageArray; - } - - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - public List getFilesystemUsageArray() { - return filesystemUsageArray; - } - - /** - * filesystem usage of the VM on which the xNFC reporting the event is running - * - */ - @JsonProperty("filesystemUsageArray") - public void setFilesystemUsageArray(List filesystemUsageArray) { - this.filesystemUsageArray = filesystemUsageArray; - } - - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - public List getHugePagesArray() { - return hugePagesArray; - } - - /** - * array of metrics on hugepPages - * - */ - @JsonProperty("hugePagesArray") - public void setHugePagesArray(List hugePagesArray) { - this.hugePagesArray = hugePagesArray; - } - - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - public Ipmi getIpmi() { - return ipmi; - } - - /** - * intelligent platform management interface metrics - * - */ - @JsonProperty("ipmi") - public void setIpmi(Ipmi ipmi) { - this.ipmi = ipmi; - } - - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - public List getLatencyDistribution() { - return latencyDistribution; - } - - /** - * array of integers representing counts of requests whose latency in milliseconds falls within per-xNF configured ranges - * - */ - @JsonProperty("latencyDistribution") - public void setLatencyDistribution(List latencyDistribution) { - this.latencyDistribution = latencyDistribution; - } - - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - public List getLoadArray() { - return loadArray; - } - - /** - * array of system load metrics - * - */ - @JsonProperty("loadArray") - public void setLoadArray(List loadArray) { - this.loadArray = loadArray; - } - - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - public List getMachineCheckExceptionArray() { - return machineCheckExceptionArray; - } - - /** - * array of machine check exceptions - * - */ - @JsonProperty("machineCheckExceptionArray") - public void setMachineCheckExceptionArray(List machineCheckExceptionArray) { - this.machineCheckExceptionArray = machineCheckExceptionArray; - } - - /** - * mean seconds required to respond to each request for the VM on which the xNFC 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 xNFC 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 measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - public MeasurementFields.MeasurementFieldsVersion getMeasurementFieldsVersion() { - return measurementFieldsVersion; - } - - /** - * version of the measurementFields block - * (Required) - * - */ - @JsonProperty("measurementFieldsVersion") - public void setMeasurementFieldsVersion(MeasurementFields.MeasurementFieldsVersion measurementFieldsVersion) { - this.measurementFieldsVersion = measurementFieldsVersion; - } - - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - public List getMemoryUsageArray() { - return memoryUsageArray; - } - - /** - * memory usage of an array of VMs - * - */ - @JsonProperty("memoryUsageArray") - public void setMemoryUsageArray(List 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 xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - public Double getRequestRate() { - return requestRate; - } - - /** - * peak rate of service requests per second to the xNF over the measurementInterval - * - */ - @JsonProperty("requestRate") - public void setRequestRate(Double requestRate) { - this.requestRate = requestRate; - } - - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - public Integer getNfcScalingMetric() { - return nfcScalingMetric; - } - - /** - * represents busy-ness of the network function from 0 to 100 as reported by the xNFC - * - */ - @JsonProperty("nfcScalingMetric") - public void setNfcScalingMetric(Integer nfcScalingMetric) { - this.nfcScalingMetric = nfcScalingMetric; - } - - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - public List getNicPerformanceArray() { - return nicPerformanceArray; - } - - /** - * usage of an array of network interface cards - * - */ - @JsonProperty("nicPerformanceArray") - public void setNicPerformanceArray(List nicPerformanceArray) { - this.nicPerformanceArray = nicPerformanceArray; - } - - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - public List getProcessStatsArray() { - return processStatsArray; - } - - /** - * array of metrics on system processes - * - */ - @JsonProperty("processStatsArray") - public void setProcessStatsArray(List processStatsArray) { - this.processStatsArray = processStatsArray; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @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(hugePagesArray).append(ipmi).append(latencyDistribution).append(loadArray).append(machineCheckExceptionArray).append(meanRequestLatency).append(measurementInterval).append(measurementFieldsVersion).append(memoryUsageArray).append(numberOfMediaPortsInUse).append(requestRate).append(nfcScalingMetric).append(nicPerformanceArray).append(processStatsArray).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MeasurementFields) == false) { - return false; - } - MeasurementFields rhs = ((MeasurementFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalMeasurements, rhs.additionalMeasurements).append(additionalObjects, rhs.additionalObjects).append(codecUsageArray, rhs.codecUsageArray).append(concurrentSessions, rhs.concurrentSessions).append(configuredEntities, rhs.configuredEntities).append(cpuUsageArray, rhs.cpuUsageArray).append(diskUsageArray, rhs.diskUsageArray).append(featureUsageArray, rhs.featureUsageArray).append(filesystemUsageArray, rhs.filesystemUsageArray).append(hugePagesArray, rhs.hugePagesArray).append(ipmi, rhs.ipmi).append(latencyDistribution, rhs.latencyDistribution).append(loadArray, rhs.loadArray).append(machineCheckExceptionArray, rhs.machineCheckExceptionArray).append(meanRequestLatency, rhs.meanRequestLatency).append(measurementInterval, rhs.measurementInterval).append(measurementFieldsVersion, rhs.measurementFieldsVersion).append(memoryUsageArray, rhs.memoryUsageArray).append(numberOfMediaPortsInUse, rhs.numberOfMediaPortsInUse).append(requestRate, rhs.requestRate).append(nfcScalingMetric, rhs.nfcScalingMetric).append(nicPerformanceArray, rhs.nicPerformanceArray).append(processStatsArray, rhs.processStatsArray).isEquals(); - } - - public enum MeasurementFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (MeasurementFields.MeasurementFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private MeasurementFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static MeasurementFields.MeasurementFieldsVersion fromValue(String value) { - MeasurementFields.MeasurementFieldsVersion 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/ves7_0/MemoryUsageArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java deleted file mode 100644 index 39f9ea9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MemoryUsageArray.java +++ /dev/null @@ -1,514 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * memory usage of an identified virtual machine - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "memoryBuffered", - "memoryCached", - "memoryConfigured", - "memoryDemand", - "memoryFree", - "memoryLatencyAvg", - "memorySharedAvg", - "memorySlabRecl", - "memorySlabUnrecl", - "memorySwapInAvg", - "memorySwapInRateAvg", - "memorySwapOutAvg", - "memorySwapOutRateAvg", - "memorySwapUsedAvg", - "memoryUsed", - "percentMemoryUsage", - "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 xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running") - private Double memoryConfigured; - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - @JsonPropertyDescription("host demand in kibibytes") - private Double memoryDemand; - /** - * 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; - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - @JsonPropertyDescription("Percentage of time the VM is waiting to access swapped or compressed memory") - private Double memoryLatencyAvg; - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - @JsonPropertyDescription("shared memory in kilobytes") - private Double memorySharedAvg; - /** - * 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; - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - @JsonPropertyDescription("Amount of memory swapped-in from host cache in kibibytes") - private Double memorySwapInAvg; - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - @JsonPropertyDescription("rate at which memory is swapped from disk into active memory during the interval in kilobytes per second") - private Double memorySwapInRateAvg; - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - @JsonPropertyDescription("Amount of memory swapped-out to host cache in kibibytes") - private Double memorySwapOutAvg; - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - @JsonPropertyDescription("rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second") - private Double memorySwapOutRateAvg; - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - @JsonPropertyDescription("space used for caching swapped pages in the host cache in kibibytes") - private Double memorySwapUsedAvg; - /** - * 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; - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - @JsonPropertyDescription("Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise") - private Double percentMemoryUsage; - /** - * virtual machine identifier associated with the memory metrics - * (Required) - * - */ - @JsonProperty("vmIdentifier") - @JsonPropertyDescription("virtual machine identifier associated with the memory metrics") - private String vmIdentifier; - - /** - * 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 xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - public Double getMemoryConfigured() { - return memoryConfigured; - } - - /** - * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running - * - */ - @JsonProperty("memoryConfigured") - public void setMemoryConfigured(Double memoryConfigured) { - this.memoryConfigured = memoryConfigured; - } - - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - public Double getMemoryDemand() { - return memoryDemand; - } - - /** - * host demand in kibibytes - * - */ - @JsonProperty("memoryDemand") - public void setMemoryDemand(Double memoryDemand) { - this.memoryDemand = memoryDemand; - } - - /** - * 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; - } - - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - public Double getMemoryLatencyAvg() { - return memoryLatencyAvg; - } - - /** - * Percentage of time the VM is waiting to access swapped or compressed memory - * - */ - @JsonProperty("memoryLatencyAvg") - public void setMemoryLatencyAvg(Double memoryLatencyAvg) { - this.memoryLatencyAvg = memoryLatencyAvg; - } - - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - public Double getMemorySharedAvg() { - return memorySharedAvg; - } - - /** - * shared memory in kilobytes - * - */ - @JsonProperty("memorySharedAvg") - public void setMemorySharedAvg(Double memorySharedAvg) { - this.memorySharedAvg = memorySharedAvg; - } - - /** - * 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; - } - - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - public Double getMemorySwapInAvg() { - return memorySwapInAvg; - } - - /** - * Amount of memory swapped-in from host cache in kibibytes - * - */ - @JsonProperty("memorySwapInAvg") - public void setMemorySwapInAvg(Double memorySwapInAvg) { - this.memorySwapInAvg = memorySwapInAvg; - } - - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - public Double getMemorySwapInRateAvg() { - return memorySwapInRateAvg; - } - - /** - * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second - * - */ - @JsonProperty("memorySwapInRateAvg") - public void setMemorySwapInRateAvg(Double memorySwapInRateAvg) { - this.memorySwapInRateAvg = memorySwapInRateAvg; - } - - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - public Double getMemorySwapOutAvg() { - return memorySwapOutAvg; - } - - /** - * Amount of memory swapped-out to host cache in kibibytes - * - */ - @JsonProperty("memorySwapOutAvg") - public void setMemorySwapOutAvg(Double memorySwapOutAvg) { - this.memorySwapOutAvg = memorySwapOutAvg; - } - - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - public Double getMemorySwapOutRateAvg() { - return memorySwapOutRateAvg; - } - - /** - * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second - * - */ - @JsonProperty("memorySwapOutRateAvg") - public void setMemorySwapOutRateAvg(Double memorySwapOutRateAvg) { - this.memorySwapOutRateAvg = memorySwapOutRateAvg; - } - - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - public Double getMemorySwapUsedAvg() { - return memorySwapUsedAvg; - } - - /** - * space used for caching swapped pages in the host cache in kibibytes - * - */ - @JsonProperty("memorySwapUsedAvg") - public void setMemorySwapUsedAvg(Double memorySwapUsedAvg) { - this.memorySwapUsedAvg = memorySwapUsedAvg; - } - - /** - * 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; - } - - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - public Double getPercentMemoryUsage() { - return percentMemoryUsage; - } - - /** - * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise - * - */ - @JsonProperty("percentMemoryUsage") - public void setPercentMemoryUsage(Double percentMemoryUsage) { - this.percentMemoryUsage = percentMemoryUsage; - } - - /** - * 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(memoryBuffered).append(memoryCached).append(memoryConfigured).append(memoryDemand).append(memoryFree).append(memoryLatencyAvg).append(memorySharedAvg).append(memorySlabRecl).append(memorySlabUnrecl).append(memorySwapInAvg).append(memorySwapInRateAvg).append(memorySwapOutAvg).append(memorySwapOutRateAvg).append(memorySwapUsedAvg).append(memoryUsed).append(percentMemoryUsage).append(vmIdentifier).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MemoryUsageArray) == false) { - return false; - } - MemoryUsageArray rhs = ((MemoryUsageArray) other); - return new EqualsBuilder().append(memoryBuffered, rhs.memoryBuffered).append(memoryCached, rhs.memoryCached).append(memoryConfigured, rhs.memoryConfigured).append(memoryDemand, rhs.memoryDemand).append(memoryFree, rhs.memoryFree).append(memoryLatencyAvg, rhs.memoryLatencyAvg).append(memorySharedAvg, rhs.memorySharedAvg).append(memorySlabRecl, rhs.memorySlabRecl).append(memorySlabUnrecl, rhs.memorySlabUnrecl).append(memorySwapInAvg, rhs.memorySwapInAvg).append(memorySwapInRateAvg, rhs.memorySwapInRateAvg).append(memorySwapOutAvg, rhs.memorySwapOutAvg).append(memorySwapOutRateAvg, rhs.memorySwapOutRateAvg).append(memorySwapUsedAvg, rhs.memorySwapUsedAvg).append(memoryUsed, rhs.memoryUsed).append(percentMemoryUsage, rhs.percentMemoryUsage).append(vmIdentifier, rhs.vmIdentifier).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java deleted file mode 100644 index a29b092..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/MobileFlowFields.java +++ /dev/null @@ -1,990 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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 { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * 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 MobileFlowFields.MobileFlowFieldsVersion 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; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(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 MobileFlowFields.MobileFlowFieldsVersion getMobileFlowFieldsVersion() { - return mobileFlowFieldsVersion; - } - - /** - * version of the mobileFlowFields block - * (Required) - * - */ - @JsonProperty("mobileFlowFieldsVersion") - public void setMobileFlowFieldsVersion(MobileFlowFields.MobileFlowFieldsVersion 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); - } - - @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).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof MobileFlowFields) == false) { - return false; - } - MobileFlowFields rhs = ((MobileFlowFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(applicationType, rhs.applicationType).append(appProtocolType, rhs.appProtocolType).append(appProtocolVersion, rhs.appProtocolVersion).append(cid, rhs.cid).append(connectionType, rhs.connectionType).append(ecgi, rhs.ecgi).append(flowDirection, rhs.flowDirection).append(gtpPerFlowMetrics, rhs.gtpPerFlowMetrics).append(gtpProtocolType, rhs.gtpProtocolType).append(gtpVersion, rhs.gtpVersion).append(httpHeader, rhs.httpHeader).append(imei, rhs.imei).append(imsi, rhs.imsi).append(ipProtocolType, rhs.ipProtocolType).append(ipVersion, rhs.ipVersion).append(lac, rhs.lac).append(mcc, rhs.mcc).append(mnc, rhs.mnc).append(mobileFlowFieldsVersion, rhs.mobileFlowFieldsVersion).append(msisdn, rhs.msisdn).append(otherEndpointIpAddress, rhs.otherEndpointIpAddress).append(otherEndpointPort, rhs.otherEndpointPort).append(otherFunctionalRole, rhs.otherFunctionalRole).append(rac, rhs.rac).append(radioAccessTechnology, rhs.radioAccessTechnology).append(reportingEndpointIpAddr, rhs.reportingEndpointIpAddr).append(reportingEndpointPort, rhs.reportingEndpointPort).append(sac, rhs.sac).append(samplingAlgorithm, rhs.samplingAlgorithm).append(tac, rhs.tac).append(tunnelId, rhs.tunnelId).append(vlanId, rhs.vlanId).isEquals(); - } - - public enum MobileFlowFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (MobileFlowFields.MobileFlowFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private MobileFlowFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static MobileFlowFields.MobileFlowFieldsVersion fromValue(String value) { - MobileFlowFields.MobileFlowFieldsVersion 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/ves7_0/NicPerformanceArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java deleted file mode 100644 index bf5dac6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NicPerformanceArray.java +++ /dev/null @@ -1,1204 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * describes the performance and errors of an identified network interface card - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "administrativeState", - "nicIdentifier", - "operationalState", - "receivedBroadcastPacketsAccumulated", - "receivedBroadcastPacketsDelta", - "receivedDiscardedPacketsAccumulated", - "receivedDiscardedPacketsDelta", - "receivedErrorPacketsAccumulated", - "receivedErrorPacketsDelta", - "receivedMulticastPacketsAccumulated", - "receivedMulticastPacketsDelta", - "receivedOctetsAccumulated", - "receivedOctetsDelta", - "receivedTotalPacketsAccumulated", - "receivedPercentDiscard", - "receivedPercentError", - "receivedTotalPacketsDelta", - "receivedUnicastPacketsAccumulated", - "receivedUnicastPacketsDelta", - "receivedUtilization", - "speed", - "transmittedBroadcastPacketsAccumulated", - "transmittedBroadcastPacketsDelta", - "transmittedDiscardedPacketsAccumulated", - "transmittedDiscardedPacketsDelta", - "transmittedErrorPacketsAccumulated", - "transmittedErrorPacketsDelta", - "transmittedMulticastPacketsAccumulated", - "transmittedMulticastPacketsDelta", - "transmittedOctetsAccumulated", - "transmittedOctetsDelta", - "transmittedTotalPacketsAccumulated", - "transmittedTotalPacketsDelta", - "transmittedUnicastPacketsAccumulated", - "transmittedUnicastPacketsDelta", - "transmittedPercentDiscard", - "transmittedPercentError", - "transmittedUtilization", - "valuesAreSuspect" -}) -public class NicPerformanceArray { - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - @JsonPropertyDescription("administrative state") - private NicPerformanceArray.AdministrativeState administrativeState; - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - @JsonPropertyDescription("nic identification") - private String nicIdentifier; - /** - * operational state - * - */ - @JsonProperty("operationalState") - @JsonPropertyDescription("operational state") - private NicPerformanceArray.OperationalState operationalState; - /** - * 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; - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - @JsonPropertyDescription("Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double receivedPercentDiscard; - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - @JsonPropertyDescription("Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise.") - private Double receivedPercentError; - /** - * 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; - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - @JsonPropertyDescription("Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise") - private Double receivedUtilization; - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - @JsonPropertyDescription("Speed configured in mbps") - private Double speed; - /** - * 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; - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - @JsonPropertyDescription("Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double transmittedPercentDiscard; - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - @JsonPropertyDescription("Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise") - private Double transmittedPercentError; - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - @JsonPropertyDescription("Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise.") - private Double transmittedUtilization; - /** - * 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 NicPerformanceArray.ValuesAreSuspect valuesAreSuspect; - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - public NicPerformanceArray.AdministrativeState getAdministrativeState() { - return administrativeState; - } - - /** - * administrative state - * - */ - @JsonProperty("administrativeState") - public void setAdministrativeState(NicPerformanceArray.AdministrativeState administrativeState) { - this.administrativeState = administrativeState; - } - - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public String getNicIdentifier() { - return nicIdentifier; - } - - /** - * nic identification - * (Required) - * - */ - @JsonProperty("nicIdentifier") - public void setNicIdentifier(String nicIdentifier) { - this.nicIdentifier = nicIdentifier; - } - - /** - * operational state - * - */ - @JsonProperty("operationalState") - public NicPerformanceArray.OperationalState getOperationalState() { - return operationalState; - } - - /** - * operational state - * - */ - @JsonProperty("operationalState") - public void setOperationalState(NicPerformanceArray.OperationalState operationalState) { - this.operationalState = operationalState; - } - - /** - * 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; - } - - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - public Double getReceivedPercentDiscard() { - return receivedPercentDiscard; - } - - /** - * Percentage of discarded packets received; value = (receivedDiscardedPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedPercentDiscard") - public void setReceivedPercentDiscard(Double receivedPercentDiscard) { - this.receivedPercentDiscard = receivedPercentDiscard; - } - - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - public Double getReceivedPercentError() { - return receivedPercentError; - } - - /** - * Percentage of error packets received; value = (receivedErrorPacketsDelta / receivedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("receivedPercentError") - public void setReceivedPercentError(Double receivedPercentError) { - this.receivedPercentError = receivedPercentError; - } - - /** - * 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; - } - - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - public Double getReceivedUtilization() { - return receivedUtilization; - } - - /** - * Percentage of utilization received; value = (receivedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("receivedUtilization") - public void setReceivedUtilization(Double receivedUtilization) { - this.receivedUtilization = receivedUtilization; - } - - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - public Double getSpeed() { - return speed; - } - - /** - * Speed configured in mbps - * - */ - @JsonProperty("speed") - public void setSpeed(Double speed) { - this.speed = speed; - } - - /** - * 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; - } - - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - public Double getTransmittedPercentDiscard() { - return transmittedPercentDiscard; - } - - /** - * Percentage of discarded packets transmitted; value = (transmittedDiscardedPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentDiscard") - public void setTransmittedPercentDiscard(Double transmittedPercentDiscard) { - this.transmittedPercentDiscard = transmittedPercentDiscard; - } - - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - public Double getTransmittedPercentError() { - return transmittedPercentError; - } - - /** - * Percentage of error packets received; value = (transmittedErrorPacketsDelta / transmittedTotalPacketsDelta) x 100, if denominator is nonzero, or 0, if otherwise - * - */ - @JsonProperty("transmittedPercentError") - public void setTransmittedPercentError(Double transmittedPercentError) { - this.transmittedPercentError = transmittedPercentError; - } - - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - public Double getTransmittedUtilization() { - return transmittedUtilization; - } - - /** - * Percentage of utilization transmitted; value = (transmittedOctetsDelta / (speed x (lastEpochMicrosec - startEpochMicrosec))) x 100, if denominator is nonzero, or 0, if otherwise. - * - */ - @JsonProperty("transmittedUtilization") - public void setTransmittedUtilization(Double transmittedUtilization) { - this.transmittedUtilization = transmittedUtilization; - } - - /** - * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions - * (Required) - * - */ - @JsonProperty("valuesAreSuspect") - public NicPerformanceArray.ValuesAreSuspect getValuesAreSuspect() { - return valuesAreSuspect; - } - - /** - * Indicates whether vNicPerformance values are likely inaccurate due to counter overflow or other condtions - * (Required) - * - */ - @JsonProperty("valuesAreSuspect") - public void setValuesAreSuspect(NicPerformanceArray.ValuesAreSuspect valuesAreSuspect) { - this.valuesAreSuspect = valuesAreSuspect; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(administrativeState).append(nicIdentifier).append(operationalState).append(receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta).append(receivedOctetsAccumulated).append(receivedOctetsDelta).append(receivedTotalPacketsAccumulated).append(receivedPercentDiscard).append(receivedPercentError).append(receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta).append(receivedUtilization).append(speed).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(transmittedPercentDiscard).append(transmittedPercentError).append(transmittedUtilization).append(valuesAreSuspect).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof NicPerformanceArray) == false) { - return false; - } - NicPerformanceArray rhs = ((NicPerformanceArray) other); - return new EqualsBuilder().append(administrativeState, rhs.administrativeState).append(nicIdentifier, rhs.nicIdentifier).append(operationalState, rhs.operationalState).append(receivedBroadcastPacketsAccumulated, rhs.receivedBroadcastPacketsAccumulated).append(receivedBroadcastPacketsDelta, rhs.receivedBroadcastPacketsDelta).append(receivedDiscardedPacketsAccumulated, rhs.receivedDiscardedPacketsAccumulated).append(receivedDiscardedPacketsDelta, rhs.receivedDiscardedPacketsDelta).append(receivedErrorPacketsAccumulated, rhs.receivedErrorPacketsAccumulated).append(receivedErrorPacketsDelta, rhs.receivedErrorPacketsDelta).append(receivedMulticastPacketsAccumulated, rhs.receivedMulticastPacketsAccumulated).append(receivedMulticastPacketsDelta, rhs.receivedMulticastPacketsDelta).append(receivedOctetsAccumulated, rhs.receivedOctetsAccumulated).append(receivedOctetsDelta, rhs.receivedOctetsDelta).append(receivedTotalPacketsAccumulated, rhs.receivedTotalPacketsAccumulated).append(receivedPercentDiscard, rhs.receivedPercentDiscard).append(receivedPercentError, rhs.receivedPercentError).append(receivedTotalPacketsDelta, rhs.receivedTotalPacketsDelta).append(receivedUnicastPacketsAccumulated, rhs.receivedUnicastPacketsAccumulated).append(receivedUnicastPacketsDelta, rhs.receivedUnicastPacketsDelta).append(receivedUtilization, rhs.receivedUtilization).append(speed, rhs.speed).append(transmittedBroadcastPacketsAccumulated, rhs.transmittedBroadcastPacketsAccumulated).append(transmittedBroadcastPacketsDelta, rhs.transmittedBroadcastPacketsDelta).append(transmittedDiscardedPacketsAccumulated, rhs.transmittedDiscardedPacketsAccumulated).append(transmittedDiscardedPacketsDelta, rhs.transmittedDiscardedPacketsDelta).append(transmittedErrorPacketsAccumulated, rhs.transmittedErrorPacketsAccumulated).append(transmittedErrorPacketsDelta, rhs.transmittedErrorPacketsDelta).append(transmittedMulticastPacketsAccumulated, rhs.transmittedMulticastPacketsAccumulated).append(transmittedMulticastPacketsDelta, rhs.transmittedMulticastPacketsDelta).append(transmittedOctetsAccumulated, rhs.transmittedOctetsAccumulated).append(transmittedOctetsDelta, rhs.transmittedOctetsDelta).append(transmittedTotalPacketsAccumulated, rhs.transmittedTotalPacketsAccumulated).append(transmittedTotalPacketsDelta, rhs.transmittedTotalPacketsDelta).append(transmittedUnicastPacketsAccumulated, rhs.transmittedUnicastPacketsAccumulated).append(transmittedUnicastPacketsDelta, rhs.transmittedUnicastPacketsDelta).append(transmittedPercentDiscard, rhs.transmittedPercentDiscard).append(transmittedPercentError, rhs.transmittedPercentError).append(transmittedUtilization, rhs.transmittedUtilization).append(valuesAreSuspect, rhs.valuesAreSuspect).isEquals(); - } - - public enum AdministrativeState { - - IN_SERVICE("inService"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.AdministrativeState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private AdministrativeState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NicPerformanceArray.AdministrativeState fromValue(String value) { - NicPerformanceArray.AdministrativeState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum OperationalState { - - IN_SERVICE("inService"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.OperationalState c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private OperationalState(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NicPerformanceArray.OperationalState fromValue(String value) { - NicPerformanceArray.OperationalState constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - public enum ValuesAreSuspect { - - TRUE("true"), - FALSE("false"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NicPerformanceArray.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 NicPerformanceArray.ValuesAreSuspect fromValue(String value) { - NicPerformanceArray.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/ves7_0/NotificationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java deleted file mode 100644 index 973606c..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/NotificationFields.java +++ /dev/null @@ -1,350 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * notification fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "arrayOfNamedHashMap", - "changeContact", - "changeIdentifier", - "changeType", - "newState", - "oldState", - "notificationFieldsVersion", - "stateInterface" -}) -public class NotificationFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - @JsonPropertyDescription("array of named hashMaps") - private List arrayOfNamedHashMap = new ArrayList(); - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - @JsonPropertyDescription("identifier for a contact related to the change") - private String changeContact; - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - @JsonPropertyDescription("system or session identifier associated with the change") - private String changeIdentifier; - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - @JsonPropertyDescription("describes what has changed for the entity") - private String changeType; - /** - * new state of the entity - * - */ - @JsonProperty("newState") - @JsonPropertyDescription("new state of the entity") - private String newState; - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - @JsonPropertyDescription("previous state of the entity") - private String oldState; - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - @JsonPropertyDescription("version of the notificationFields block") - private NotificationFields.NotificationFieldsVersion notificationFieldsVersion; - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - @JsonPropertyDescription("card or port name of the entity that changed state") - private String stateInterface; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public List getArrayOfNamedHashMap() { - return arrayOfNamedHashMap; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { - this.arrayOfNamedHashMap = arrayOfNamedHashMap; - } - - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - public String getChangeContact() { - return changeContact; - } - - /** - * identifier for a contact related to the change - * - */ - @JsonProperty("changeContact") - public void setChangeContact(String changeContact) { - this.changeContact = changeContact; - } - - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - public String getChangeIdentifier() { - return changeIdentifier; - } - - /** - * system or session identifier associated with the change - * (Required) - * - */ - @JsonProperty("changeIdentifier") - public void setChangeIdentifier(String changeIdentifier) { - this.changeIdentifier = changeIdentifier; - } - - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - public String getChangeType() { - return changeType; - } - - /** - * describes what has changed for the entity - * (Required) - * - */ - @JsonProperty("changeType") - public void setChangeType(String changeType) { - this.changeType = changeType; - } - - /** - * new state of the entity - * - */ - @JsonProperty("newState") - public String getNewState() { - return newState; - } - - /** - * new state of the entity - * - */ - @JsonProperty("newState") - public void setNewState(String newState) { - this.newState = newState; - } - - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - public String getOldState() { - return oldState; - } - - /** - * previous state of the entity - * - */ - @JsonProperty("oldState") - public void setOldState(String oldState) { - this.oldState = oldState; - } - - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - public NotificationFields.NotificationFieldsVersion getNotificationFieldsVersion() { - return notificationFieldsVersion; - } - - /** - * version of the notificationFields block - * (Required) - * - */ - @JsonProperty("notificationFieldsVersion") - public void setNotificationFieldsVersion(NotificationFields.NotificationFieldsVersion notificationFieldsVersion) { - this.notificationFieldsVersion = notificationFieldsVersion; - } - - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - public String getStateInterface() { - return stateInterface; - } - - /** - * card or port name of the entity that changed state - * - */ - @JsonProperty("stateInterface") - public void setStateInterface(String stateInterface) { - this.stateInterface = stateInterface; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(arrayOfNamedHashMap).append(changeContact).append(changeIdentifier).append(changeType).append(newState).append(oldState).append(notificationFieldsVersion).append(stateInterface).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof NotificationFields) == false) { - return false; - } - NotificationFields rhs = ((NotificationFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(changeContact, rhs.changeContact).append(changeIdentifier, rhs.changeIdentifier).append(changeType, rhs.changeType).append(newState, rhs.newState).append(oldState, rhs.oldState).append(notificationFieldsVersion, rhs.notificationFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); - } - - public enum NotificationFieldsVersion { - - _2_0("2.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (NotificationFields.NotificationFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private NotificationFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static NotificationFields.NotificationFieldsVersion fromValue(String value) { - NotificationFields.NotificationFieldsVersion 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/ves7_0/ObjectInstance.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java deleted file mode 100644 index 6999537..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectInstance.java +++ /dev/null @@ -1,169 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.List; -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * meta-information about an instance of a jsonObject along with the actual object instance - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "jsonObject", - "objectInstance", - "objectInstanceEpochMicrosec", - "objectKeys" -}) -public class ObjectInstance { - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - @JsonPropertyDescription("json object schema, name and other meta-information along with one or more object instances") - private AdditionalObject jsonObject; - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @JsonProperty("objectInstance") - @JsonPropertyDescription("an instance conforming to the jsonObject objectSchema") - 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 objectKeys = new ArrayList(); - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - public AdditionalObject getJsonObject() { - return jsonObject; - } - - /** - * json object schema, name and other meta-information along with one or more object instances - * - */ - @JsonProperty("jsonObject") - public void setJsonObject(AdditionalObject jsonObject) { - this.jsonObject = jsonObject; - } - - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @JsonProperty("objectInstance") - public ObjectInstance getObjectInstance() { - return objectInstance; - } - - /** - * an instance conforming to the jsonObject objectSchema - * - */ - @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 getObjectKeys() { - return objectKeys; - } - - /** - * an ordered set of keys that identifies this particular instance of jsonObject - * - */ - @JsonProperty("objectKeys") - public void setObjectKeys(List objectKeys) { - this.objectKeys = objectKeys; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(jsonObject).append(objectInstance).append(objectInstanceEpochMicrosec).append(objectKeys).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ObjectInstance) == false) { - return false; - } - ObjectInstance rhs = ((ObjectInstance) other); - return new EqualsBuilder().append(jsonObject, rhs.jsonObject).append(objectInstance, rhs.objectInstance).append(objectInstanceEpochMicrosec, rhs.objectInstanceEpochMicrosec).append(objectKeys, rhs.objectKeys).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java deleted file mode 100644 index e641dc5..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ObjectKey.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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; - - /** - * 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(keyName).append(keyOrder).append(keyValue).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ObjectKey) == false) { - return false; - } - ObjectKey rhs = ((ObjectKey) other); - return new EqualsBuilder().append(keyName, rhs.keyName).append(keyOrder, rhs.keyOrder).append(keyValue, rhs.keyValue).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java deleted file mode 100644 index b38707a..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/OtherFields.java +++ /dev/null @@ -1,214 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * fields for events belonging to the 'other' domain of the commonEventHeader domain enumeration - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "arrayOfNamedHashMap", - "hashMap", - "jsonObjects", - "otherFieldsVersion" -}) -public class OtherFields { - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - @JsonPropertyDescription("array of named hashMaps") - private List arrayOfNamedHashMap = new ArrayList(); - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation hashMap; - /** - * 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 jsonObjects = new ArrayList(); - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - @JsonPropertyDescription("version of the otherFields block") - private OtherFields.OtherFieldsVersion otherFieldsVersion; - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public List getArrayOfNamedHashMap() { - return arrayOfNamedHashMap; - } - - /** - * array of named hashMaps - * - */ - @JsonProperty("arrayOfNamedHashMap") - public void setArrayOfNamedHashMap(List arrayOfNamedHashMap) { - this.arrayOfNamedHashMap = arrayOfNamedHashMap; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - public AlarmAdditionalInformation getHashMap() { - return hashMap; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("hashMap") - public void setHashMap(AlarmAdditionalInformation hashMap) { - this.hashMap = hashMap; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("jsonObjects") - public List getJsonObjects() { - return jsonObjects; - } - - /** - * array of json objects described by name, schema and other meta-information - * - */ - @JsonProperty("jsonObjects") - public void setJsonObjects(List jsonObjects) { - this.jsonObjects = jsonObjects; - } - - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - public OtherFields.OtherFieldsVersion getOtherFieldsVersion() { - return otherFieldsVersion; - } - - /** - * version of the otherFields block - * (Required) - * - */ - @JsonProperty("otherFieldsVersion") - public void setOtherFieldsVersion(OtherFields.OtherFieldsVersion otherFieldsVersion) { - this.otherFieldsVersion = otherFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(arrayOfNamedHashMap).append(hashMap).append(jsonObjects).append(otherFieldsVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof OtherFields) == false) { - return false; - } - OtherFields rhs = ((OtherFields) other); - return new EqualsBuilder().append(arrayOfNamedHashMap, rhs.arrayOfNamedHashMap).append(hashMap, rhs.hashMap).append(jsonObjects, rhs.jsonObjects).append(otherFieldsVersion, rhs.otherFieldsVersion).isEquals(); - } - - public enum OtherFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (OtherFields.OtherFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private OtherFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static OtherFields.OtherFieldsVersion fromValue(String value) { - OtherFields.OtherFieldsVersion 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/ves7_0/PnfRegistrationFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java deleted file mode 100644 index 3fe8b00..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/PnfRegistrationFields.java +++ /dev/null @@ -1,446 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * hardware device registration fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "lastServiceDate", - "macAddress", - "manufactureDate", - "modelNumber", - "oamV4IpAddress", - "oamV6IpAddress", - "pnfRegistrationFieldsVersion", - "serialNumber", - "softwareVersion", - "unitFamily", - "unitType", - "vendorName" -}) -public class PnfRegistrationFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - @JsonPropertyDescription("TS 32.692 dateOfLastService = date of last service; e.g. 15022017") - private String lastServiceDate; - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - @JsonPropertyDescription("MAC address of OAM interface of the unit") - private String macAddress; - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - @JsonPropertyDescription("TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016") - private String manufactureDate; - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - @JsonPropertyDescription("TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model") - private String modelNumber; - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - @JsonPropertyDescription("IPv4 m-plane IP address to be used by the manager to contact the PNF") - private String oamV4IpAddress; - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - @JsonPropertyDescription("IPv6 m-plane IP address to be used by the manager to contact the PNF") - private String oamV6IpAddress; - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - @JsonPropertyDescription("version of the pnfRegistrationFields block") - private PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion; - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - @JsonPropertyDescription("TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3") - private String serialNumber; - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - @JsonPropertyDescription("TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201") - private String softwareVersion; - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - @JsonPropertyDescription("TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU") - private String unitFamily; - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - @JsonPropertyDescription("TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale") - private String unitType; - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - @JsonPropertyDescription("TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor") - private String vendorName; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - public String getLastServiceDate() { - return lastServiceDate; - } - - /** - * TS 32.692 dateOfLastService = date of last service; e.g. 15022017 - * - */ - @JsonProperty("lastServiceDate") - public void setLastServiceDate(String lastServiceDate) { - this.lastServiceDate = lastServiceDate; - } - - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - public String getMacAddress() { - return macAddress; - } - - /** - * MAC address of OAM interface of the unit - * - */ - @JsonProperty("macAddress") - public void setMacAddress(String macAddress) { - this.macAddress = macAddress; - } - - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - public String getManufactureDate() { - return manufactureDate; - } - - /** - * TS 32.692 dateOfManufacture = manufacture date of the unit; 24032016 - * - */ - @JsonProperty("manufactureDate") - public void setManufactureDate(String manufactureDate) { - this.manufactureDate = manufactureDate; - } - - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - public String getModelNumber() { - return modelNumber; - } - - /** - * TS 32.692 versionNumber = version of the unit from vendor; e.g. AJ02. Maps to AAI equip-model - * - */ - @JsonProperty("modelNumber") - public void setModelNumber(String modelNumber) { - this.modelNumber = modelNumber; - } - - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - public String getOamV4IpAddress() { - return oamV4IpAddress; - } - - /** - * IPv4 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV4IpAddress") - public void setOamV4IpAddress(String oamV4IpAddress) { - this.oamV4IpAddress = oamV4IpAddress; - } - - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - public String getOamV6IpAddress() { - return oamV6IpAddress; - } - - /** - * IPv6 m-plane IP address to be used by the manager to contact the PNF - * - */ - @JsonProperty("oamV6IpAddress") - public void setOamV6IpAddress(String oamV6IpAddress) { - this.oamV6IpAddress = oamV6IpAddress; - } - - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - public PnfRegistrationFields.PnfRegistrationFieldsVersion getPnfRegistrationFieldsVersion() { - return pnfRegistrationFieldsVersion; - } - - /** - * version of the pnfRegistrationFields block - * (Required) - * - */ - @JsonProperty("pnfRegistrationFieldsVersion") - public void setPnfRegistrationFieldsVersion(PnfRegistrationFields.PnfRegistrationFieldsVersion pnfRegistrationFieldsVersion) { - this.pnfRegistrationFieldsVersion = pnfRegistrationFieldsVersion; - } - - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - public String getSerialNumber() { - return serialNumber; - } - - /** - * TS 32.692 serialNumber = serial number of the unit; e.g. 6061ZW3 - * - */ - @JsonProperty("serialNumber") - public void setSerialNumber(String serialNumber) { - this.serialNumber = serialNumber; - } - - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - public String getSoftwareVersion() { - return softwareVersion; - } - - /** - * TS 32.692 swName = active SW running on the unit; e.g. 5gDUv18.05.201 - * - */ - @JsonProperty("softwareVersion") - public void setSoftwareVersion(String softwareVersion) { - this.softwareVersion = softwareVersion; - } - - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - public String getUnitFamily() { - return unitFamily; - } - - /** - * TS 32.692 vendorUnitFamilyType = general type of HW unit; e.g. BBU - * - */ - @JsonProperty("unitFamily") - public void setUnitFamily(String unitFamily) { - this.unitFamily = unitFamily; - } - - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - public String getUnitType() { - return unitType; - } - - /** - * TS 32.692 vendorUnitTypeNumber = vendor name for the unit; e.g. Airscale - * - */ - @JsonProperty("unitType") - public void setUnitType(String unitType) { - this.unitType = unitType; - } - - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - public String getVendorName() { - return vendorName; - } - - /** - * TS 32.692 vendorName = name of manufacturer; e.g. Nokia. Maps to AAI equip-vendor - * - */ - @JsonProperty("vendorName") - public void setVendorName(String vendorName) { - this.vendorName = vendorName; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(lastServiceDate).append(macAddress).append(manufactureDate).append(modelNumber).append(oamV4IpAddress).append(oamV6IpAddress).append(pnfRegistrationFieldsVersion).append(serialNumber).append(softwareVersion).append(unitFamily).append(unitType).append(vendorName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof PnfRegistrationFields) == false) { - return false; - } - PnfRegistrationFields rhs = ((PnfRegistrationFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(lastServiceDate, rhs.lastServiceDate).append(macAddress, rhs.macAddress).append(manufactureDate, rhs.manufactureDate).append(modelNumber, rhs.modelNumber).append(oamV4IpAddress, rhs.oamV4IpAddress).append(oamV6IpAddress, rhs.oamV6IpAddress).append(pnfRegistrationFieldsVersion, rhs.pnfRegistrationFieldsVersion).append(serialNumber, rhs.serialNumber).append(softwareVersion, rhs.softwareVersion).append(unitFamily, rhs.unitFamily).append(unitType, rhs.unitType).append(vendorName, rhs.vendorName).isEquals(); - } - - public enum PnfRegistrationFieldsVersion { - - _2_0("2.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (PnfRegistrationFields.PnfRegistrationFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private PnfRegistrationFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static PnfRegistrationFields.PnfRegistrationFieldsVersion fromValue(String value) { - PnfRegistrationFields.PnfRegistrationFieldsVersion 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/ves7_0/ProcessStatsArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java deleted file mode 100644 index 5e7fe19..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessStatsArray.java +++ /dev/null @@ -1,274 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * metrics on system processes - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "forkRate", - "processIdentifier", - "psStateBlocked", - "psStatePaging", - "psStateRunning", - "psStateSleeping", - "psStateStopped", - "psStateZombie" -}) -public class ProcessStatsArray { - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - @JsonPropertyDescription("the number of threads created since the last reboot") - private Double forkRate; - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - @JsonPropertyDescription("processIdentifier") - private String processIdentifier; - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - @JsonPropertyDescription("the number of processes in a blocked state") - private Double psStateBlocked; - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - @JsonPropertyDescription("the number of processes in a paging state") - private Double psStatePaging; - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - @JsonPropertyDescription("the number of processes in a running state") - private Double psStateRunning; - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - @JsonPropertyDescription("the number of processes in a sleeping state") - private Double psStateSleeping; - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - @JsonPropertyDescription("the number of processes in a stopped state") - private Double psStateStopped; - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - @JsonPropertyDescription("the number of processes in a zombie state") - private Double psStateZombie; - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - public Double getForkRate() { - return forkRate; - } - - /** - * the number of threads created since the last reboot - * - */ - @JsonProperty("forkRate") - public void setForkRate(Double forkRate) { - this.forkRate = forkRate; - } - - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - public String getProcessIdentifier() { - return processIdentifier; - } - - /** - * processIdentifier - * (Required) - * - */ - @JsonProperty("processIdentifier") - public void setProcessIdentifier(String processIdentifier) { - this.processIdentifier = processIdentifier; - } - - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - public Double getPsStateBlocked() { - return psStateBlocked; - } - - /** - * the number of processes in a blocked state - * - */ - @JsonProperty("psStateBlocked") - public void setPsStateBlocked(Double psStateBlocked) { - this.psStateBlocked = psStateBlocked; - } - - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - public Double getPsStatePaging() { - return psStatePaging; - } - - /** - * the number of processes in a paging state - * - */ - @JsonProperty("psStatePaging") - public void setPsStatePaging(Double psStatePaging) { - this.psStatePaging = psStatePaging; - } - - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - public Double getPsStateRunning() { - return psStateRunning; - } - - /** - * the number of processes in a running state - * - */ - @JsonProperty("psStateRunning") - public void setPsStateRunning(Double psStateRunning) { - this.psStateRunning = psStateRunning; - } - - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - public Double getPsStateSleeping() { - return psStateSleeping; - } - - /** - * the number of processes in a sleeping state - * - */ - @JsonProperty("psStateSleeping") - public void setPsStateSleeping(Double psStateSleeping) { - this.psStateSleeping = psStateSleeping; - } - - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - public Double getPsStateStopped() { - return psStateStopped; - } - - /** - * the number of processes in a stopped state - * - */ - @JsonProperty("psStateStopped") - public void setPsStateStopped(Double psStateStopped) { - this.psStateStopped = psStateStopped; - } - - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - public Double getPsStateZombie() { - return psStateZombie; - } - - /** - * the number of processes in a zombie state - * - */ - @JsonProperty("psStateZombie") - public void setPsStateZombie(Double psStateZombie) { - this.psStateZombie = psStateZombie; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(forkRate).append(processIdentifier).append(psStateBlocked).append(psStatePaging).append(psStateRunning).append(psStateSleeping).append(psStateStopped).append(psStateZombie).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ProcessStatsArray) == false) { - return false; - } - ProcessStatsArray rhs = ((ProcessStatsArray) other); - return new EqualsBuilder().append(forkRate, rhs.forkRate).append(processIdentifier, rhs.processIdentifier).append(psStateBlocked, rhs.psStateBlocked).append(psStatePaging, rhs.psStatePaging).append(psStateRunning, rhs.psStateRunning).append(psStateSleeping, rhs.psStateSleeping).append(psStateStopped, rhs.psStateStopped).append(psStateZombie, rhs.psStateZombie).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java deleted file mode 100644 index 00d8c1b..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ProcessorDimmAggregateThermalMarginArray.java +++ /dev/null @@ -1,121 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * intelligent platform management interface (ipmi) processor dual inline memory module aggregate thermal margin metrics - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "processorDimmAggregateThermalMarginIdentifier", - "thermalMargin" -}) -public class ProcessorDimmAggregateThermalMarginArray { - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - @JsonPropertyDescription("identifier for the aggregate thermal margin metrics from the processor dual inline memory module") - private String processorDimmAggregateThermalMarginIdentifier; - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - @JsonPropertyDescription("the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point") - private Double thermalMargin; - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - public String getProcessorDimmAggregateThermalMarginIdentifier() { - return processorDimmAggregateThermalMarginIdentifier; - } - - /** - * identifier for the aggregate thermal margin metrics from the processor dual inline memory module - * (Required) - * - */ - @JsonProperty("processorDimmAggregateThermalMarginIdentifier") - public void setProcessorDimmAggregateThermalMarginIdentifier(String processorDimmAggregateThermalMarginIdentifier) { - this.processorDimmAggregateThermalMarginIdentifier = processorDimmAggregateThermalMarginIdentifier; - } - - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - public Double getThermalMargin() { - return thermalMargin; - } - - /** - * the difference between the DIMM's current temperature, in celsius, and the DIMM's throttling thermal trip point - * (Required) - * - */ - @JsonProperty("thermalMargin") - public void setThermalMargin(Double thermalMargin) { - this.thermalMargin = thermalMargin; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(processorDimmAggregateThermalMarginIdentifier).append(thermalMargin).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ProcessorDimmAggregateThermalMarginArray) == false) { - return false; - } - ProcessorDimmAggregateThermalMarginArray rhs = ((ProcessorDimmAggregateThermalMarginArray) other); - return new EqualsBuilder().append(processorDimmAggregateThermalMarginIdentifier, rhs.processorDimmAggregateThermalMarginIdentifier).append(thermalMargin, rhs.thermalMargin).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java deleted file mode 100644 index 34d4558..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SipSignalingFields.java +++ /dev/null @@ -1,386 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * sip signaling fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalInformation", - "compressedSip", - "correlator", - "localIpAddress", - "localPort", - "remoteIpAddress", - "remotePort", - "sipSignalingFieldsVersion", - "summarySip", - "vendorNfNameFields" -}) -public class SipSignalingFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalInformation; - /** - * 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 xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - @JsonPropertyDescription("IP address on xNF") - private String localIpAddress; - /** - * port on xNF - * (Required) - * - */ - @JsonProperty("localPort") - @JsonPropertyDescription("port on xNF") - 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 SipSignalingFields.SipSignalingFieldsVersion sipSignalingFieldsVersion; - /** - * the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc) - * - */ - @JsonProperty("summarySip") - @JsonPropertyDescription("the SIP Method or Response ('INVITE', '200 OK', 'BYE', etc)") - private String summarySip; - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") - private VendorNfNameFields vendorNfNameFields; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public AlarmAdditionalInformation getAdditionalInformation() { - return additionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public void setAdditionalInformation(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 xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - public String getLocalIpAddress() { - return localIpAddress; - } - - /** - * IP address on xNF - * (Required) - * - */ - @JsonProperty("localIpAddress") - public void setLocalIpAddress(String localIpAddress) { - this.localIpAddress = localIpAddress; - } - - /** - * port on xNF - * (Required) - * - */ - @JsonProperty("localPort") - public String getLocalPort() { - return localPort; - } - - /** - * port on xNF - * (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 SipSignalingFields.SipSignalingFieldsVersion getSipSignalingFieldsVersion() { - return sipSignalingFieldsVersion; - } - - /** - * version of the sipSignalingFields block - * (Required) - * - */ - @JsonProperty("sipSignalingFieldsVersion") - public void setSipSignalingFieldsVersion(SipSignalingFields.SipSignalingFieldsVersion 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, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public VendorNfNameFields getVendorNfNameFields() { - return vendorNfNameFields; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { - this.vendorNfNameFields = vendorNfNameFields; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @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(vendorNfNameFields).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof SipSignalingFields) == false) { - return false; - } - SipSignalingFields rhs = ((SipSignalingFields) other); - return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(compressedSip, rhs.compressedSip).append(correlator, rhs.correlator).append(localIpAddress, rhs.localIpAddress).append(localPort, rhs.localPort).append(remoteIpAddress, rhs.remoteIpAddress).append(remotePort, rhs.remotePort).append(sipSignalingFieldsVersion, rhs.sipSignalingFieldsVersion).append(summarySip, rhs.summarySip).append(vendorNfNameFields, rhs.vendorNfNameFields).isEquals(); - } - - public enum SipSignalingFieldsVersion { - - _3_0("3.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (SipSignalingFields.SipSignalingFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private SipSignalingFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static SipSignalingFields.SipSignalingFieldsVersion fromValue(String value) { - SipSignalingFields.SipSignalingFieldsVersion 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/ves7_0/StateChangeFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java deleted file mode 100644 index cf9708f..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/StateChangeFields.java +++ /dev/null @@ -1,327 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * stateChange fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "newState", - "oldState", - "stateChangeFieldsVersion", - "stateInterface" -}) -public class StateChangeFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * 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 StateChangeFields.StateChangeFieldsVersion 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; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(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 StateChangeFields.StateChangeFieldsVersion getStateChangeFieldsVersion() { - return stateChangeFieldsVersion; - } - - /** - * version of the stateChangeFields block - * (Required) - * - */ - @JsonProperty("stateChangeFieldsVersion") - public void setStateChangeFieldsVersion(StateChangeFields.StateChangeFieldsVersion 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(newState).append(oldState).append(stateChangeFieldsVersion).append(stateInterface).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof StateChangeFields) == false) { - return false; - } - StateChangeFields rhs = ((StateChangeFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(newState, rhs.newState).append(oldState, rhs.oldState).append(stateChangeFieldsVersion, rhs.stateChangeFieldsVersion).append(stateInterface, rhs.stateInterface).isEquals(); - } - - public enum NewState { - - IN_SERVICE("inService"), - MAINTENANCE("maintenance"), - OUT_OF_SERVICE("outOfService"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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 CONSTANTS = new HashMap(); - - 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; - } - } - - } - - public enum StateChangeFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (StateChangeFields.StateChangeFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private StateChangeFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static StateChangeFields.StateChangeFieldsVersion fromValue(String value) { - StateChangeFields.StateChangeFieldsVersion 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/ves7_0/SyslogFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java deleted file mode 100644 index c8439e6..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/SyslogFields.java +++ /dev/null @@ -1,578 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * sysLog fields - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalFields", - "eventSourceHost", - "eventSourceType", - "syslogFacility", - "syslogFieldsVersion", - "syslogMsg", - "syslogMsgHost", - "syslogPri", - "syslogProc", - "syslogProcId", - "syslogSData", - "syslogSdId", - "syslogSev", - "syslogTag", - "syslogTs", - "syslogVer" -}) -public class SyslogFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation 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 SyslogFields.SyslogFieldsVersion syslogFieldsVersion; - /** - * syslog message - * (Required) - * - */ - @JsonProperty("syslogMsg") - @JsonPropertyDescription("syslog message") - private String syslogMsg; - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - @JsonPropertyDescription("hostname parsed from non-VES syslog message") - private String syslogMsgHost; - /** - * 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; - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - @JsonPropertyDescription("timestamp parsed from non-VES syslog message") - private String syslogTs; - /** - * 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; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation 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 SyslogFields.SyslogFieldsVersion getSyslogFieldsVersion() { - return syslogFieldsVersion; - } - - /** - * version of the syslogFields block - * (Required) - * - */ - @JsonProperty("syslogFieldsVersion") - public void setSyslogFieldsVersion(SyslogFields.SyslogFieldsVersion 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; - } - - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - public String getSyslogMsgHost() { - return syslogMsgHost; - } - - /** - * hostname parsed from non-VES syslog message - * - */ - @JsonProperty("syslogMsgHost") - public void setSyslogMsgHost(String syslogMsgHost) { - this.syslogMsgHost = syslogMsgHost; - } - - /** - * 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; - } - - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - public String getSyslogTs() { - return syslogTs; - } - - /** - * timestamp parsed from non-VES syslog message - * - */ - @JsonProperty("syslogTs") - public void setSyslogTs(String syslogTs) { - this.syslogTs = syslogTs; - } - - /** - * 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); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalFields).append(eventSourceHost).append(eventSourceType).append(syslogFacility).append(syslogFieldsVersion).append(syslogMsg).append(syslogMsgHost).append(syslogPri).append(syslogProc).append(syslogProcId).append(syslogSData).append(syslogSdId).append(syslogSev).append(syslogTag).append(syslogTs).append(syslogVer).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof SyslogFields) == false) { - return false; - } - SyslogFields rhs = ((SyslogFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(eventSourceHost, rhs.eventSourceHost).append(eventSourceType, rhs.eventSourceType).append(syslogFacility, rhs.syslogFacility).append(syslogFieldsVersion, rhs.syslogFieldsVersion).append(syslogMsg, rhs.syslogMsg).append(syslogMsgHost, rhs.syslogMsgHost).append(syslogPri, rhs.syslogPri).append(syslogProc, rhs.syslogProc).append(syslogProcId, rhs.syslogProcId).append(syslogSData, rhs.syslogSData).append(syslogSdId, rhs.syslogSdId).append(syslogSev, rhs.syslogSev).append(syslogTag, rhs.syslogTag).append(syslogTs, rhs.syslogTs).append(syslogVer, rhs.syslogVer).isEquals(); - } - - public enum SyslogFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (SyslogFields.SyslogFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private SyslogFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static SyslogFields.SyslogFieldsVersion fromValue(String value) { - SyslogFields.SyslogFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - - 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 CONSTANTS = new HashMap(); - - 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/ves7_0/ThresholdCrossingAlertFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java deleted file mode 100644 index daa9855..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/ThresholdCrossingAlertFields.java +++ /dev/null @@ -1,670 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * 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 { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalFields; - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - @JsonPropertyDescription("performance counters") - private List additionalParameters = new ArrayList(); - /** - * 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 associatedAlertIdList = new ArrayList(); - /** - * 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 ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public AlarmAdditionalInformation getAdditionalFields() { - return additionalFields; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalFields") - public void setAdditionalFields(AlarmAdditionalInformation additionalFields) { - this.additionalFields = additionalFields; - } - - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - public List getAdditionalParameters() { - return additionalParameters; - } - - /** - * performance counters - * (Required) - * - */ - @JsonProperty("additionalParameters") - public void setAdditionalParameters(List 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 getAssociatedAlertIdList() { - return associatedAlertIdList; - } - - /** - * List of eventIds associated with the event being reported - * - */ - @JsonProperty("associatedAlertIdList") - public void setAssociatedAlertIdList(List 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 ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion getThresholdCrossingFieldsVersion() { - return thresholdCrossingFieldsVersion; - } - - /** - * version of the thresholdCrossingAlertFields block - * (Required) - * - */ - @JsonProperty("thresholdCrossingFieldsVersion") - public void setThresholdCrossingFieldsVersion(ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion thresholdCrossingFieldsVersion) { - this.thresholdCrossingFieldsVersion = thresholdCrossingFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @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).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof ThresholdCrossingAlertFields) == false) { - return false; - } - ThresholdCrossingAlertFields rhs = ((ThresholdCrossingAlertFields) other); - return new EqualsBuilder().append(additionalFields, rhs.additionalFields).append(additionalParameters, rhs.additionalParameters).append(alertAction, rhs.alertAction).append(alertDescription, rhs.alertDescription).append(alertType, rhs.alertType).append(alertValue, rhs.alertValue).append(associatedAlertIdList, rhs.associatedAlertIdList).append(collectionTimestamp, rhs.collectionTimestamp).append(dataCollector, rhs.dataCollector).append(elementType, rhs.elementType).append(eventSeverity, rhs.eventSeverity).append(eventStartTimestamp, rhs.eventStartTimestamp).append(interfaceName, rhs.interfaceName).append(networkService, rhs.networkService).append(possibleRootCause, rhs.possibleRootCause).append(thresholdCrossingFieldsVersion, rhs.thresholdCrossingFieldsVersion).isEquals(); - } - - public enum AlertAction { - - CLEAR("CLEAR"), - CONT("CONT"), - SET("SET"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - 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 CONSTANTS = new HashMap(); - - 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 CONSTANTS = new HashMap(); - - 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; - } - } - - } - - public enum ThresholdCrossingFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private ThresholdCrossingFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion fromValue(String value) { - ThresholdCrossingAlertFields.ThresholdCrossingFieldsVersion 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/ves7_0/VendorNfNameFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java deleted file mode 100644 index f665097..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VendorNfNameFields.java +++ /dev/null @@ -1,144 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -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 org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides vendor, nf and nfModule identifying information - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "vendorName", - "nfModuleName", - "nfName" -}) -public class VendorNfNameFields { - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - @JsonPropertyDescription("network function vendor name") - private String vendorName; - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - @JsonPropertyDescription("name of the nfModule generating the event") - private String nfModuleName; - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - @JsonPropertyDescription("name of the network function generating the event") - private String nfName; - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - public String getVendorName() { - return vendorName; - } - - /** - * network function vendor name - * (Required) - * - */ - @JsonProperty("vendorName") - public void setVendorName(String vendorName) { - this.vendorName = vendorName; - } - - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - public String getNfModuleName() { - return nfModuleName; - } - - /** - * name of the nfModule generating the event - * - */ - @JsonProperty("nfModuleName") - public void setNfModuleName(String nfModuleName) { - this.nfModuleName = nfModuleName; - } - - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - public String getNfName() { - return nfName; - } - - /** - * name of the network function generating the event - * - */ - @JsonProperty("nfName") - public void setNfName(String nfName) { - this.nfName = nfName; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(vendorName).append(nfModuleName).append(nfName).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VendorNfNameFields) == false) { - return false; - } - VendorNfNameFields rhs = ((VendorNfNameFields) other); - return new EqualsBuilder().append(vendorName, rhs.vendorName).append(nfModuleName, rhs.nfModuleName).append(nfName, rhs.nfName).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java deleted file mode 100644 index 9342f0b..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VesEvent.java +++ /dev/null @@ -1,116 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * VES Event Listener Common Event Format - *

- * - * - */ -@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 additionalProperties = new HashMap(); - - /** - * 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 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(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VesEvent) == false) { - return false; - } - VesEvent rhs = ((VesEvent) other); - return new EqualsBuilder().append(event, rhs.event).append(additionalProperties, rhs.additionalProperties).isEquals(); - } - -} diff --git a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java b/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java deleted file mode 100644 index 80572c9..0000000 --- a/UniversalVesAdapter/src/main/java/org/onap/dcaegen2/ves/domain/ves7_0/VoiceQualityFields.java +++ /dev/null @@ -1,357 +0,0 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.ves7_0; - -import java.util.HashMap; -import java.util.Map; -import com.fasterxml.jackson.annotation.JsonCreator; -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; -import org.apache.commons.lang.builder.EqualsBuilder; -import org.apache.commons.lang.builder.HashCodeBuilder; -import org.apache.commons.lang.builder.ToStringBuilder; - - -/** - * provides statistics related to customer facing voice products - * - */ -@JsonInclude(JsonInclude.Include.NON_NULL) -@JsonPropertyOrder({ - "additionalInformation", - "calleeSideCodec", - "callerSideCodec", - "correlator", - "endOfCallVqmSummaries", - "phoneNumber", - "midCallRtcp", - "vendorNfNameFields", - "voiceQualityFieldsVersion" -}) -public class VoiceQualityFields { - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - @JsonPropertyDescription("an associative array which is an array of key:value pairs") - private AlarmAdditionalInformation additionalInformation; - /** - * 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, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - @JsonPropertyDescription("provides vendor, nf and nfModule identifying information") - private VendorNfNameFields vendorNfNameFields; - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - @JsonPropertyDescription("version of the voiceQualityFields block") - private VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion; - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public AlarmAdditionalInformation getAdditionalInformation() { - return additionalInformation; - } - - /** - * an associative array which is an array of key:value pairs - * - */ - @JsonProperty("additionalInformation") - public void setAdditionalInformation(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, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public VendorNfNameFields getVendorNfNameFields() { - return vendorNfNameFields; - } - - /** - * provides vendor, nf and nfModule identifying information - * (Required) - * - */ - @JsonProperty("vendorNfNameFields") - public void setVendorNfNameFields(VendorNfNameFields vendorNfNameFields) { - this.vendorNfNameFields = vendorNfNameFields; - } - - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - public VoiceQualityFields.VoiceQualityFieldsVersion getVoiceQualityFieldsVersion() { - return voiceQualityFieldsVersion; - } - - /** - * version of the voiceQualityFields block - * (Required) - * - */ - @JsonProperty("voiceQualityFieldsVersion") - public void setVoiceQualityFieldsVersion(VoiceQualityFields.VoiceQualityFieldsVersion voiceQualityFieldsVersion) { - this.voiceQualityFieldsVersion = voiceQualityFieldsVersion; - } - - @Override - public String toString() { - return ToStringBuilder.reflectionToString(this); - } - - @Override - public int hashCode() { - return new HashCodeBuilder().append(additionalInformation).append(calleeSideCodec).append(callerSideCodec).append(correlator).append(endOfCallVqmSummaries).append(phoneNumber).append(midCallRtcp).append(vendorNfNameFields).append(voiceQualityFieldsVersion).toHashCode(); - } - - @Override - public boolean equals(Object other) { - if (other == this) { - return true; - } - if ((other instanceof VoiceQualityFields) == false) { - return false; - } - VoiceQualityFields rhs = ((VoiceQualityFields) other); - return new EqualsBuilder().append(additionalInformation, rhs.additionalInformation).append(calleeSideCodec, rhs.calleeSideCodec).append(callerSideCodec, rhs.callerSideCodec).append(correlator, rhs.correlator).append(endOfCallVqmSummaries, rhs.endOfCallVqmSummaries).append(phoneNumber, rhs.phoneNumber).append(midCallRtcp, rhs.midCallRtcp).append(vendorNfNameFields, rhs.vendorNfNameFields).append(voiceQualityFieldsVersion, rhs.voiceQualityFieldsVersion).isEquals(); - } - - public enum VoiceQualityFieldsVersion { - - _4_0("4.0"); - private final String value; - private final static Map CONSTANTS = new HashMap(); - - static { - for (VoiceQualityFields.VoiceQualityFieldsVersion c: values()) { - CONSTANTS.put(c.value, c); - } - } - - private VoiceQualityFieldsVersion(String value) { - this.value = value; - } - - @Override - public String toString() { - return this.value; - } - - @JsonValue - public String value() { - return this.value; - } - - @JsonCreator - public static VoiceQualityFields.VoiceQualityFieldsVersion fromValue(String value) { - VoiceQualityFields.VoiceQualityFieldsVersion constant = CONSTANTS.get(value); - if (constant == null) { - throw new IllegalArgumentException(value); - } else { - return constant; - } - } - - } - -} 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 f17f3a6..484625f 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/adapter/UniversalEventAdapter.java @@ -1,185 +1,185 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.universalvesadapter.adapter; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Iterator; -import java.util.Map; -import java.util.concurrent.ConcurrentHashMap; - -import javax.annotation.PreDestroy; - -import org.milyn.Smooks; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; -import org.onap.universalvesadapter.exception.ConfigFileSmooksConversionException; -import org.onap.universalvesadapter.exception.VesException; -import org.onap.universalvesadapter.service.VESAdapterInitializer; -import org.onap.universalvesadapter.utils.CollectorConfigPropertyRetrival; -import org.onap.universalvesadapter.utils.SmooksUtils; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Value; -import org.springframework.stereotype.Component; -import org.xml.sax.SAXException; - -import com.fasterxml.jackson.core.JsonProcessingException; -import com.fasterxml.jackson.databind.ObjectMapper; -import com.google.gson.Gson; -import com.google.gson.JsonElement; -import com.google.gson.JsonObject; -import com.google.gson.JsonParseException; -import com.google.gson.JsonSyntaxException; - -/** - * Default implementation of the Generic Adapter - * - * @author kmalbari - * - */ - -@Component -public class UniversalEventAdapter implements GenericAdapter { - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - @Value("${defaultConfigFilelocation}") - private String defaultConfigFilelocation; - private String collectorIdentifierValue; - private String collectorIdentifierKey; - private Map eventToSmooksMapping = new ConcurrentHashMap<>(); - - public UniversalEventAdapter() { - - } - - /** - * transforms JSON to VES format and and returns the ves Event - * - * @param IncomingJason,eventType - * @return ves Event - */ - @Override - public String transform(String incomingJsonString) - throws ConfigFileSmooksConversionException, VesException { - String result = ""; - String configFileData; - - String identifier[]= CollectorConfigPropertyRetrival.getProperyArray("identifier",defaultConfigFilelocation ); - String defaultMappingFile="defaultMappingFile-"+Thread.currentThread().getName(); - try { - - Gson gson = new Gson(); - JsonObject body = gson.fromJson(incomingJsonString, JsonObject.class); - - JsonElement results; - for(int i=0;i keys = object.keySet().iterator(); - while( keys.hasNext() ) { - String key = (String)keys.next(); - if ( object.get(key) instanceof JsonObject ) { - - jsonObject=(JsonObject) object.get(key); - JsonObject obj = keyObject(jsonObject, searchedKey); - exists = obj.has(searchedKey); - } - } - } - - return jsonObject; - } - -} +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018-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.universalvesadapter.adapter; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Iterator; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import javax.annotation.PreDestroy; + +import org.milyn.Smooks; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; +import org.onap.universalvesadapter.exception.ConfigFileSmooksConversionException; +import org.onap.universalvesadapter.exception.VesException; +import org.onap.universalvesadapter.service.VESAdapterInitializer; +import org.onap.universalvesadapter.utils.CollectorConfigPropertyRetrival; +import org.onap.universalvesadapter.utils.SmooksUtils; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Value; +import org.springframework.stereotype.Component; +import org.xml.sax.SAXException; + +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.google.gson.Gson; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.JsonSyntaxException; + +/** + * Default implementation of the Generic Adapter + * + * @author kmalbari + * + */ + +@Component +public class UniversalEventAdapter implements GenericAdapter { + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + @Value("${defaultConfigFilelocation}") + private String defaultConfigFilelocation; + private String collectorIdentifierValue; + private String collectorIdentifierKey; + private Map eventToSmooksMapping = new ConcurrentHashMap<>(); + + public UniversalEventAdapter() { + + } + + /** + * transforms JSON to VES format and and returns the ves Event + * + * @param IncomingJason,eventType + * @return ves Event + */ + @Override + public String transform(String incomingJsonString) + throws ConfigFileSmooksConversionException, VesException { + String result = ""; + String configFileData; + + String identifier[]= CollectorConfigPropertyRetrival.getProperyArray("identifier",defaultConfigFilelocation ); + String defaultMappingFile="defaultMappingFile-"+Thread.currentThread().getName(); + try { + + Gson gson = new Gson(); + JsonObject body = gson.fromJson(incomingJsonString, JsonObject.class); + + JsonElement results; + for(int i=0;i keys = object.keySet().iterator(); + while( keys.hasNext() ) { + String key = (String)keys.next(); + if ( object.get(key) instanceof JsonObject ) { + + jsonObject=(JsonObject) object.get(key); + JsonObject obj = keyObject(jsonObject, searchedKey); + exists = obj.has(searchedKey); + } + } + } + + return jsonObject; + } + +} 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 9b341d5..f0fe0ee 100644 --- a/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java +++ b/UniversalVesAdapter/src/main/java/org/onap/universalvesadapter/utils/SmooksUtils.java @@ -1,76 +1,76 @@ -/* -* ============LICENSE_START======================================================= -* ONAP : DCAE -* ================================================================================ -* Copyright 2018 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.universalvesadapter.utils; - -import java.io.ByteArrayInputStream; -import java.io.IOException; -import java.nio.charset.StandardCharsets; -import java.util.Locale; -import javax.xml.transform.stream.StreamSource; -import org.milyn.Smooks; -import org.milyn.container.ExecutionContext; -import org.milyn.payload.StringResult; -import org.onap.dcaegen2.ves.domain.ves7_0.VesEvent; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - - -/** - * Utility methods for smooks module - * - * @author kmalbari - * - */ - - -public class SmooksUtils { - - - private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); - private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); - - /** - * converts the incoming json using passed smooks instance and return the pojo representation of VES event - * - * @param smooks smooks object for the event type - * @param incomingJsonString - * @return VES json's pojo representation - * @throws IOException - */ - public static VesEvent getTransformedObjectForInput(Smooks smooks, String incomingJsonString) { - - debugLogger.info("Transforming incoming json " ); - ExecutionContext executionContext = smooks.createExecutionContext(); - debugLogger.info("Context created"); - Locale defaultLocale = Locale.getDefault(); - Locale.setDefault(new Locale("en", "IE")); - - StringResult result = new StringResult(); - - smooks.filterSource(executionContext, new StreamSource(new ByteArrayInputStream(incomingJsonString.getBytes(StandardCharsets.UTF_8))), result); - - Locale.setDefault(defaultLocale); - VesEvent vesEvent = (VesEvent) executionContext.getBeanContext().getBean("vesEvent"); - debugLogger.debug("consversion successful to VES Event"); - - return vesEvent; - } - -} +/* +* ============LICENSE_START======================================================= +* ONAP : DCAE +* ================================================================================ +* Copyright 2018-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.universalvesadapter.utils; + +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.nio.charset.StandardCharsets; +import java.util.Locale; +import javax.xml.transform.stream.StreamSource; +import org.milyn.Smooks; +import org.milyn.container.ExecutionContext; +import org.milyn.payload.StringResult; +import org.onap.dcaegen2.ves.domain.ves70.VesEvent; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; + + +/** + * Utility methods for smooks module + * + * @author kmalbari + * + */ + + +public class SmooksUtils { + + + private static final Logger debugLogger = LoggerFactory.getLogger("debugLogger"); + private static final Logger errorLogger = LoggerFactory.getLogger("errorLogger"); + + /** + * converts the incoming json using passed smooks instance and return the pojo representation of VES event + * + * @param smooks smooks object for the event type + * @param incomingJsonString + * @return VES json's pojo representation + * @throws IOException + */ + public static VesEvent getTransformedObjectForInput(Smooks smooks, String incomingJsonString) { + + debugLogger.info("Transforming incoming json " ); + ExecutionContext executionContext = smooks.createExecutionContext(); + debugLogger.info("Context created"); + Locale defaultLocale = Locale.getDefault(); + Locale.setDefault(new Locale("en", "IE")); + + StringResult result = new StringResult(); + + smooks.filterSource(executionContext, new StreamSource(new ByteArrayInputStream(incomingJsonString.getBytes(StandardCharsets.UTF_8))), result); + + Locale.setDefault(defaultLocale); + VesEvent vesEvent = (VesEvent) executionContext.getBeanContext().getBean("vesEvent"); + debugLogger.debug("consversion successful to VES Event"); + + return vesEvent; + } + +} -- cgit 1.2.3-korg