Class UpdateHealthCheckConfig

java.lang.Object
io.github.alersrt.pod4j.openapi.model.UpdateHealthCheckConfig
All Implemented Interfaces:
Serializable

@Generated("org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateHealthCheckConfig extends Object implements Serializable
UpdateHealthCheckConfig
See Also:
  • Field Details

  • Constructor Details

    • UpdateHealthCheckConfig

      public UpdateHealthCheckConfig()
  • Method Details

    • healthCmd

      public UpdateHealthCheckConfig healthCmd(String healthCmd)
    • getHealthCmd

      @Nullable public String getHealthCmd()
      HealthCmd set a healthcheck command for the container. ('none' disables the existing healthcheck)
      Returns:
      healthCmd
    • setHealthCmd

      public void setHealthCmd(String healthCmd)
    • healthInterval

      public UpdateHealthCheckConfig healthInterval(String healthInterval)
    • getHealthInterval

      @Nullable public String getHealthInterval()
      HealthInterval set an interval for the healthcheck. (a value of disable results in no automatic timer setup) Changing this setting resets timer.
      Returns:
      healthInterval
    • setHealthInterval

      public void setHealthInterval(String healthInterval)
    • healthLogDestination

      public UpdateHealthCheckConfig healthLogDestination(String healthLogDestination)
    • getHealthLogDestination

      @Nullable public String getHealthLogDestination()
      HealthLogDestination set the destination of the HealthCheck log. Directory path, local or events_logger (local use container state file) Warning: Changing this setting may cause the loss of previous logs!
      Returns:
      healthLogDestination
    • setHealthLogDestination

      public void setHealthLogDestination(String healthLogDestination)
    • healthMaxLogCount

      public UpdateHealthCheckConfig healthMaxLogCount(Integer healthMaxLogCount)
    • getHealthMaxLogCount

      @Nullable public Integer getHealthMaxLogCount()
      HealthMaxLogCount set maximum number of attempts in the HealthCheck log file. ('0' value means an infinite number of attempts in the log file)
      Returns:
      healthMaxLogCount
    • setHealthMaxLogCount

      public void setHealthMaxLogCount(Integer healthMaxLogCount)
    • healthMaxLogSize

      public UpdateHealthCheckConfig healthMaxLogSize(Integer healthMaxLogSize)
    • getHealthMaxLogSize

      @Nullable public Integer getHealthMaxLogSize()
      HealthMaxLogSize set maximum length in characters of stored HealthCheck log. ('0' value means an infinite log length)
      Returns:
      healthMaxLogSize
    • setHealthMaxLogSize

      public void setHealthMaxLogSize(Integer healthMaxLogSize)
    • healthOnFailure

      public UpdateHealthCheckConfig healthOnFailure(String healthOnFailure)
    • getHealthOnFailure

      @Nullable public String getHealthOnFailure()
      HealthOnFailure set the action to take once the container turns unhealthy.
      Returns:
      healthOnFailure
    • setHealthOnFailure

      public void setHealthOnFailure(String healthOnFailure)
    • healthRetries

      public UpdateHealthCheckConfig healthRetries(Integer healthRetries)
    • getHealthRetries

      @Nullable public Integer getHealthRetries()
      HealthRetries set the number of retries allowed before a healthcheck is considered to be unhealthy.
      Returns:
      healthRetries
    • setHealthRetries

      public void setHealthRetries(Integer healthRetries)
    • healthStartPeriod

      public UpdateHealthCheckConfig healthStartPeriod(String healthStartPeriod)
    • getHealthStartPeriod

      @Nullable public String getHealthStartPeriod()
      HealthStartPeriod set the initialization time needed for a container to bootstrap.
      Returns:
      healthStartPeriod
    • setHealthStartPeriod

      public void setHealthStartPeriod(String healthStartPeriod)
    • healthStartupCmd

      public UpdateHealthCheckConfig healthStartupCmd(String healthStartupCmd)
    • getHealthStartupCmd

      @Nullable public String getHealthStartupCmd()
      HealthStartupCmd set a startup healthcheck command for the container.
      Returns:
      healthStartupCmd
    • setHealthStartupCmd

      public void setHealthStartupCmd(String healthStartupCmd)
    • healthStartupInterval

      public UpdateHealthCheckConfig healthStartupInterval(String healthStartupInterval)
    • getHealthStartupInterval

      @Nullable public String getHealthStartupInterval()
      HealthStartupInterval set an interval for the startup healthcheck. Changing this setting resets the timer, depending on the state of the container.
      Returns:
      healthStartupInterval
    • setHealthStartupInterval

      public void setHealthStartupInterval(String healthStartupInterval)
    • healthStartupRetries

      public UpdateHealthCheckConfig healthStartupRetries(Integer healthStartupRetries)
    • getHealthStartupRetries

      @Nullable public Integer getHealthStartupRetries()
      HealthStartupRetries set the maximum number of retries before the startup healthcheck will restart the container.
      Returns:
      healthStartupRetries
    • setHealthStartupRetries

      public void setHealthStartupRetries(Integer healthStartupRetries)
    • healthStartupSuccess

      public UpdateHealthCheckConfig healthStartupSuccess(Integer healthStartupSuccess)
    • getHealthStartupSuccess

      @Nullable public Integer getHealthStartupSuccess()
      HealthStartupSuccess set the number of consecutive successes before the startup healthcheck is marked as successful and the normal healthcheck begins (0 indicates any success will start the regular healthcheck)
      Returns:
      healthStartupSuccess
    • setHealthStartupSuccess

      public void setHealthStartupSuccess(Integer healthStartupSuccess)
    • healthStartupTimeout

      public UpdateHealthCheckConfig healthStartupTimeout(String healthStartupTimeout)
    • getHealthStartupTimeout

      @Nullable public String getHealthStartupTimeout()
      HealthStartupTimeout set the maximum amount of time that the startup healthcheck may take before it is considered failed.
      Returns:
      healthStartupTimeout
    • setHealthStartupTimeout

      public void setHealthStartupTimeout(String healthStartupTimeout)
    • healthTimeout

      public UpdateHealthCheckConfig healthTimeout(String healthTimeout)
    • getHealthTimeout

      @Nullable public String getHealthTimeout()
      HealthTimeout set the maximum time allowed to complete the healthcheck before an interval is considered failed.
      Returns:
      healthTimeout
    • setHealthTimeout

      public void setHealthTimeout(String healthTimeout)
    • noHealthcheck

      public UpdateHealthCheckConfig noHealthcheck(Boolean noHealthcheck)
    • getNoHealthcheck

      @Nullable public Boolean getNoHealthcheck()
      Disable healthchecks on container.
      Returns:
      noHealthcheck
    • setNoHealthcheck

      public void setNoHealthcheck(Boolean noHealthcheck)
    • 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 UpdateHealthCheckConfig
    • fromJson

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

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