@Generated(value="OracleSDKGenerator", comments="API Version: 20210415") public class ContainerHealthCheck extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Type of container health check which could be either HTTP, TCP, or Command.
Note: Objects should always be created or deserialized using the Builder
. 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 the Builder
, which maintain a
set of all explicitly set fields called Builder#__explicitlySet__
. The hashCode()
and equals(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
).
Modifier and Type | Class and Description |
---|---|
static class |
ContainerHealthCheck.Status
Status of container
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Modifier | Constructor and Description |
---|---|
protected |
ContainerHealthCheck(String name,
Integer initialDelayInSeconds,
Integer intervalInSeconds,
Integer failureThreshold,
Integer successThreshold,
Integer timeoutInSeconds,
ContainerHealthCheck.Status status,
String statusDetails,
ContainerHealthCheckFailureAction failureAction)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
ContainerHealthCheckFailureAction |
getFailureAction()
The action will be triggered when the container health check fails.
|
Integer |
getFailureThreshold()
Number of consecutive failures at which we consider the check failed.
|
Integer |
getInitialDelayInSeconds()
The initial delay in seconds before start checking container health status.
|
Integer |
getIntervalInSeconds()
Number of seconds between two consecutive runs for checking container health.
|
String |
getName()
Health check name.
|
ContainerHealthCheck.Status |
getStatus()
Status of container
|
String |
getStatusDetails()
A message describing the current status in more details.
|
Integer |
getSuccessThreshold()
Number of consecutive successes at which we consider the check succeeded again after it was
in failure state.
|
Integer |
getTimeoutInSeconds()
Length of waiting time in seconds before marking health check failed.
|
int |
hashCode() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"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)
public String getName()
Health check name.
public Integer getInitialDelayInSeconds()
The initial delay in seconds before start checking container health status.
public Integer getIntervalInSeconds()
Number of seconds between two consecutive runs for checking container health.
public Integer getFailureThreshold()
Number of consecutive failures at which we consider the check failed.
public Integer getSuccessThreshold()
Number of consecutive successes at which we consider the check succeeded again after it was in failure state.
public Integer getTimeoutInSeconds()
Length of waiting time in seconds before marking health check failed.
public ContainerHealthCheck.Status getStatus()
Status of container
public String getStatusDetails()
A message describing the current status in more details.
public 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.
public String toString()
toString
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
public int hashCode()
hashCode
in class com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
Copyright © 2016–2024. All rights reserved.