2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2019 TechMahindra
\r
6 * ================================================================================
\r
7 * Licensed under the Apache License, Version 2.0 (the "License");
\r
8 * you may not use this file except in compliance with the License.
\r
9 * You may obtain a copy of the License at
\r
11 * http://www.apache.org/licenses/LICENSE-2.0
\r
13 * Unless required by applicable law or agreed to in writing, software
\r
14 * distributed under the License is distributed on an "AS IS" BASIS,
\r
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
16 * See the License for the specific language governing permissions and
\r
17 * limitations under the License.
\r
18 * ============LICENSE_END=========================================================
\r
21 package org.onap.dcaegen2.ves.domain.ves54;
\r
23 import java.util.HashMap;
\r
24 import java.util.Map;
\r
26 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
27 import org.apache.commons.lang.builder.ToStringBuilder;
\r
29 import com.fasterxml.jackson.annotation.JsonAnyGetter;
\r
30 import com.fasterxml.jackson.annotation.JsonAnySetter;
\r
31 import com.fasterxml.jackson.annotation.JsonCreator;
\r
32 import com.fasterxml.jackson.annotation.JsonIgnore;
\r
33 import com.fasterxml.jackson.annotation.JsonInclude;
\r
34 import com.fasterxml.jackson.annotation.JsonProperty;
\r
35 import com.fasterxml.jackson.annotation.JsonPropertyDescription;
\r
36 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
37 import com.fasterxml.jackson.annotation.JsonValue;
\r
41 * provides end of call voice quality metrics
\r
44 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
45 @JsonPropertyOrder({"adjacencyName", "endpointDescription", "endpointJitter",
\r
46 "endpointRtpOctetsDiscarded", "endpointRtpOctetsReceived", "endpointRtpOctetsSent",
\r
47 "endpointRtpPacketsDiscarded", "endpointRtpPacketsReceived", "endpointRtpPacketsSent",
\r
48 "localJitter", "localRtpOctetsDiscarded", "localRtpOctetsReceived", "localRtpOctetsSent",
\r
49 "localRtpPacketsDiscarded", "localRtpPacketsReceived", "localRtpPacketsSent", "mosCqe",
\r
50 "packetsLost", "packetLossPercent", "rFactor", "roundTripDelay"})
\r
51 public class EndOfCallVqmSummaries {
\r
54 * adjacency name (Required)
\r
57 @JsonProperty("adjacencyName")
\r
58 @JsonPropertyDescription(" adjacency name")
\r
59 private String adjacencyName;
\r
61 * Either Caller or Callee (Required)
\r
64 @JsonProperty("endpointDescription")
\r
65 @JsonPropertyDescription("Either Caller or Callee")
\r
66 private EndOfCallVqmSummaries.EndpointDescription endpointDescription;
\r
71 @JsonProperty("endpointJitter")
\r
72 @JsonPropertyDescription("")
\r
73 private Double endpointJitter;
\r
78 @JsonProperty("endpointRtpOctetsDiscarded")
\r
79 @JsonPropertyDescription("")
\r
80 private Double endpointRtpOctetsDiscarded;
\r
85 @JsonProperty("endpointRtpOctetsReceived")
\r
86 @JsonPropertyDescription("")
\r
87 private Double endpointRtpOctetsReceived;
\r
92 @JsonProperty("endpointRtpOctetsSent")
\r
93 @JsonPropertyDescription("")
\r
94 private Double endpointRtpOctetsSent;
\r
99 @JsonProperty("endpointRtpPacketsDiscarded")
\r
100 @JsonPropertyDescription("")
\r
101 private Double endpointRtpPacketsDiscarded;
\r
106 @JsonProperty("endpointRtpPacketsReceived")
\r
107 @JsonPropertyDescription("")
\r
108 private Double endpointRtpPacketsReceived;
\r
113 @JsonProperty("endpointRtpPacketsSent")
\r
114 @JsonPropertyDescription("")
\r
115 private Double endpointRtpPacketsSent;
\r
120 @JsonProperty("localJitter")
\r
121 @JsonPropertyDescription("")
\r
122 private Double localJitter;
\r
127 @JsonProperty("localRtpOctetsDiscarded")
\r
128 @JsonPropertyDescription("")
\r
129 private Double localRtpOctetsDiscarded;
\r
134 @JsonProperty("localRtpOctetsReceived")
\r
135 @JsonPropertyDescription("")
\r
136 private Double localRtpOctetsReceived;
\r
141 @JsonProperty("localRtpOctetsSent")
\r
142 @JsonPropertyDescription("")
\r
143 private Double localRtpOctetsSent;
\r
148 @JsonProperty("localRtpPacketsDiscarded")
\r
149 @JsonPropertyDescription("")
\r
150 private Double localRtpPacketsDiscarded;
\r
155 @JsonProperty("localRtpPacketsReceived")
\r
156 @JsonPropertyDescription("")
\r
157 private Double localRtpPacketsReceived;
\r
162 @JsonProperty("localRtpPacketsSent")
\r
163 @JsonPropertyDescription("")
\r
164 private Double localRtpPacketsSent;
\r
169 @JsonProperty("mosCqe")
\r
170 @JsonPropertyDescription("1-5 1dp")
\r
171 private Double mosCqe;
\r
176 @JsonProperty("packetsLost")
\r
177 @JsonPropertyDescription("")
\r
178 private Double packetsLost;
\r
180 * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
\r
181 * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
\r
185 @JsonProperty("packetLossPercent")
\r
186 @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)")
\r
187 private Double packetLossPercent;
\r
192 @JsonProperty("rFactor")
\r
193 @JsonPropertyDescription("0-100")
\r
194 private Double rFactor;
\r
199 @JsonProperty("roundTripDelay")
\r
200 @JsonPropertyDescription("millisecs")
\r
201 private Double roundTripDelay;
\r
203 private Map<String, Object> additionalProperties = new HashMap<String, Object>();
\r
206 * adjacency name (Required)
\r
209 @JsonProperty("adjacencyName")
\r
210 public String getAdjacencyName() {
\r
211 return adjacencyName;
\r
215 * adjacency name (Required)
\r
218 @JsonProperty("adjacencyName")
\r
219 public void setAdjacencyName(String adjacencyName) {
\r
220 this.adjacencyName = adjacencyName;
\r
224 * Either Caller or Callee (Required)
\r
227 @JsonProperty("endpointDescription")
\r
228 public EndOfCallVqmSummaries.EndpointDescription getEndpointDescription() {
\r
229 return endpointDescription;
\r
233 * Either Caller or Callee (Required)
\r
236 @JsonProperty("endpointDescription")
\r
237 public void setEndpointDescription(
\r
238 EndOfCallVqmSummaries.EndpointDescription endpointDescription) {
\r
239 this.endpointDescription = endpointDescription;
\r
246 @JsonProperty("endpointJitter")
\r
247 public Double getEndpointJitter() {
\r
248 return endpointJitter;
\r
255 @JsonProperty("endpointJitter")
\r
256 public void setEndpointJitter(Double endpointJitter) {
\r
257 this.endpointJitter = endpointJitter;
\r
264 @JsonProperty("endpointRtpOctetsDiscarded")
\r
265 public Double getEndpointRtpOctetsDiscarded() {
\r
266 return endpointRtpOctetsDiscarded;
\r
273 @JsonProperty("endpointRtpOctetsDiscarded")
\r
274 public void setEndpointRtpOctetsDiscarded(Double endpointRtpOctetsDiscarded) {
\r
275 this.endpointRtpOctetsDiscarded = endpointRtpOctetsDiscarded;
\r
282 @JsonProperty("endpointRtpOctetsReceived")
\r
283 public Double getEndpointRtpOctetsReceived() {
\r
284 return endpointRtpOctetsReceived;
\r
291 @JsonProperty("endpointRtpOctetsReceived")
\r
292 public void setEndpointRtpOctetsReceived(Double endpointRtpOctetsReceived) {
\r
293 this.endpointRtpOctetsReceived = endpointRtpOctetsReceived;
\r
300 @JsonProperty("endpointRtpOctetsSent")
\r
301 public Double getEndpointRtpOctetsSent() {
\r
302 return endpointRtpOctetsSent;
\r
309 @JsonProperty("endpointRtpOctetsSent")
\r
310 public void setEndpointRtpOctetsSent(Double endpointRtpOctetsSent) {
\r
311 this.endpointRtpOctetsSent = endpointRtpOctetsSent;
\r
318 @JsonProperty("endpointRtpPacketsDiscarded")
\r
319 public Double getEndpointRtpPacketsDiscarded() {
\r
320 return endpointRtpPacketsDiscarded;
\r
327 @JsonProperty("endpointRtpPacketsDiscarded")
\r
328 public void setEndpointRtpPacketsDiscarded(Double endpointRtpPacketsDiscarded) {
\r
329 this.endpointRtpPacketsDiscarded = endpointRtpPacketsDiscarded;
\r
336 @JsonProperty("endpointRtpPacketsReceived")
\r
337 public Double getEndpointRtpPacketsReceived() {
\r
338 return endpointRtpPacketsReceived;
\r
345 @JsonProperty("endpointRtpPacketsReceived")
\r
346 public void setEndpointRtpPacketsReceived(Double endpointRtpPacketsReceived) {
\r
347 this.endpointRtpPacketsReceived = endpointRtpPacketsReceived;
\r
354 @JsonProperty("endpointRtpPacketsSent")
\r
355 public Double getEndpointRtpPacketsSent() {
\r
356 return endpointRtpPacketsSent;
\r
363 @JsonProperty("endpointRtpPacketsSent")
\r
364 public void setEndpointRtpPacketsSent(Double endpointRtpPacketsSent) {
\r
365 this.endpointRtpPacketsSent = endpointRtpPacketsSent;
\r
372 @JsonProperty("localJitter")
\r
373 public Double getLocalJitter() {
\r
374 return localJitter;
\r
381 @JsonProperty("localJitter")
\r
382 public void setLocalJitter(Double localJitter) {
\r
383 this.localJitter = localJitter;
\r
390 @JsonProperty("localRtpOctetsDiscarded")
\r
391 public Double getLocalRtpOctetsDiscarded() {
\r
392 return localRtpOctetsDiscarded;
\r
399 @JsonProperty("localRtpOctetsDiscarded")
\r
400 public void setLocalRtpOctetsDiscarded(Double localRtpOctetsDiscarded) {
\r
401 this.localRtpOctetsDiscarded = localRtpOctetsDiscarded;
\r
408 @JsonProperty("localRtpOctetsReceived")
\r
409 public Double getLocalRtpOctetsReceived() {
\r
410 return localRtpOctetsReceived;
\r
417 @JsonProperty("localRtpOctetsReceived")
\r
418 public void setLocalRtpOctetsReceived(Double localRtpOctetsReceived) {
\r
419 this.localRtpOctetsReceived = localRtpOctetsReceived;
\r
426 @JsonProperty("localRtpOctetsSent")
\r
427 public Double getLocalRtpOctetsSent() {
\r
428 return localRtpOctetsSent;
\r
435 @JsonProperty("localRtpOctetsSent")
\r
436 public void setLocalRtpOctetsSent(Double localRtpOctetsSent) {
\r
437 this.localRtpOctetsSent = localRtpOctetsSent;
\r
444 @JsonProperty("localRtpPacketsDiscarded")
\r
445 public Double getLocalRtpPacketsDiscarded() {
\r
446 return localRtpPacketsDiscarded;
\r
453 @JsonProperty("localRtpPacketsDiscarded")
\r
454 public void setLocalRtpPacketsDiscarded(Double localRtpPacketsDiscarded) {
\r
455 this.localRtpPacketsDiscarded = localRtpPacketsDiscarded;
\r
462 @JsonProperty("localRtpPacketsReceived")
\r
463 public Double getLocalRtpPacketsReceived() {
\r
464 return localRtpPacketsReceived;
\r
471 @JsonProperty("localRtpPacketsReceived")
\r
472 public void setLocalRtpPacketsReceived(Double localRtpPacketsReceived) {
\r
473 this.localRtpPacketsReceived = localRtpPacketsReceived;
\r
480 @JsonProperty("localRtpPacketsSent")
\r
481 public Double getLocalRtpPacketsSent() {
\r
482 return localRtpPacketsSent;
\r
489 @JsonProperty("localRtpPacketsSent")
\r
490 public void setLocalRtpPacketsSent(Double localRtpPacketsSent) {
\r
491 this.localRtpPacketsSent = localRtpPacketsSent;
\r
498 @JsonProperty("mosCqe")
\r
499 public Double getMosCqe() {
\r
507 @JsonProperty("mosCqe")
\r
508 public void setMosCqe(Double mosCqe) {
\r
509 this.mosCqe = mosCqe;
\r
516 @JsonProperty("packetsLost")
\r
517 public Double getPacketsLost() {
\r
518 return packetsLost;
\r
525 @JsonProperty("packetsLost")
\r
526 public void setPacketsLost(Double packetsLost) {
\r
527 this.packetsLost = packetsLost;
\r
531 * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
\r
532 * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
\r
536 @JsonProperty("packetLossPercent")
\r
537 public Double getPacketLossPercent() {
\r
538 return packetLossPercent;
\r
542 * Calculated percentage packet loss based on Endpoint RTP packets lost (as reported in RTCP)
\r
543 * and Local RTP packets sent. Direction is based on Endpoint description (Caller, Callee).
\r
547 @JsonProperty("packetLossPercent")
\r
548 public void setPacketLossPercent(Double packetLossPercent) {
\r
549 this.packetLossPercent = packetLossPercent;
\r
556 @JsonProperty("rFactor")
\r
557 public Double getRFactor() {
\r
565 @JsonProperty("rFactor")
\r
566 public void setRFactor(Double rFactor) {
\r
567 this.rFactor = rFactor;
\r
574 @JsonProperty("roundTripDelay")
\r
575 public Double getRoundTripDelay() {
\r
576 return roundTripDelay;
\r
583 @JsonProperty("roundTripDelay")
\r
584 public void setRoundTripDelay(Double roundTripDelay) {
\r
585 this.roundTripDelay = roundTripDelay;
\r
589 public String toString() {
\r
590 return ToStringBuilder.reflectionToString(this);
\r
594 public Map<String, Object> getAdditionalProperties() {
\r
595 return this.additionalProperties;
\r
599 public void setAdditionalProperty(String name, Object value) {
\r
600 this.additionalProperties.put(name, value);
\r
604 public int hashCode() {
\r
605 return new HashCodeBuilder().append(adjacencyName).append(endpointDescription)
\r
606 .append(endpointJitter).append(endpointRtpOctetsDiscarded)
\r
607 .append(endpointRtpOctetsReceived).append(endpointRtpOctetsSent)
\r
608 .append(endpointRtpPacketsDiscarded).append(endpointRtpPacketsReceived)
\r
609 .append(endpointRtpPacketsSent).append(localJitter).append(localRtpOctetsDiscarded)
\r
610 .append(localRtpOctetsReceived).append(localRtpOctetsSent)
\r
611 .append(localRtpPacketsDiscarded).append(localRtpPacketsReceived)
\r
612 .append(localRtpPacketsSent).append(mosCqe).append(packetsLost)
\r
613 .append(packetLossPercent).append(rFactor).append(roundTripDelay)
\r
614 .append(additionalProperties).toHashCode();
\r
619 public enum EndpointDescription {
\r
621 CALLER("Caller"), CALLEE("Callee");
\r
622 private final String value;
\r
623 private final static Map<String, EndOfCallVqmSummaries.EndpointDescription> CONSTANTS =
\r
624 new HashMap<String, EndOfCallVqmSummaries.EndpointDescription>();
\r
627 for (EndOfCallVqmSummaries.EndpointDescription c : values()) {
\r
628 CONSTANTS.put(c.value, c);
\r
632 private EndpointDescription(String value) {
\r
633 this.value = value;
\r
637 public String toString() {
\r
642 public String value() {
\r
647 public static EndOfCallVqmSummaries.EndpointDescription fromValue(String value) {
\r
648 EndOfCallVqmSummaries.EndpointDescription constant = CONSTANTS.get(value);
\r
649 if (constant == null) {
\r
650 throw new IllegalArgumentException(value);
\r