Class ContainerHealthCheckConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.ContainerHealthCheckConfig
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]",
comments="Generator version: 7.7.0")
public class ContainerHealthCheckConfig
extends Object
ContainerHealthCheckConfig describes a container healthcheck with attributes like command,
retries, interval, start period, and timeout.
-
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.Get 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)Get 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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
validateJsonElement
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 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
-