Class HealthCheckResults
java.lang.Object
io.github.alersrt.pod4j.openapi.model.HealthCheckResults
@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 HealthCheckResults
extends Object
HealthCheckResults describes the results/logs from a healthcheck
-
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 healthchecksgetLog()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 voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element 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
-
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 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
-