@Generated(value="OracleSDKGenerator", comments="API Version: 20170115") public final class BackendSetHealth extends com.oracle.bmc.http.client.internal.ExplicitlySetBmcModel
The health status details for a backend set.
This object does not explicitly enumerate backend servers with a status of OK
.
However, they are included in the totalBackendCount
sum.
Note: Objects should always be created or deserialized using the BackendSetHealth.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 BackendSetHealth.Builder
, which maintain a
set of all explicitly set fields called BackendSetHealth.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 |
BackendSetHealth.Builder |
static class |
BackendSetHealth.Status
Overall health status of the backend set.
|
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
BackendSetHealth(BackendSetHealth.Status status,
List<String> warningStateBackendNames,
List<String> criticalStateBackendNames,
List<String> unknownStateBackendNames,
Integer totalBackendCount)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static BackendSetHealth.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
List<String> |
getCriticalStateBackendNames()
A list of backend servers that are currently in the
CRITICAL health state. |
BackendSetHealth.Status |
getStatus()
Overall health status of the backend set.
|
Integer |
getTotalBackendCount()
The total number of backend servers in this backend set.
|
List<String> |
getUnknownStateBackendNames()
A list of backend servers that are currently in the
UNKNOWN health state. |
List<String> |
getWarningStateBackendNames()
A list of backend servers that are currently in the
WARNING health state. |
int |
hashCode() |
BackendSetHealth.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated @ConstructorProperties(value={"status","warningStateBackendNames","criticalStateBackendNames","unknownStateBackendNames","totalBackendCount"}) public BackendSetHealth(BackendSetHealth.Status status, List<String> warningStateBackendNames, List<String> criticalStateBackendNames, List<String> unknownStateBackendNames, Integer totalBackendCount)
public static BackendSetHealth.Builder builder()
Create a new builder.
public BackendSetHealth.Builder toBuilder()
public BackendSetHealth.Status getStatus()
Overall health status of the backend set.
**OK:** All backend servers in the backend set return a status of OK
.
**WARNING:** Half or more of the backend set's backend servers return a status of OK
and at least one backend server returns a status of WARNING
, CRITICAL
, or
UNKNOWN
.
**CRITICAL:** Fewer than half of the backend set's backend servers return a status of
OK
.
**UNKNOWN:** More than half of the backend set's backend servers return a status of UNKNOWN
, the system was unable to retrieve metrics, or the backend set does not have a
listener attached.
public List<String> getWarningStateBackendNames()
A list of backend servers that are currently in the WARNING
health state. The list
identifies each backend server by IP address and port.
Example: 10.0.0.3:8080
public List<String> getCriticalStateBackendNames()
A list of backend servers that are currently in the CRITICAL
health state. The list
identifies each backend server by IP address and port.
Example: 10.0.0.4:8080
public List<String> getUnknownStateBackendNames()
A list of backend servers that are currently in the UNKNOWN
health state. The list
identifies each backend server by IP address and port.
Example: 10.0.0.5:8080
public Integer getTotalBackendCount()
The total number of backend servers in this backend set.
Example: 7
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.