Class Health
java.lang.Object
io.github.alersrt.pod4j.openapi.model.Health
- All Implemented Interfaces:
Serializable
@Generated("org.openapitools.codegen.languages.JavaClientCodegen")
public class Health
extends Object
implements Serializable
Health stores information about the container's healthcheck results
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLogItem(HealthcheckResult logItem) booleanfailingStreak(Long failingStreak) static HealthCreate an instance of Health given an JSON stringGet failingStreak@Valid List<HealthcheckResult>getLog()Get logGet statusinthashCode()log(List<HealthcheckResult> log) voidsetFailingStreak(Long failingStreak) voidsetLog(List<HealthcheckResult> log) voidtoJson()Convert an instance of Health 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
-
Health
public Health()
-
-
Method Details
-
failingStreak
-
getFailingStreak
Get failingStreak- Returns:
- failingStreak
-
setFailingStreak
-
log
-
addLogItem
-
getLog
Get log- Returns:
- log
-
setLog
-
status
-
getStatus
Get status- 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 Health
-
fromJson
Create an instance of Health given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Health
- Throws:
IOException- if the JSON string is invalid with respect to Health
-
toJson
Convert an instance of Health to an JSON string- Returns:
- JSON string
-