Class ContainerStats
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerStats
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ContainerStats
extends Object
implements Serializable
ContainerStats contains the statistics information for a running container
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddPerCPUItem(Integer perCPUItem) blockInput(Integer blockInput) blockOutput(Integer blockOutput) containerID(String containerID) cpUSystemNano(Integer cpUSystemNano) booleanstatic ContainerStatsCreate an instance of ContainerStats given an JSON stringGet avgCPUGet blockInputGet blockOutputGet containerIDgetCPU()Get CPUGet cpUNanoGet cpUSystemNanoGet durationGet memLimitGet memPercGet memUsagegetName()Get name@Valid Map<String,ContainerNetworkStats> Map of interface name to network statistics for that interface.Get perCPUgetPiDs()Get piDsGet systemNanoA Duration represents the elapsed time between two instants as an int64 nanosecond count.inthashCode()network(Map<String, ContainerNetworkStats> network) putNetworkItem(String key, ContainerNetworkStats networkItem) voidvoidsetBlockInput(Integer blockInput) voidsetBlockOutput(Integer blockOutput) voidsetContainerID(String containerID) voidvoidsetCpUNano(Integer cpUNano) voidsetCpUSystemNano(Integer cpUSystemNano) voidsetDuration(Integer duration) voidsetMemLimit(Integer memLimit) voidsetMemPerc(Double memPerc) voidsetMemUsage(Integer memUsage) voidvoidsetNetwork(Map<String, ContainerNetworkStats> network) voidvoidvoidsetSystemNano(Integer systemNano) voidsystemNano(Integer systemNano) toJson()Convert an instance of ContainerStats to an JSON stringtoString()static voidvalidateJsonObject(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AVG_C_P_U
- See Also:
-
SERIALIZED_NAME_BLOCK_INPUT
- See Also:
-
SERIALIZED_NAME_BLOCK_OUTPUT
- See Also:
-
SERIALIZED_NAME_C_P_U
- See Also:
-
SERIALIZED_NAME_CP_U_NANO
- See Also:
-
SERIALIZED_NAME_CP_U_SYSTEM_NANO
- See Also:
-
SERIALIZED_NAME_CONTAINER_I_D
- See Also:
-
SERIALIZED_NAME_DURATION
- See Also:
-
SERIALIZED_NAME_MEM_LIMIT
- See Also:
-
SERIALIZED_NAME_MEM_PERC
- See Also:
-
SERIALIZED_NAME_MEM_USAGE
- See Also:
-
SERIALIZED_NAME_NAME
- See Also:
-
SERIALIZED_NAME_NETWORK
- See Also:
-
SERIALIZED_NAME_PI_DS
- See Also:
-
SERIALIZED_NAME_PER_C_P_U
- See Also:
-
SERIALIZED_NAME_SYSTEM_NANO
- See Also:
-
SERIALIZED_NAME_UP_TIME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerStats
public ContainerStats()
-
-
Method Details
-
avgCPU
-
getAvgCPU
Get avgCPU- Returns:
- avgCPU
-
setAvgCPU
-
blockInput
-
getBlockInput
Get blockInput- Returns:
- blockInput
-
setBlockInput
-
blockOutput
-
getBlockOutput
Get blockOutput- Returns:
- blockOutput
-
setBlockOutput
-
CPU
-
getCPU
Get CPU- Returns:
- CPU
-
setCPU
-
cpUNano
-
getCpUNano
Get cpUNano- Returns:
- cpUNano
-
setCpUNano
-
cpUSystemNano
-
getCpUSystemNano
Get cpUSystemNano- Returns:
- cpUSystemNano
-
setCpUSystemNano
-
containerID
-
getContainerID
Get containerID- Returns:
- containerID
-
setContainerID
-
duration
-
getDuration
Get duration- Returns:
- duration
-
setDuration
-
memLimit
-
getMemLimit
Get memLimit- Returns:
- memLimit
-
setMemLimit
-
memPerc
-
getMemPerc
Get memPerc- Returns:
- memPerc
-
setMemPerc
-
memUsage
-
getMemUsage
Get memUsage- Returns:
- memUsage
-
setMemUsage
-
name
-
getName
Get name- Returns:
- name
-
setName
-
network
-
putNetworkItem
-
getNetwork
Map of interface name to network statistics for that interface.- Returns:
- network
-
setNetwork
-
piDs
-
getPiDs
Get piDs- Returns:
- piDs
-
setPiDs
-
perCPU
-
addPerCPUItem
-
getPerCPU
Get perCPU- Returns:
- perCPU
-
setPerCPU
-
systemNano
-
getSystemNano
Get systemNano- Returns:
- systemNano
-
setSystemNano
-
upTime
-
getUpTime
A Duration represents the elapsed time between two instants as an int64 nanosecond count. The representation limits the largest representable duration to approximately 290 years.- Returns:
- upTime
-
setUpTime
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj- JSON Object- Throws:
IOException- if the JSON Object is invalid with respect to ContainerStats
-
fromJson
Create an instance of ContainerStats given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerStats
- Throws:
IOException- if the JSON string is invalid with respect to ContainerStats
-
toJson
Convert an instance of ContainerStats to an JSON string- Returns:
- JSON string
-