/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */ package com.microsoft.azure.batch.protocol.models; import org.joda.time.DateTime; import com.fasterxml.jackson.annotation.JsonProperty; /** * Statistics related to resource consumption by compute nodes in a pool. */ public class ResourceStatistics { /** * The start time of the time range covered by the statistics. */ @JsonProperty(required = true) private DateTime startTime; /** * The time at which the statistics were last updated. All statistics are * limited to the range between startTime and lastUpdateTime. */ @JsonProperty(required = true) private DateTime lastUpdateTime; /** * The average CPU usage across all nodes in the pool (percentage per * node). */ @JsonProperty(required = true) private double avgCPUPercentage; /** * The average memory usage in GiB across all nodes in the pool. */ @JsonProperty(required = true) private double avgMemoryGiB; /** * The peak memory usage in GiB across all nodes in the pool. */ @JsonProperty(required = true) private double peakMemoryGiB; /** * The average used disk space in GiB across all nodes in the pool. */ @JsonProperty(required = true) private double avgDiskGiB; /** * The peak used disk space in GiB across all nodes in the pool. */ @JsonProperty(required = true) private double peakDiskGiB; /** * The total number of disk read operations across all nodes in the pool. */ @JsonProperty(required = true) private long diskReadIOps; /** * The total number of disk write operations across all nodes in the pool. */ @JsonProperty(required = true) private long diskWriteIOps; /** * The total amount of data in GiB of disk reads across all nodes in the * pool. */ @JsonProperty(required = true) private double diskReadGiB; /** * The total amount of data in GiB of disk writes across all nodes in the * pool. */ @JsonProperty(required = true) private double diskWriteGiB; /** * The total amount of data in GiB of network reads across all nodes in * the pool. */ @JsonProperty(required = true) private double networkReadGiB; /** * The total amount of data in GiB of network writes across all nodes in * the pool. */ @JsonProperty(required = true) private double networkWriteGiB; /** * Get the startTime value. * * @return the startTime value */ public DateTime startTime() { return this.startTime; } /** * Set the startTime value. * * @param startTime the startTime value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withStartTime(DateTime startTime) { this.startTime = startTime; return this; } /** * Get the lastUpdateTime value. * * @return the lastUpdateTime value */ public DateTime lastUpdateTime() { return this.lastUpdateTime; } /** * Set the lastUpdateTime value. * * @param lastUpdateTime the lastUpdateTime value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withLastUpdateTime(DateTime lastUpdateTime) { this.lastUpdateTime = lastUpdateTime; return this; } /** * Get the avgCPUPercentage value. * * @return the avgCPUPercentage value */ public double avgCPUPercentage() { return this.avgCPUPercentage; } /** * Set the avgCPUPercentage value. * * @param avgCPUPercentage the avgCPUPercentage value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withAvgCPUPercentage(double avgCPUPercentage) { this.avgCPUPercentage = avgCPUPercentage; return this; } /** * Get the avgMemoryGiB value. * * @return the avgMemoryGiB value */ public double avgMemoryGiB() { return this.avgMemoryGiB; } /** * Set the avgMemoryGiB value. * * @param avgMemoryGiB the avgMemoryGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withAvgMemoryGiB(double avgMemoryGiB) { this.avgMemoryGiB = avgMemoryGiB; return this; } /** * Get the peakMemoryGiB value. * * @return the peakMemoryGiB value */ public double peakMemoryGiB() { return this.peakMemoryGiB; } /** * Set the peakMemoryGiB value. * * @param peakMemoryGiB the peakMemoryGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withPeakMemoryGiB(double peakMemoryGiB) { this.peakMemoryGiB = peakMemoryGiB; return this; } /** * Get the avgDiskGiB value. * * @return the avgDiskGiB value */ public double avgDiskGiB() { return this.avgDiskGiB; } /** * Set the avgDiskGiB value. * * @param avgDiskGiB the avgDiskGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withAvgDiskGiB(double avgDiskGiB) { this.avgDiskGiB = avgDiskGiB; return this; } /** * Get the peakDiskGiB value. * * @return the peakDiskGiB value */ public double peakDiskGiB() { return this.peakDiskGiB; } /** * Set the peakDiskGiB value. * * @param peakDiskGiB the peakDiskGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withPeakDiskGiB(double peakDiskGiB) { this.peakDiskGiB = peakDiskGiB; return this; } /** * Get the diskReadIOps value. * * @return the diskReadIOps value */ public long diskReadIOps() { return this.diskReadIOps; } /** * Set the diskReadIOps value. * * @param diskReadIOps the diskReadIOps value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withDiskReadIOps(long diskReadIOps) { this.diskReadIOps = diskReadIOps; return this; } /** * Get the diskWriteIOps value. * * @return the diskWriteIOps value */ public long diskWriteIOps() { return this.diskWriteIOps; } /** * Set the diskWriteIOps value. * * @param diskWriteIOps the diskWriteIOps value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withDiskWriteIOps(long diskWriteIOps) { this.diskWriteIOps = diskWriteIOps; return this; } /** * Get the diskReadGiB value. * * @return the diskReadGiB value */ public double diskReadGiB() { return this.diskReadGiB; } /** * Set the diskReadGiB value. * * @param diskReadGiB the diskReadGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withDiskReadGiB(double diskReadGiB) { this.diskReadGiB = diskReadGiB; return this; } /** * Get the diskWriteGiB value. * * @return the diskWriteGiB value */ public double diskWriteGiB() { return this.diskWriteGiB; } /** * Set the diskWriteGiB value. * * @param diskWriteGiB the diskWriteGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withDiskWriteGiB(double diskWriteGiB) { this.diskWriteGiB = diskWriteGiB; return this; } /** * Get the networkReadGiB value. * * @return the networkReadGiB value */ public double networkReadGiB() { return this.networkReadGiB; } /** * Set the networkReadGiB value. * * @param networkReadGiB the networkReadGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withNetworkReadGiB(double networkReadGiB) { this.networkReadGiB = networkReadGiB; return this; } /** * Get the networkWriteGiB value. * * @return the networkWriteGiB value */ public double networkWriteGiB() { return this.networkWriteGiB; } /** * Set the networkWriteGiB value. * * @param networkWriteGiB the networkWriteGiB value to set * @return the ResourceStatistics object itself. */ public ResourceStatistics withNetworkWriteGiB(double networkWriteGiB) { this.networkWriteGiB = networkWriteGiB; return this; } }