Class ContainerHealthCheckConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerHealthCheckConfig
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class ContainerHealthCheckConfig
extends Object
implements Serializable
ContainerHealthCheckConfig describes a container healthcheck with attributes like command, retries, interval, start period, and timeout.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ContainerHealthCheckConfigCreate an instance of ContainerHealthCheckConfig given an JSON stringHealthCheckOnFailureAction defines how Podman reacts when a container's health status turns unhealthy.@Valid Schema2HealthConfigGet healthconfigHealthLogDestination defines the destination where the log is storedHealthMaxLogCount is maximum number of attempts in the HealthCheck log file.HealthMaxLogSize is the maximum length in characters of stored HealthCheck log (\"0\" value means an infinite log length)@Valid StartupHealthCheckGet startupHealthConfiginthashCode()healthCheckOnFailureAction(Long healthCheckOnFailureAction) healthconfig(Schema2HealthConfig healthconfig) healthLogDestination(String healthLogDestination) healthMaxLogCount(Integer healthMaxLogCount) healthMaxLogSize(Integer healthMaxLogSize) voidsetHealthCheckOnFailureAction(Long healthCheckOnFailureAction) voidsetHealthconfig(Schema2HealthConfig healthconfig) voidsetHealthLogDestination(String healthLogDestination) voidsetHealthMaxLogCount(Integer healthMaxLogCount) voidsetHealthMaxLogSize(Integer healthMaxLogSize) voidsetStartupHealthConfig(StartupHealthCheck startupHealthConfig) startupHealthConfig(StartupHealthCheck startupHealthConfig) toJson()Convert an instance of ContainerHealthCheckConfig 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_HEALTH_CHECK_ON_FAILURE_ACTION
- See Also:
-
SERIALIZED_NAME_HEALTH_LOG_DESTINATION
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_COUNT
- See Also:
-
SERIALIZED_NAME_HEALTH_MAX_LOG_SIZE
- See Also:
-
SERIALIZED_NAME_HEALTHCONFIG
- See Also:
-
SERIALIZED_NAME_STARTUP_HEALTH_CONFIG
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ContainerHealthCheckConfig
public ContainerHealthCheckConfig()
-
-
Method Details
-
healthCheckOnFailureAction
-
getHealthCheckOnFailureAction
HealthCheckOnFailureAction defines how Podman reacts when a container's health status turns unhealthy.- Returns:
- healthCheckOnFailureAction
-
setHealthCheckOnFailureAction
-
healthLogDestination
-
getHealthLogDestination
HealthLogDestination defines the destination where the log is stored- Returns:
- healthLogDestination
-
setHealthLogDestination
-
healthMaxLogCount
-
getHealthMaxLogCount
HealthMaxLogCount is maximum number of attempts in the HealthCheck log file. ('0' value means an infinite number of attempts in the log file)- Returns:
- healthMaxLogCount
-
setHealthMaxLogCount
-
healthMaxLogSize
-
getHealthMaxLogSize
HealthMaxLogSize is the maximum length in characters of stored HealthCheck log (\"0\" value means an infinite log length)- Returns:
- healthMaxLogSize
-
setHealthMaxLogSize
-
healthconfig
-
getHealthconfig
Get healthconfig- Returns:
- healthconfig
-
setHealthconfig
-
startupHealthConfig
-
getStartupHealthConfig
Get startupHealthConfig- Returns:
- startupHealthConfig
-
setStartupHealthConfig
-
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 ContainerHealthCheckConfig
-
fromJson
Create an instance of ContainerHealthCheckConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ContainerHealthCheckConfig
- Throws:
IOException- if the JSON string is invalid with respect to ContainerHealthCheckConfig
-
toJson
Convert an instance of ContainerHealthCheckConfig to an JSON string- Returns:
- JSON string
-