ContainerCpuStatistics Class

  • java.lang.Object
    • com.azure.resourcemanager.appservice.models.ContainerCpuStatistics

Implements

public final class ContainerCpuStatistics
implements JsonSerializable<ContainerCpuStatistics>

The ContainerCpuStatistics model.

Constructor Summary

Constructor Description
ContainerCpuStatistics()

Creates an instance of ContainerCpuStatistics class.

Method Summary

Modifier and Type Method and Description
ContainerCpuUsage cpuUsage()

Get the cpuUsage property: The cpuUsage property.

static ContainerCpuStatistics fromJson(JsonReader jsonReader)

Reads an instance of ContainerCpuStatistics from the JsonReader.

Integer onlineCpuCount()

Get the onlineCpuCount property: The onlineCpuCount property.

Long systemCpuUsage()

Get the systemCpuUsage property: The systemCpuUsage property.

ContainerThrottlingData throttlingData()

Get the throttlingData property: The throttlingData property.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerCpuStatistics withCpuUsage(ContainerCpuUsage cpuUsage)

Set the cpuUsage property: The cpuUsage property.

ContainerCpuStatistics withOnlineCpuCount(Integer onlineCpuCount)

Set the onlineCpuCount property: The onlineCpuCount property.

ContainerCpuStatistics withSystemCpuUsage(Long systemCpuUsage)

Set the systemCpuUsage property: The systemCpuUsage property.

ContainerCpuStatistics withThrottlingData(ContainerThrottlingData throttlingData)

Set the throttlingData property: The throttlingData property.

Methods inherited from java.lang.Object

Constructor Details

ContainerCpuStatistics

public ContainerCpuStatistics()

Creates an instance of ContainerCpuStatistics class.

Method Details

cpuUsage

public ContainerCpuUsage cpuUsage()

Get the cpuUsage property: The cpuUsage property.

Returns:

the cpuUsage value.

fromJson

public static ContainerCpuStatistics fromJson(JsonReader jsonReader)

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.

onlineCpuCount

public Integer onlineCpuCount()

Get the onlineCpuCount property: The onlineCpuCount property.

Returns:

the onlineCpuCount value.

systemCpuUsage

public Long systemCpuUsage()

Get the systemCpuUsage property: The systemCpuUsage property.

Returns:

the systemCpuUsage value.

throttlingData

public ContainerThrottlingData throttlingData()

Get the throttlingData property: The throttlingData property.

Returns:

the throttlingData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withCpuUsage

public ContainerCpuStatistics withCpuUsage(ContainerCpuUsage cpuUsage)

Set the cpuUsage property: The cpuUsage property.

Parameters:

cpuUsage - the cpuUsage value to set.

Returns:

the ContainerCpuStatistics object itself.

withOnlineCpuCount

public ContainerCpuStatistics withOnlineCpuCount(Integer onlineCpuCount)

Set the onlineCpuCount property: The onlineCpuCount property.

Parameters:

onlineCpuCount - the onlineCpuCount value to set.

Returns:

the ContainerCpuStatistics object itself.

withSystemCpuUsage

public ContainerCpuStatistics withSystemCpuUsage(Long systemCpuUsage)

Set the systemCpuUsage property: The systemCpuUsage property.

Parameters:

systemCpuUsage - the systemCpuUsage value to set.

Returns:

the ContainerCpuStatistics object itself.

withThrottlingData

public ContainerCpuStatistics withThrottlingData(ContainerThrottlingData throttlingData)

Set the throttlingData property: The throttlingData property.

Parameters:

throttlingData - the throttlingData value to set.

Returns:

the ContainerCpuStatistics object itself.

Applies to