Class ContainerCpuUsage

java.lang.Object
com.azure.resourcemanager.appservice.models.ContainerCpuUsage
All Implemented Interfaces:
com.azure.json.JsonSerializable<ContainerCpuUsage>

public final class ContainerCpuUsage extends Object implements com.azure.json.JsonSerializable<ContainerCpuUsage>
The ContainerCpuUsage model.
  • Method Details

    • totalUsage

      public Long totalUsage()
      Get the totalUsage property: The totalUsage property.
      Returns:
      the totalUsage value.
    • perCpuUsage

      public List<Long> perCpuUsage()
      Get the perCpuUsage property: The perCpuUsage property.
      Returns:
      the perCpuUsage value.
    • kernelModeUsage

      public Long kernelModeUsage()
      Get the kernelModeUsage property: The kernelModeUsage property.
      Returns:
      the kernelModeUsage value.
    • userModeUsage

      public Long userModeUsage()
      Get the userModeUsage property: The userModeUsage property.
      Returns:
      the userModeUsage value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ContainerCpuUsage>
      Throws:
      IOException
    • fromJson

      public static ContainerCpuUsage fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ContainerCpuUsage from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ContainerCpuUsage 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 ContainerCpuUsage.