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:
  • Field Details

  • Constructor Details

    • ContainerStats

      public ContainerStats()
  • Method Details

    • avgCPU

      public ContainerStats avgCPU(Double avgCPU)
    • getAvgCPU

      @Nullable public Double getAvgCPU()
      Get avgCPU
      Returns:
      avgCPU
    • setAvgCPU

      public void setAvgCPU(Double avgCPU)
    • blockInput

      public ContainerStats blockInput(Integer blockInput)
    • getBlockInput

      @Nullable public Integer getBlockInput()
      Get blockInput
      Returns:
      blockInput
    • setBlockInput

      public void setBlockInput(Integer blockInput)
    • blockOutput

      public ContainerStats blockOutput(Integer blockOutput)
    • getBlockOutput

      @Nullable public Integer getBlockOutput()
      Get blockOutput
      Returns:
      blockOutput
    • setBlockOutput

      public void setBlockOutput(Integer blockOutput)
    • CPU

      public ContainerStats CPU(Double CPU)
    • getCPU

      @Nullable public Double getCPU()
      Get CPU
      Returns:
      CPU
    • setCPU

      public void setCPU(Double CPU)
    • cpUNano

      public ContainerStats cpUNano(Integer cpUNano)
    • getCpUNano

      @Nullable public Integer getCpUNano()
      Get cpUNano
      Returns:
      cpUNano
    • setCpUNano

      public void setCpUNano(Integer cpUNano)
    • cpUSystemNano

      public ContainerStats cpUSystemNano(Integer cpUSystemNano)
    • getCpUSystemNano

      @Nullable public Integer getCpUSystemNano()
      Get cpUSystemNano
      Returns:
      cpUSystemNano
    • setCpUSystemNano

      public void setCpUSystemNano(Integer cpUSystemNano)
    • containerID

      public ContainerStats containerID(String containerID)
    • getContainerID

      @Nullable public String getContainerID()
      Get containerID
      Returns:
      containerID
    • setContainerID

      public void setContainerID(String containerID)
    • duration

      public ContainerStats duration(Integer duration)
    • getDuration

      @Nullable public Integer getDuration()
      Get duration
      Returns:
      duration
    • setDuration

      public void setDuration(Integer duration)
    • memLimit

      public ContainerStats memLimit(Integer memLimit)
    • getMemLimit

      @Nullable public Integer getMemLimit()
      Get memLimit
      Returns:
      memLimit
    • setMemLimit

      public void setMemLimit(Integer memLimit)
    • memPerc

      public ContainerStats memPerc(Double memPerc)
    • getMemPerc

      @Nullable public Double getMemPerc()
      Get memPerc
      Returns:
      memPerc
    • setMemPerc

      public void setMemPerc(Double memPerc)
    • memUsage

      public ContainerStats memUsage(Integer memUsage)
    • getMemUsage

      @Nullable public Integer getMemUsage()
      Get memUsage
      Returns:
      memUsage
    • setMemUsage

      public void setMemUsage(Integer memUsage)
    • name

      public ContainerStats name(String name)
    • getName

      @Nullable public String getName()
      Get name
      Returns:
      name
    • setName

      public void setName(String name)
    • network

      public ContainerStats network(Map<String,ContainerNetworkStats> network)
    • putNetworkItem

      public ContainerStats putNetworkItem(String key, ContainerNetworkStats networkItem)
    • getNetwork

      @Nullable @Valid public @Valid Map<String,ContainerNetworkStats> getNetwork()
      Map of interface name to network statistics for that interface.
      Returns:
      network
    • setNetwork

      public void setNetwork(Map<String,ContainerNetworkStats> network)
    • piDs

      public ContainerStats piDs(Integer piDs)
    • getPiDs

      @Nullable public Integer getPiDs()
      Get piDs
      Returns:
      piDs
    • setPiDs

      public void setPiDs(Integer piDs)
    • perCPU

      public ContainerStats perCPU(List<Integer> perCPU)
    • addPerCPUItem

      public ContainerStats addPerCPUItem(Integer perCPUItem)
    • getPerCPU

      @Nullable public List<Integer> getPerCPU()
      Get perCPU
      Returns:
      perCPU
    • setPerCPU

      public void setPerCPU(List<Integer> perCPU)
    • systemNano

      public ContainerStats systemNano(Integer systemNano)
    • getSystemNano

      @Nullable public Integer getSystemNano()
      Get systemNano
      Returns:
      systemNano
    • setSystemNano

      public void setSystemNano(Integer systemNano)
    • upTime

      public ContainerStats upTime(Long upTime)
    • getUpTime

      @Nullable public Long 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

      public void setUpTime(Long upTime)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static ContainerStats fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ContainerStats to an JSON string
      Returns:
      JSON string