public static class LoadBalancerHealth.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
LoadBalancerHealth |
build() |
LoadBalancerHealth.Builder |
copy(LoadBalancerHealth model) |
LoadBalancerHealth.Builder |
criticalStateBackendSetNames(List<String> criticalStateBackendSetNames)
A list of backend sets that are currently in the
CRITICAL health state. |
LoadBalancerHealth.Builder |
status(LoadBalancerHealth.Status status)
The overall health status of the load balancer.
|
LoadBalancerHealth.Builder |
totalBackendSetCount(Integer totalBackendSetCount)
The total number of backend sets associated with this load balancer.
|
LoadBalancerHealth.Builder |
unknownStateBackendSetNames(List<String> unknownStateBackendSetNames)
A list of backend sets that are currently in the
UNKNOWN health state. |
LoadBalancerHealth.Builder |
warningStateBackendSetNames(List<String> warningStateBackendSetNames)
A list of backend sets that are currently in the
WARNING health state. |
public LoadBalancerHealth.Builder status(LoadBalancerHealth.Status status)
The overall health status of the load balancer.
**OK:** All backend sets associated with the load balancer return a status of OK
.
**WARNING:** At least one of the backend sets associated with the load balancer
returns a status of WARNING
, no backend sets return a status of CRITICAL
,
and the load balancer life cycle state is ACTIVE
.
**CRITICAL:** One or more of the backend sets associated with the load balancer return
a status of CRITICAL
.
**UNKNOWN:** If any one of the following conditions is true:
The load balancer life cycle state is not ACTIVE
.
No backend sets are defined for the load balancer.
More than half of the backend sets associated with the load balancer return a status
of UNKNOWN
, none of the backend sets return a status of WARNING
or CRITICAL
, and the load balancer life cycle state is ACTIVE
.
The system could not retrieve metrics for any reason.
status
- the value to setpublic LoadBalancerHealth.Builder warningStateBackendSetNames(List<String> warningStateBackendSetNames)
A list of backend sets that are currently in the WARNING
health state. The list
identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set3
warningStateBackendSetNames
- the value to setpublic LoadBalancerHealth.Builder criticalStateBackendSetNames(List<String> criticalStateBackendSetNames)
A list of backend sets that are currently in the CRITICAL
health state. The list
identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set
criticalStateBackendSetNames
- the value to setpublic LoadBalancerHealth.Builder unknownStateBackendSetNames(List<String> unknownStateBackendSetNames)
A list of backend sets that are currently in the UNKNOWN
health state. The list
identifies each backend set by the friendly name you assigned when you created it.
Example: example_backend_set2
unknownStateBackendSetNames
- the value to setpublic LoadBalancerHealth.Builder totalBackendSetCount(Integer totalBackendSetCount)
The total number of backend sets associated with this load balancer.
Example: 4
totalBackendSetCount
- the value to setpublic LoadBalancerHealth build()
public LoadBalancerHealth.Builder copy(LoadBalancerHealth model)
Copyright © 2016–2024. All rights reserved.