Class ContainerHealthCheck
- java.lang.Object
- 
- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
- 
- com.oracle.bmc.containerinstances.model.ContainerHealthCheck
 
 
- 
- Direct Known Subclasses:
- ContainerHttpHealthCheck,- ContainerTcpHealthCheck
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public class ContainerHealthCheck extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModelType of container health check which could be either HTTP, TCP, or Command.
 Note: Objects should always be created or deserialized using theBuilder. This model distinguishes fields that are null because they are unset from fields that are explicitly set to null. This is done in the setter methods of theBuilder, which maintain a set of all explicitly set fields calledBuilder#__explicitlySet__. ThehashCode()andequals(Object)methods are implemented to take the explicitly set fields into account. The constructor, on the other hand, does not take the explicitly set fields into account (since the constructor cannot distinguish explicit null from unset null).
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classContainerHealthCheck.StatusStatus of container
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedContainerHealthCheck(String name, Integer initialDelayInSeconds, Integer intervalInSeconds, Integer failureThreshold, Integer successThreshold, Integer timeoutInSeconds, ContainerHealthCheck.Status status, String statusDetails, ContainerHealthCheckFailureAction failureAction)Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ContainerHealthCheckFailureActiongetFailureAction()The action will be triggered when the container health check fails.IntegergetFailureThreshold()Number of consecutive failures at which we consider the check failed.IntegergetInitialDelayInSeconds()The initial delay in seconds before start checking container health status.IntegergetIntervalInSeconds()Number of seconds between two consecutive runs for checking container health.StringgetName()Health check name.ContainerHealthCheck.StatusgetStatus()Status of containerStringgetStatusDetails()A message describing the current status in more details.IntegergetSuccessThreshold()Number of consecutive successes at which we consider the check succeeded again after it was in failure state.IntegergetTimeoutInSeconds()Length of waiting time in seconds before marking health check failed.inthashCode()StringtoString()StringtoString(boolean includeByteArrayContents)Return a string representation of the object.
 
- 
- 
- 
Constructor Detail- 
ContainerHealthCheck@Deprecated @ConstructorProperties({"name","initialDelayInSeconds","intervalInSeconds","failureThreshold","successThreshold","timeoutInSeconds","status","statusDetails","failureAction"}) protected ContainerHealthCheck(String name, Integer initialDelayInSeconds, Integer intervalInSeconds, Integer failureThreshold, Integer successThreshold, Integer timeoutInSeconds, ContainerHealthCheck.Status status, String statusDetails, ContainerHealthCheckFailureAction failureAction) Deprecated.
 
- 
 - 
Method Detail- 
getNamepublic String getName() Health check name.- Returns:
- the value
 
 - 
getInitialDelayInSecondspublic Integer getInitialDelayInSeconds() The initial delay in seconds before start checking container health status.- Returns:
- the value
 
 - 
getIntervalInSecondspublic Integer getIntervalInSeconds() Number of seconds between two consecutive runs for checking container health.- Returns:
- the value
 
 - 
getFailureThresholdpublic Integer getFailureThreshold() Number of consecutive failures at which we consider the check failed.- Returns:
- the value
 
 - 
getSuccessThresholdpublic Integer getSuccessThreshold() Number of consecutive successes at which we consider the check succeeded again after it was in failure state.- Returns:
- the value
 
 - 
getTimeoutInSecondspublic Integer getTimeoutInSeconds() Length of waiting time in seconds before marking health check failed.- Returns:
- the value
 
 - 
getStatuspublic ContainerHealthCheck.Status getStatus() Status of container- Returns:
- the value
 
 - 
getStatusDetailspublic String getStatusDetails() A message describing the current status in more details.- Returns:
- the value
 
 - 
getFailureActionpublic ContainerHealthCheckFailureAction getFailureAction() The action will be triggered when the container health check fails.There are two types of action: KILL or NONE. The default action is KILL. If failure action is KILL, the container will be subject to the container restart policy. - Returns:
- the value
 
 - 
toStringpublic String toString() - Overrides:
- toStringin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
toStringpublic String toString(boolean includeByteArrayContents) Return a string representation of the object.- Parameters:
- includeByteArrayContents- true to include the full contents of byte arrays
- Returns:
- string representation
 
 - 
equalspublic boolean equals(Object o) - Overrides:
- equalsin class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
 
 
- 
 
-