Class HealthcheckConfig
java.lang.Object
io.github.alersrt.pod4j.openapi.model.HealthcheckConfig
@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 HealthcheckConfig
extends Object
HealthcheckConfig
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTestItem(String testItem) booleanstatic HealthcheckConfigCreate an instance of HealthcheckConfig given an JSON stringA Duration represents the elapsed time between two instants as an int64 nanosecond count.Retries is the number of consecutive failures needed to consider a container as unhealthy.A Duration represents the elapsed time between two instants as an int64 nanosecond count.A Duration represents the elapsed time between two instants as an int64 nanosecond count.getTest()Test is the test to perform to check that the container is healthy.A Duration represents the elapsed time between two instants as an int64 nanosecond count.inthashCode()voidsetInterval(Long interval) voidsetRetries(Long retries) voidsetStartInterval(Long startInterval) voidsetStartPeriod(Long startPeriod) voidvoidsetTimeout(Long timeout) startInterval(Long startInterval) startPeriod(Long startPeriod) toJson()Convert an instance of HealthcheckConfig 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_INTERVAL
- See Also:
-
SERIALIZED_NAME_RETRIES
- See Also:
-
SERIALIZED_NAME_START_INTERVAL
- See Also:
-
SERIALIZED_NAME_START_PERIOD
- See Also:
-
SERIALIZED_NAME_TEST
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
HealthcheckConfig
public HealthcheckConfig()
-
-
Method Details
-
interval
-
getInterval
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:
- interval
-
setInterval
-
retries
-
getRetries
Retries is the number of consecutive failures needed to consider a container as unhealthy. Zero means inherit.- Returns:
- retries
-
setRetries
-
startInterval
-
getStartInterval
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:
- startInterval
-
setStartInterval
-
startPeriod
-
getStartPeriod
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:
- startPeriod
-
setStartPeriod
-
test
-
addTestItem
-
getTest
Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck {\"NONE\"} : disable healthcheck {\"CMD\", args...} : exec arguments directly {\"CMD-SHELL\", command} : run command with system's default shell- Returns:
- test
-
setTest
-
timeout
-
getTimeout
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:
- timeout
-
setTimeout
-
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 HealthcheckConfig
-
fromJson
Create an instance of HealthcheckConfig given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HealthcheckConfig
- Throws:
IOException- if the JSON string is invalid with respect to HealthcheckConfig
-
toJson
Convert an instance of HealthcheckConfig to an JSON string- Returns:
- JSON string
-