public enum HealthStatus extends Enum<HealthStatus> implements com.google.protobuf.ProtocolMessageEnum
Endpoint health status.Protobuf enum
envoy.api.v2.core.HealthStatus
Enum Constant and Description |
---|
DEGRADED
Degraded.
|
DRAINING
Connection draining in progress.
|
HEALTHY
Healthy.
|
TIMEOUT
Health check timed out.
|
UNHEALTHY
Unhealthy.
|
UNKNOWN
The health status is not known.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DEGRADED_VALUE
Degraded.
|
static int |
DRAINING_VALUE
Connection draining in progress.
|
static int |
HEALTHY_VALUE
Healthy.
|
static int |
TIMEOUT_VALUE
Health check timed out.
|
static int |
UNHEALTHY_VALUE
Unhealthy.
|
static int |
UNKNOWN_VALUE
The health status is not known.
|
Modifier and Type | Method and Description |
---|---|
static HealthStatus |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<HealthStatus> |
internalGetValueMap() |
static HealthStatus |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HealthStatus |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HealthStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HealthStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HealthStatus UNKNOWN
The health status is not known. This is interpreted by Envoy as *HEALTHY*.
UNKNOWN = 0;
public static final HealthStatus HEALTHY
Healthy.
HEALTHY = 1;
public static final HealthStatus UNHEALTHY
Unhealthy.
UNHEALTHY = 2;
public static final HealthStatus DRAINING
Connection draining in progress. E.g., `<https://aws.amazon.com/blogs/aws/elb-connection-draining-remove-instances-from-service-with-care/>`_ or `<https://cloud.google.com/compute/docs/load-balancing/enabling-connection-draining>`_. This is interpreted by Envoy as *UNHEALTHY*.
DRAINING = 3;
public static final HealthStatus TIMEOUT
Health check timed out. This is part of HDS and is interpreted by Envoy as *UNHEALTHY*.
TIMEOUT = 4;
public static final HealthStatus DEGRADED
Degraded.
DEGRADED = 5;
public static final HealthStatus UNRECOGNIZED
public static final int UNKNOWN_VALUE
The health status is not known. This is interpreted by Envoy as *HEALTHY*.
UNKNOWN = 0;
public static final int HEALTHY_VALUE
Healthy.
HEALTHY = 1;
public static final int UNHEALTHY_VALUE
Unhealthy.
UNHEALTHY = 2;
public static final int DRAINING_VALUE
Connection draining in progress. E.g., `<https://aws.amazon.com/blogs/aws/elb-connection-draining-remove-instances-from-service-with-care/>`_ or `<https://cloud.google.com/compute/docs/load-balancing/enabling-connection-draining>`_. This is interpreted by Envoy as *UNHEALTHY*.
DRAINING = 3;
public static final int TIMEOUT_VALUE
Health check timed out. This is part of HDS and is interpreted by Envoy as *UNHEALTHY*.
TIMEOUT = 4;
public static final int DEGRADED_VALUE
Degraded.
DEGRADED = 5;
public static HealthStatus[] values()
for (HealthStatus c : HealthStatus.values()) System.out.println(c);
public static HealthStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static HealthStatus valueOf(int value)
forNumber(int)
instead.public static HealthStatus forNumber(int value)
public static com.google.protobuf.Internal.EnumLiteMap<HealthStatus> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static HealthStatus valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2018–2021 The Envoy Project. All rights reserved.