Class HealthCheckResults
java.lang.Object
io.github.alersrt.pod4j.openapi.model.HealthCheckResults
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class HealthCheckResults
extends Object
implements Serializable
HealthCheckResults describes the results/logs from a healthcheck
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLogItem(HealthCheckLog logItem) booleanfailingStreak(Long failingStreak) static HealthCheckResultsCreate an instance of HealthCheckResults given an JSON stringFailingStreak is the number of consecutive failed healthchecks@Valid List<HealthCheckLog>getLog()Log describes healthcheck attempts and resultsStatus starting, healthy or unhealthyinthashCode()log(List<HealthCheckLog> log) voidsetFailingStreak(Long failingStreak) voidsetLog(List<HealthCheckLog> log) voidtoJson()Convert an instance of HealthCheckResults 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_FAILING_STREAK
- See Also:
-
SERIALIZED_NAME_LOG
- See Also:
-
SERIALIZED_NAME_STATUS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
HealthCheckResults
public HealthCheckResults()
-
-
Method Details
-
failingStreak
-
getFailingStreak
FailingStreak is the number of consecutive failed healthchecks- Returns:
- failingStreak
-
setFailingStreak
-
log
-
addLogItem
-
getLog
Log describes healthcheck attempts and results- Returns:
- log
-
setLog
-
status
-
getStatus
Status starting, healthy or unhealthy- Returns:
- status
-
setStatus
-
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 HealthCheckResults
-
fromJson
Create an instance of HealthCheckResults given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of HealthCheckResults
- Throws:
IOException- if the JSON string is invalid with respect to HealthCheckResults
-
toJson
Convert an instance of HealthCheckResults to an JSON string- Returns:
- JSON string
-