Package io.envoyproxy.envoy.admin.v3
Class HostStatus
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessageV3
io.envoyproxy.envoy.admin.v3.HostStatus
- All Implemented Interfaces:
com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,HostStatusOrBuilder,Serializable
public final class HostStatus
extends com.google.protobuf.GeneratedMessageV3
implements HostStatusOrBuilder
Current state of a particular host. [#next-free-field: 10]Protobuf type
envoy.admin.v3.HostStatus- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCurrent state of a particular host.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessageV3
alwaysUseFieldBuilders, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanAddress of this host.Address of this host.static HostStatusstatic final com.google.protobuf.Descriptors.DescriptorThe host's current health status.The host's current health status.The hostname of the host, if applicable.com.google.protobuf.ByteStringThe hostname of the host, if applicable.locality of the host.locality of the host.The success rate for this host during the last interval, considering only locally generated errors.The success rate for this host during the last interval, considering only locally generated errors.com.google.protobuf.Parser<HostStatus>intThe host's priority.intgetStats(int index) List of stats specific to this host.intList of stats specific to this host.List of stats specific to this host.getStatsOrBuilder(int index) List of stats specific to this host.List<? extends SimpleMetricOrBuilder>List of stats specific to this host.The success rate for this host during the last measurement intervalThe success rate for this host during the last measurement intervalintThe host's weight.booleanAddress of this host.inthashCode()booleanThe host's current health status.booleanlocality of the host.booleanThe success rate for this host during the last interval, considering only locally generated errors.booleanThe success rate for this host during the last measurement intervalprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanstatic HostStatus.Builderstatic HostStatus.BuildernewBuilder(HostStatus prototype) protected HostStatus.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) static HostStatusparseDelimitedFrom(InputStream input) static HostStatusparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HostStatusparseFrom(byte[] data) static HostStatusparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HostStatusparseFrom(com.google.protobuf.ByteString data) static HostStatusparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HostStatusparseFrom(com.google.protobuf.CodedInputStream input) static HostStatusparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HostStatusparseFrom(InputStream input) static HostStatusparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static HostStatusparseFrom(ByteBuffer data) static HostStatusparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<HostStatus>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
ADDRESS_FIELD_NUMBER
public static final int ADDRESS_FIELD_NUMBER- See Also:
-
STATS_FIELD_NUMBER
public static final int STATS_FIELD_NUMBER- See Also:
-
HEALTH_STATUS_FIELD_NUMBER
public static final int HEALTH_STATUS_FIELD_NUMBER- See Also:
-
SUCCESS_RATE_FIELD_NUMBER
public static final int SUCCESS_RATE_FIELD_NUMBER- See Also:
-
WEIGHT_FIELD_NUMBER
public static final int WEIGHT_FIELD_NUMBER- See Also:
-
HOSTNAME_FIELD_NUMBER
public static final int HOSTNAME_FIELD_NUMBER- See Also:
-
PRIORITY_FIELD_NUMBER
public static final int PRIORITY_FIELD_NUMBER- See Also:
-
LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER
public static final int LOCAL_ORIGIN_SUCCESS_RATE_FIELD_NUMBER- See Also:
-
LOCALITY_FIELD_NUMBER
public static final int LOCALITY_FIELD_NUMBER- See Also:
-
-
Method Details
-
newInstance
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
hasAddress
public boolean hasAddress()Address of this host.
.envoy.config.core.v3.Address address = 1;- Specified by:
hasAddressin interfaceHostStatusOrBuilder- Returns:
- Whether the address field is set.
-
getAddress
Address of this host.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressin interfaceHostStatusOrBuilder- Returns:
- The address.
-
getAddressOrBuilder
Address of this host.
.envoy.config.core.v3.Address address = 1;- Specified by:
getAddressOrBuilderin interfaceHostStatusOrBuilder
-
getStatsList
List of stats specific to this host.
repeated .envoy.admin.v3.SimpleMetric stats = 2;- Specified by:
getStatsListin interfaceHostStatusOrBuilder
-
getStatsOrBuilderList
List of stats specific to this host.
repeated .envoy.admin.v3.SimpleMetric stats = 2;- Specified by:
getStatsOrBuilderListin interfaceHostStatusOrBuilder
-
getStatsCount
public int getStatsCount()List of stats specific to this host.
repeated .envoy.admin.v3.SimpleMetric stats = 2;- Specified by:
getStatsCountin interfaceHostStatusOrBuilder
-
getStats
List of stats specific to this host.
repeated .envoy.admin.v3.SimpleMetric stats = 2;- Specified by:
getStatsin interfaceHostStatusOrBuilder
-
getStatsOrBuilder
List of stats specific to this host.
repeated .envoy.admin.v3.SimpleMetric stats = 2;- Specified by:
getStatsOrBuilderin interfaceHostStatusOrBuilder
-
hasHealthStatus
public boolean hasHealthStatus()The host's current health status.
.envoy.admin.v3.HostHealthStatus health_status = 3;- Specified by:
hasHealthStatusin interfaceHostStatusOrBuilder- Returns:
- Whether the healthStatus field is set.
-
getHealthStatus
The host's current health status.
.envoy.admin.v3.HostHealthStatus health_status = 3;- Specified by:
getHealthStatusin interfaceHostStatusOrBuilder- Returns:
- The healthStatus.
-
getHealthStatusOrBuilder
The host's current health status.
.envoy.admin.v3.HostHealthStatus health_status = 3;- Specified by:
getHealthStatusOrBuilderin interfaceHostStatusOrBuilder
-
hasSuccessRate
public boolean hasSuccessRate()The success rate for this host during the last measurement interval. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``false``, all errors: externally and locally generated were used in success rate calculation. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``true``, only externally generated errors were used in success rate calculation. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to calculate a reliable success rate, or if the cluster had too few hosts to apply outlier ejection based on success rate.
.envoy.type.v3.Percent success_rate = 4;- Specified by:
hasSuccessRatein interfaceHostStatusOrBuilder- Returns:
- Whether the successRate field is set.
-
getSuccessRate
The success rate for this host during the last measurement interval. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``false``, all errors: externally and locally generated were used in success rate calculation. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``true``, only externally generated errors were used in success rate calculation. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to calculate a reliable success rate, or if the cluster had too few hosts to apply outlier ejection based on success rate.
.envoy.type.v3.Percent success_rate = 4;- Specified by:
getSuccessRatein interfaceHostStatusOrBuilder- Returns:
- The successRate.
-
getSuccessRateOrBuilder
The success rate for this host during the last measurement interval. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``false``, all errors: externally and locally generated were used in success rate calculation. * If :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is ``true``, only externally generated errors were used in success rate calculation. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to calculate a reliable success rate, or if the cluster had too few hosts to apply outlier ejection based on success rate.
.envoy.type.v3.Percent success_rate = 4;- Specified by:
getSuccessRateOrBuilderin interfaceHostStatusOrBuilder
-
getWeight
public int getWeight()The host's weight. If not configured, the value defaults to 1.
uint32 weight = 5;- Specified by:
getWeightin interfaceHostStatusOrBuilder- Returns:
- The weight.
-
getHostname
The hostname of the host, if applicable.
string hostname = 6;- Specified by:
getHostnamein interfaceHostStatusOrBuilder- Returns:
- The hostname.
-
getHostnameBytes
public com.google.protobuf.ByteString getHostnameBytes()The hostname of the host, if applicable.
string hostname = 6;- Specified by:
getHostnameBytesin interfaceHostStatusOrBuilder- Returns:
- The bytes for hostname.
-
getPriority
public int getPriority()The host's priority. If not configured, the value defaults to 0 (highest priority).
uint32 priority = 7;- Specified by:
getPriorityin interfaceHostStatusOrBuilder- Returns:
- The priority.
-
hasLocalOriginSuccessRate
public boolean hasLocalOriginSuccessRate()The success rate for this host during the last interval, considering only locally generated errors. Externally generated errors are treated as successes. This field is only relevant when :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is set to ``true``. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to compute a success rate, or if the cluster didn't have enough hosts to perform outlier ejection based on success rate.
.envoy.type.v3.Percent local_origin_success_rate = 8;- Specified by:
hasLocalOriginSuccessRatein interfaceHostStatusOrBuilder- Returns:
- Whether the localOriginSuccessRate field is set.
-
getLocalOriginSuccessRate
The success rate for this host during the last interval, considering only locally generated errors. Externally generated errors are treated as successes. This field is only relevant when :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is set to ``true``. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to compute a success rate, or if the cluster didn't have enough hosts to perform outlier ejection based on success rate.
.envoy.type.v3.Percent local_origin_success_rate = 8;- Specified by:
getLocalOriginSuccessRatein interfaceHostStatusOrBuilder- Returns:
- The localOriginSuccessRate.
-
getLocalOriginSuccessRateOrBuilder
The success rate for this host during the last interval, considering only locally generated errors. Externally generated errors are treated as successes. This field is only relevant when :ref:`outlier_detection.split_external_local_origin_errors<envoy_v3_api_field_config.cluster.v3.OutlierDetection.split_external_local_origin_errors>` is set to ``true``. For more information, see the :ref:`Cluster outlier detection <arch_overview_outlier_detection>` documentation. .. note:: The message will be missing if the host didn't receive enough traffic to compute a success rate, or if the cluster didn't have enough hosts to perform outlier ejection based on success rate.
.envoy.type.v3.Percent local_origin_success_rate = 8;- Specified by:
getLocalOriginSuccessRateOrBuilderin interfaceHostStatusOrBuilder
-
hasLocality
public boolean hasLocality()locality of the host.
.envoy.config.core.v3.Locality locality = 9;- Specified by:
hasLocalityin interfaceHostStatusOrBuilder- Returns:
- Whether the locality field is set.
-
getLocality
locality of the host.
.envoy.config.core.v3.Locality locality = 9;- Specified by:
getLocalityin interfaceHostStatusOrBuilder- Returns:
- The locality.
-
getLocalityOrBuilder
locality of the host.
.envoy.config.core.v3.Locality locality = 9;- Specified by:
getLocalityOrBuilderin interfaceHostStatusOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HostStatus parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HostStatus parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HostStatus parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static HostStatus parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static HostStatus parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HostStatus.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) - Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-