Class ContainerCpuStatistics
java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerCpuStatistics
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerCpuStatistics>
public final class ContainerCpuStatistics
extends Object
implements com.azure.json.JsonSerializable<ContainerCpuStatistics>
The ContainerCpuStatistics model.
-
Method Summary
Modifier and TypeMethodDescriptioncpuUsage()Get the cpuUsage property: The cpuUsage property.static ContainerCpuStatisticsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ContainerCpuStatistics from the JsonReader.Get the onlineCpuCount property: The onlineCpuCount property.Get the systemCpuUsage property: The systemCpuUsage property.Get the throttlingData property: The throttlingData property.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
cpuUsage
Get the cpuUsage property: The cpuUsage property.- Returns:
- the cpuUsage value.
-
systemCpuUsage
Get the systemCpuUsage property: The systemCpuUsage property.- Returns:
- the systemCpuUsage value.
-
onlineCpuCount
Get the onlineCpuCount property: The onlineCpuCount property.- Returns:
- the onlineCpuCount value.
-
throttlingData
Get the throttlingData property: The throttlingData property.- Returns:
- the throttlingData value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ContainerCpuStatistics>- Throws:
IOException
-
fromJson
public static ContainerCpuStatistics fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ContainerCpuStatistics from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ContainerCpuStatistics if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the ContainerCpuStatistics.
-