@Generated(value="OracleSDKGenerator", comments="API Version: 20200501") public final class BackendSetHealth extends Object
The health status details for a backend set.
This object does not explicitly enumerate backend servers with a status of OK
. However, the backend sets 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
__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take
__explicitlySet__
into account. The constructor, on the other hand, does not set __explicitlySet__
(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.
|
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) |
Set<String> |
get__explicitlySet__() |
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() |
@ConstructorProperties(value={"status","warningStateBackendNames","criticalStateBackendNames","unknownStateBackendNames","totalBackendCount"}) @Deprecated 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 servers in a backend set 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 servers in a backend set return a status of OK
.
**UNKNOWN:** If no probes have yet been sent to the backends, or the system is unable to retrieve metrics from the backends.
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 or OCID and port.
Example: 10.0.0.3:8080
or ocid1.privateip..oc1.<var><unique_ID></var>: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
Copyright © 2016–2022. All rights reserved.