Class PodStatsReport

java.lang.Object
io.github.alersrt.pod4j.openapi.model.PodStatsReport

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-29T01:29:49.168634544+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class PodStatsReport extends Object
PodStatsReport
  • Field Details

  • Constructor Details

    • PodStatsReport

      public PodStatsReport()
  • Method Details

    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      Validates the JSON Element and throws an exception if issues found
      Parameters:
      jsonElement - JSON Element
      Throws:
      IOException - if the JSON Element is invalid with respect to PodStatsReport
    • fromJson

      public static PodStatsReport fromJson(String jsonString) throws IOException
      Create an instance of PodStatsReport given an JSON string
      Parameters:
      jsonString - JSON string
      Returns:
      An instance of PodStatsReport
      Throws:
      IOException - if the JSON string is invalid with respect to PodStatsReport
    • blockIO

      public PodStatsReport blockIO(String blockIO)
    • getBlockIO

      @Nullable public String getBlockIO()
      Humanized disk usage read + write
      Returns:
      blockIO
    • setBlockIO

      public void setBlockIO(String blockIO)
    • CID

      public PodStatsReport CID(String CID)
    • getCID

      @Nullable public String getCID()
      Container ID
      Returns:
      CID
    • setCID

      public void setCID(String CID)
    • CPU

      public PodStatsReport CPU(String CPU)
    • getCPU

      @Nullable public String getCPU()
      Percentage of CPU utilized by pod
      Returns:
      CPU
    • setCPU

      public void setCPU(String CPU)
    • mem

      public PodStatsReport mem(String mem)
    • getMem

      @Nullable public String getMem()
      Percentage of Memory utilized by pod
      Returns:
      mem
    • setMem

      public void setMem(String mem)
    • memUsage

      public PodStatsReport memUsage(String memUsage)
    • getMemUsage

      @Nullable public String getMemUsage()
      Humanized Memory usage and maximum
      Returns:
      memUsage
    • setMemUsage

      public void setMemUsage(String memUsage)
    • memUsageBytes

      public PodStatsReport memUsageBytes(String memUsageBytes)
    • getMemUsageBytes

      @Nullable public String getMemUsageBytes()
      Memory usage and maximum in bytes
      Returns:
      memUsageBytes
    • setMemUsageBytes

      public void setMemUsageBytes(String memUsageBytes)
    • name

      public PodStatsReport name(String name)
    • getName

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

      public void setName(String name)
    • netIO

      public PodStatsReport netIO(String netIO)
    • getNetIO

      @Nullable public String getNetIO()
      Network usage inbound + outbound
      Returns:
      netIO
    • setNetIO

      public void setNetIO(String netIO)
    • PIDS

      public PodStatsReport PIDS(String PIDS)
    • getPIDS

      @Nullable public String getPIDS()
      Container PID
      Returns:
      PIDS
    • setPIDS

      public void setPIDS(String PIDS)
    • pod

      public PodStatsReport pod(String pod)
    • getPod

      @Nullable public String getPod()
      Pod ID
      Returns:
      pod
    • setPod

      public void setPod(String pod)
    • 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
    • toJson

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