Class StartupHealthCheck
java.lang.Object
io.github.alersrt.pod4j.openapi.model.StartupHealthCheck
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class StartupHealthCheck
extends Object
implements Serializable
StartupHealthCheck
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTestItem(String testItem) booleanstatic StartupHealthCheckCreate an instance of StartupHealthCheck 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.Successes are the number of successes required to mark the startup HC as passed.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) voidsetSuccesses(Long successes) voidvoidsetTimeout(Long timeout) startInterval(Long startInterval) startPeriod(Long startPeriod) toJson()Convert an instance of StartupHealthCheck 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_INTERVAL
- See Also:
-
SERIALIZED_NAME_RETRIES
- See Also:
-
SERIALIZED_NAME_START_INTERVAL
- See Also:
-
SERIALIZED_NAME_START_PERIOD
- See Also:
-
SERIALIZED_NAME_SUCCESSES
- See Also:
-
SERIALIZED_NAME_TEST
- See Also:
-
SERIALIZED_NAME_TIMEOUT
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
StartupHealthCheck
public StartupHealthCheck()
-
-
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
-
successes
-
getSuccesses
Successes are the number of successes required to mark the startup HC as passed. If set to 0, a single success will mark the HC as passed.- Returns:
- successes
-
setSuccesses
-
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
-
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 StartupHealthCheck
-
fromJson
Create an instance of StartupHealthCheck given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of StartupHealthCheck
- Throws:
IOException- if the JSON string is invalid with respect to StartupHealthCheck
-
toJson
Convert an instance of StartupHealthCheck to an JSON string- Returns:
- JSON string
-