ContainerCpuUsage Class
- java.
lang. Object - com.
azure. resourcemanager. appservice. models. ContainerCpuUsage
- com.
Implements
public final class ContainerCpuUsage
implements JsonSerializable<ContainerCpuUsage>
The ContainerCpuUsage model.
Constructor Summary
Constructor | Description |
---|---|
ContainerCpuUsage() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
Long |
kernelModeUsage()
Get the kernel |
List<Long> |
perCpuUsage()
Get the per |
Json |
toJson(JsonWriter jsonWriter) |
Long |
totalUsage()
Get the total |
Long |
userModeUsage()
Get the user |
void |
validate()
Validates the instance. |
Container |
withKernelModeUsage(Long kernelModeUsage)
Set the kernel |
Container |
withPerCpuUsage(List<Long> perCpuUsage)
Set the per |
Container |
withTotalUsage(Long totalUsage)
Set the total |
Container |
withUserModeUsage(Long userModeUsage)
Set the user |
Methods inherited from java.lang.Object
Constructor Details
ContainerCpuUsage
public ContainerCpuUsage()
Creates an instance of ContainerCpuUsage class.
Method Details
fromJson
public static ContainerCpuUsage fromJson(JsonReader jsonReader)
Reads an instance of ContainerCpuUsage from the JsonReader.
Parameters:
Returns:
Throws:
kernelModeUsage
public Long kernelModeUsage()
Get the kernelModeUsage property: The kernelModeUsage property.
Returns:
perCpuUsage
public List
Get the perCpuUsage property: The perCpuUsage property.
Returns:
toJson
totalUsage
public Long totalUsage()
Get the totalUsage property: The totalUsage property.
Returns:
userModeUsage
public Long userModeUsage()
Get the userModeUsage property: The userModeUsage property.
Returns:
validate
public void validate()
Validates the instance.
withKernelModeUsage
public ContainerCpuUsage withKernelModeUsage(Long kernelModeUsage)
Set the kernelModeUsage property: The kernelModeUsage property.
Parameters:
Returns:
withPerCpuUsage
public ContainerCpuUsage withPerCpuUsage(List
Set the perCpuUsage property: The perCpuUsage property.
Parameters:
Returns:
withTotalUsage
public ContainerCpuUsage withTotalUsage(Long totalUsage)
Set the totalUsage property: The totalUsage property.
Parameters:
Returns:
withUserModeUsage
public ContainerCpuUsage withUserModeUsage(Long userModeUsage)
Set the userModeUsage property: The userModeUsage property.
Parameters:
Returns:
Applies to
Azure SDK for Java