2 * ============LICENSE_START=======================================================
\r
4 * ================================================================================
\r
5 * Copyright 2018 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
20 package org.onap.dcaegen2.ves.domain.ves7_0;
\r
22 import com.fasterxml.jackson.annotation.JsonInclude;
\r
23 import com.fasterxml.jackson.annotation.JsonProperty;
\r
24 import com.fasterxml.jackson.annotation.JsonPropertyDescription;
\r
25 import com.fasterxml.jackson.annotation.JsonPropertyOrder;
\r
26 import org.apache.commons.lang.builder.EqualsBuilder;
\r
27 import org.apache.commons.lang.builder.HashCodeBuilder;
\r
28 import org.apache.commons.lang.builder.ToStringBuilder;
\r
32 * memory usage of an identified virtual machine
\r
35 @JsonInclude(JsonInclude.Include.NON_NULL)
\r
36 @JsonPropertyOrder({
\r
47 "memorySwapInRateAvg",
\r
49 "memorySwapOutRateAvg",
\r
50 "memorySwapUsedAvg",
\r
52 "percentMemoryUsage",
\r
55 public class MemoryUsageArray {
\r
58 * kibibytes of temporary storage for raw disk blocks
\r
61 @JsonProperty("memoryBuffered")
\r
62 @JsonPropertyDescription("kibibytes of temporary storage for raw disk blocks")
\r
63 private Double memoryBuffered;
\r
65 * kibibytes of memory used for cache
\r
68 @JsonProperty("memoryCached")
\r
69 @JsonPropertyDescription("kibibytes of memory used for cache")
\r
70 private Double memoryCached;
\r
72 * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running
\r
75 @JsonProperty("memoryConfigured")
\r
76 @JsonPropertyDescription("kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running")
\r
77 private Double memoryConfigured;
\r
79 * host demand in kibibytes
\r
82 @JsonProperty("memoryDemand")
\r
83 @JsonPropertyDescription("host demand in kibibytes")
\r
84 private Double memoryDemand;
\r
86 * kibibytes of physical RAM left unused by the system
\r
90 @JsonProperty("memoryFree")
\r
91 @JsonPropertyDescription("kibibytes of physical RAM left unused by the system")
\r
92 private Double memoryFree;
\r
94 * Percentage of time the VM is waiting to access swapped or compressed memory
\r
97 @JsonProperty("memoryLatencyAvg")
\r
98 @JsonPropertyDescription("Percentage of time the VM is waiting to access swapped or compressed memory")
\r
99 private Double memoryLatencyAvg;
\r
101 * shared memory in kilobytes
\r
104 @JsonProperty("memorySharedAvg")
\r
105 @JsonPropertyDescription("shared memory in kilobytes")
\r
106 private Double memorySharedAvg;
\r
108 * the part of the slab that can be reclaimed such as caches measured in kibibytes
\r
111 @JsonProperty("memorySlabRecl")
\r
112 @JsonPropertyDescription("the part of the slab that can be reclaimed such as caches measured in kibibytes")
\r
113 private Double memorySlabRecl;
\r
115 * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
\r
118 @JsonProperty("memorySlabUnrecl")
\r
119 @JsonPropertyDescription("the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes")
\r
120 private Double memorySlabUnrecl;
\r
122 * Amount of memory swapped-in from host cache in kibibytes
\r
125 @JsonProperty("memorySwapInAvg")
\r
126 @JsonPropertyDescription("Amount of memory swapped-in from host cache in kibibytes")
\r
127 private Double memorySwapInAvg;
\r
129 * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second
\r
132 @JsonProperty("memorySwapInRateAvg")
\r
133 @JsonPropertyDescription("rate at which memory is swapped from disk into active memory during the interval in kilobytes per second")
\r
134 private Double memorySwapInRateAvg;
\r
136 * Amount of memory swapped-out to host cache in kibibytes
\r
139 @JsonProperty("memorySwapOutAvg")
\r
140 @JsonPropertyDescription("Amount of memory swapped-out to host cache in kibibytes")
\r
141 private Double memorySwapOutAvg;
\r
143 * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second
\r
146 @JsonProperty("memorySwapOutRateAvg")
\r
147 @JsonPropertyDescription("rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second")
\r
148 private Double memorySwapOutRateAvg;
\r
150 * space used for caching swapped pages in the host cache in kibibytes
\r
153 @JsonProperty("memorySwapUsedAvg")
\r
154 @JsonPropertyDescription("space used for caching swapped pages in the host cache in kibibytes")
\r
155 private Double memorySwapUsedAvg;
\r
157 * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
\r
161 @JsonProperty("memoryUsed")
\r
162 @JsonPropertyDescription("total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes")
\r
163 private Double memoryUsed;
\r
165 * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise
\r
168 @JsonProperty("percentMemoryUsage")
\r
169 @JsonPropertyDescription("Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise")
\r
170 private Double percentMemoryUsage;
\r
172 * virtual machine identifier associated with the memory metrics
\r
176 @JsonProperty("vmIdentifier")
\r
177 @JsonPropertyDescription("virtual machine identifier associated with the memory metrics")
\r
178 private String vmIdentifier;
\r
181 * kibibytes of temporary storage for raw disk blocks
\r
184 @JsonProperty("memoryBuffered")
\r
185 public Double getMemoryBuffered() {
\r
186 return memoryBuffered;
\r
190 * kibibytes of temporary storage for raw disk blocks
\r
193 @JsonProperty("memoryBuffered")
\r
194 public void setMemoryBuffered(Double memoryBuffered) {
\r
195 this.memoryBuffered = memoryBuffered;
\r
199 * kibibytes of memory used for cache
\r
202 @JsonProperty("memoryCached")
\r
203 public Double getMemoryCached() {
\r
204 return memoryCached;
\r
208 * kibibytes of memory used for cache
\r
211 @JsonProperty("memoryCached")
\r
212 public void setMemoryCached(Double memoryCached) {
\r
213 this.memoryCached = memoryCached;
\r
217 * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running
\r
220 @JsonProperty("memoryConfigured")
\r
221 public Double getMemoryConfigured() {
\r
222 return memoryConfigured;
\r
226 * kibibytes of memory configured in the virtual machine on which the xNFC reporting the event is running
\r
229 @JsonProperty("memoryConfigured")
\r
230 public void setMemoryConfigured(Double memoryConfigured) {
\r
231 this.memoryConfigured = memoryConfigured;
\r
235 * host demand in kibibytes
\r
238 @JsonProperty("memoryDemand")
\r
239 public Double getMemoryDemand() {
\r
240 return memoryDemand;
\r
244 * host demand in kibibytes
\r
247 @JsonProperty("memoryDemand")
\r
248 public void setMemoryDemand(Double memoryDemand) {
\r
249 this.memoryDemand = memoryDemand;
\r
253 * kibibytes of physical RAM left unused by the system
\r
257 @JsonProperty("memoryFree")
\r
258 public Double getMemoryFree() {
\r
263 * kibibytes of physical RAM left unused by the system
\r
267 @JsonProperty("memoryFree")
\r
268 public void setMemoryFree(Double memoryFree) {
\r
269 this.memoryFree = memoryFree;
\r
273 * Percentage of time the VM is waiting to access swapped or compressed memory
\r
276 @JsonProperty("memoryLatencyAvg")
\r
277 public Double getMemoryLatencyAvg() {
\r
278 return memoryLatencyAvg;
\r
282 * Percentage of time the VM is waiting to access swapped or compressed memory
\r
285 @JsonProperty("memoryLatencyAvg")
\r
286 public void setMemoryLatencyAvg(Double memoryLatencyAvg) {
\r
287 this.memoryLatencyAvg = memoryLatencyAvg;
\r
291 * shared memory in kilobytes
\r
294 @JsonProperty("memorySharedAvg")
\r
295 public Double getMemorySharedAvg() {
\r
296 return memorySharedAvg;
\r
300 * shared memory in kilobytes
\r
303 @JsonProperty("memorySharedAvg")
\r
304 public void setMemorySharedAvg(Double memorySharedAvg) {
\r
305 this.memorySharedAvg = memorySharedAvg;
\r
309 * the part of the slab that can be reclaimed such as caches measured in kibibytes
\r
312 @JsonProperty("memorySlabRecl")
\r
313 public Double getMemorySlabRecl() {
\r
314 return memorySlabRecl;
\r
318 * the part of the slab that can be reclaimed such as caches measured in kibibytes
\r
321 @JsonProperty("memorySlabRecl")
\r
322 public void setMemorySlabRecl(Double memorySlabRecl) {
\r
323 this.memorySlabRecl = memorySlabRecl;
\r
327 * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
\r
330 @JsonProperty("memorySlabUnrecl")
\r
331 public Double getMemorySlabUnrecl() {
\r
332 return memorySlabUnrecl;
\r
336 * the part of the slab that cannot be reclaimed even when lacking memory measured in kibibytes
\r
339 @JsonProperty("memorySlabUnrecl")
\r
340 public void setMemorySlabUnrecl(Double memorySlabUnrecl) {
\r
341 this.memorySlabUnrecl = memorySlabUnrecl;
\r
345 * Amount of memory swapped-in from host cache in kibibytes
\r
348 @JsonProperty("memorySwapInAvg")
\r
349 public Double getMemorySwapInAvg() {
\r
350 return memorySwapInAvg;
\r
354 * Amount of memory swapped-in from host cache in kibibytes
\r
357 @JsonProperty("memorySwapInAvg")
\r
358 public void setMemorySwapInAvg(Double memorySwapInAvg) {
\r
359 this.memorySwapInAvg = memorySwapInAvg;
\r
363 * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second
\r
366 @JsonProperty("memorySwapInRateAvg")
\r
367 public Double getMemorySwapInRateAvg() {
\r
368 return memorySwapInRateAvg;
\r
372 * rate at which memory is swapped from disk into active memory during the interval in kilobytes per second
\r
375 @JsonProperty("memorySwapInRateAvg")
\r
376 public void setMemorySwapInRateAvg(Double memorySwapInRateAvg) {
\r
377 this.memorySwapInRateAvg = memorySwapInRateAvg;
\r
381 * Amount of memory swapped-out to host cache in kibibytes
\r
384 @JsonProperty("memorySwapOutAvg")
\r
385 public Double getMemorySwapOutAvg() {
\r
386 return memorySwapOutAvg;
\r
390 * Amount of memory swapped-out to host cache in kibibytes
\r
393 @JsonProperty("memorySwapOutAvg")
\r
394 public void setMemorySwapOutAvg(Double memorySwapOutAvg) {
\r
395 this.memorySwapOutAvg = memorySwapOutAvg;
\r
399 * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second
\r
402 @JsonProperty("memorySwapOutRateAvg")
\r
403 public Double getMemorySwapOutRateAvg() {
\r
404 return memorySwapOutRateAvg;
\r
408 * rate at which memory is being swapped from active memory to disk during the current interval in kilobytes per second
\r
411 @JsonProperty("memorySwapOutRateAvg")
\r
412 public void setMemorySwapOutRateAvg(Double memorySwapOutRateAvg) {
\r
413 this.memorySwapOutRateAvg = memorySwapOutRateAvg;
\r
417 * space used for caching swapped pages in the host cache in kibibytes
\r
420 @JsonProperty("memorySwapUsedAvg")
\r
421 public Double getMemorySwapUsedAvg() {
\r
422 return memorySwapUsedAvg;
\r
426 * space used for caching swapped pages in the host cache in kibibytes
\r
429 @JsonProperty("memorySwapUsedAvg")
\r
430 public void setMemorySwapUsedAvg(Double memorySwapUsedAvg) {
\r
431 this.memorySwapUsedAvg = memorySwapUsedAvg;
\r
435 * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
\r
439 @JsonProperty("memoryUsed")
\r
440 public Double getMemoryUsed() {
\r
445 * total memory minus the sum of free, buffered, cached and slab memory measured in kibibytes
\r
449 @JsonProperty("memoryUsed")
\r
450 public void setMemoryUsed(Double memoryUsed) {
\r
451 this.memoryUsed = memoryUsed;
\r
455 * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise
\r
458 @JsonProperty("percentMemoryUsage")
\r
459 public Double getPercentMemoryUsage() {
\r
460 return percentMemoryUsage;
\r
464 * Percentage of memory usage; value = (memoryUsed / (memoryUsed + memoryFree) x 100 if denomintor is nonzero, or 0, if otherwise
\r
467 @JsonProperty("percentMemoryUsage")
\r
468 public void setPercentMemoryUsage(Double percentMemoryUsage) {
\r
469 this.percentMemoryUsage = percentMemoryUsage;
\r
473 * virtual machine identifier associated with the memory metrics
\r
477 @JsonProperty("vmIdentifier")
\r
478 public String getVmIdentifier() {
\r
479 return vmIdentifier;
\r
483 * virtual machine identifier associated with the memory metrics
\r
487 @JsonProperty("vmIdentifier")
\r
488 public void setVmIdentifier(String vmIdentifier) {
\r
489 this.vmIdentifier = vmIdentifier;
\r
493 public String toString() {
\r
494 return ToStringBuilder.reflectionToString(this);
\r
498 public int hashCode() {
\r
499 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();
\r
503 public boolean equals(Object other) {
\r
504 if (other == this) {
\r
507 if ((other instanceof MemoryUsageArray) == false) {
\r
510 MemoryUsageArray rhs = ((MemoryUsageArray) other);
\r
511 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();
\r