Class ClusterStats
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
io.envoyproxy.envoy.config.endpoint.v3.ClusterStats
- All Implemented Interfaces:
com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, ClusterStatsOrBuilder, Serializable
@Generated
public final class ClusterStats
extends com.google.protobuf.GeneratedMessage
implements ClusterStatsOrBuilder
Per cluster load stats. Envoy reports these stats a management server in a :ref:`LoadStatsRequest<envoy_v3_api_msg_service.load_stats.v3.LoadStatsRequest>` Next ID: 7 [#next-free-field: 7]Protobuf type
envoy.config.endpoint.v3.ClusterStats- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classPer cluster load stats.static final classProtobuf typeenvoy.config.endpoint.v3.ClusterStats.DroppedRequestsstatic interfaceNested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT, T>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intstatic final intstatic final intprivate Objectprivate Objectprivate static final ClusterStatsstatic final intprivate List<ClusterStats.DroppedRequests> static final intprivate com.google.protobuf.Durationprivate byteprivate static final com.google.protobuf.Parser<ClusterStats> private static final longstatic final intprivate longstatic final intprivate List<UpstreamLocalityStats> Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateprivateClusterStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe name of the cluster.com.google.protobuf.ByteStringThe name of the cluster.The eds_cluster_config service_name of the cluster.com.google.protobuf.ByteStringThe eds_cluster_config service_name of the cluster.static ClusterStatsstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetDroppedRequests(int index) Information about deliberately dropped requests for each category specified in the DropOverload policy.intInformation about deliberately dropped requests for each category specified in the DropOverload policy.Information about deliberately dropped requests for each category specified in the DropOverload policy.getDroppedRequestsOrBuilder(int index) Information about deliberately dropped requests for each category specified in the DropOverload policy.List<? extends ClusterStats.DroppedRequestsOrBuilder> Information about deliberately dropped requests for each category specified in the DropOverload policy.com.google.protobuf.DurationPeriod over which the actual load report occurred.com.google.protobuf.DurationOrBuilderPeriod over which the actual load report occurred.com.google.protobuf.Parser<ClusterStats> intlongCluster-level stats such as total_successful_requests may be computed by summing upstream_locality_stats.getUpstreamLocalityStats(int index) Need at least one.intNeed at least one.Need at least one.getUpstreamLocalityStatsOrBuilder(int index) Need at least one.List<? extends UpstreamLocalityStatsOrBuilder> Need at least one.inthashCode()booleanPeriod over which the actual load report occurred.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic ClusterStats.Builderstatic ClusterStats.BuildernewBuilder(ClusterStats prototype) protected ClusterStats.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static ClusterStatsparseDelimitedFrom(InputStream input) static ClusterStatsparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClusterStatsparseFrom(byte[] data) static ClusterStatsparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClusterStatsparseFrom(com.google.protobuf.ByteString data) static ClusterStatsparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClusterStatsparseFrom(com.google.protobuf.CodedInputStream input) static ClusterStatsparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClusterStatsparseFrom(InputStream input) static ClusterStatsparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ClusterStatsparseFrom(ByteBuffer data) static ClusterStatsparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ClusterStats> parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
bitField0_
private int bitField0_ -
CLUSTER_NAME_FIELD_NUMBER
public static final int CLUSTER_NAME_FIELD_NUMBER- See Also:
-
clusterName_
-
CLUSTER_SERVICE_NAME_FIELD_NUMBER
public static final int CLUSTER_SERVICE_NAME_FIELD_NUMBER- See Also:
-
clusterServiceName_
-
UPSTREAM_LOCALITY_STATS_FIELD_NUMBER
public static final int UPSTREAM_LOCALITY_STATS_FIELD_NUMBER- See Also:
-
upstreamLocalityStats_
-
TOTAL_DROPPED_REQUESTS_FIELD_NUMBER
public static final int TOTAL_DROPPED_REQUESTS_FIELD_NUMBER- See Also:
-
totalDroppedRequests_
private long totalDroppedRequests_ -
DROPPED_REQUESTS_FIELD_NUMBER
public static final int DROPPED_REQUESTS_FIELD_NUMBER- See Also:
-
droppedRequests_
-
LOAD_REPORT_INTERVAL_FIELD_NUMBER
public static final int LOAD_REPORT_INTERVAL_FIELD_NUMBER- See Also:
-
loadReportInterval_
private com.google.protobuf.Duration loadReportInterval_ -
memoizedIsInitialized
private byte memoizedIsInitialized -
DEFAULT_INSTANCE
-
PARSER
-
-
Constructor Details
-
ClusterStats
private ClusterStats(com.google.protobuf.GeneratedMessage.Builder<?> builder) -
ClusterStats
private ClusterStats()
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getClusterName
The name of the cluster.
string cluster_name = 1 [(.validate.rules) = { ... }- Specified by:
getClusterNamein interfaceClusterStatsOrBuilder- Returns:
- The clusterName.
-
getClusterNameBytes
public com.google.protobuf.ByteString getClusterNameBytes()The name of the cluster.
string cluster_name = 1 [(.validate.rules) = { ... }- Specified by:
getClusterNameBytesin interfaceClusterStatsOrBuilder- Returns:
- The bytes for clusterName.
-
getClusterServiceName
The eds_cluster_config service_name of the cluster. It's possible that two clusters send the same service_name to EDS, in that case, the management server is supposed to do aggregation on the load reports.
string cluster_service_name = 6;- Specified by:
getClusterServiceNamein interfaceClusterStatsOrBuilder- Returns:
- The clusterServiceName.
-
getClusterServiceNameBytes
public com.google.protobuf.ByteString getClusterServiceNameBytes()The eds_cluster_config service_name of the cluster. It's possible that two clusters send the same service_name to EDS, in that case, the management server is supposed to do aggregation on the load reports.
string cluster_service_name = 6;- Specified by:
getClusterServiceNameBytesin interfaceClusterStatsOrBuilder- Returns:
- The bytes for clusterServiceName.
-
getUpstreamLocalityStatsList
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsListin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStatsOrBuilderList
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsOrBuilderListin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStatsCount
public int getUpstreamLocalityStatsCount()Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsCountin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStats
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStatsOrBuilder
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsOrBuilderin interfaceClusterStatsOrBuilder
-
getTotalDroppedRequests
public long getTotalDroppedRequests()Cluster-level stats such as total_successful_requests may be computed by summing upstream_locality_stats. In addition, below there are additional cluster-wide stats. The total number of dropped requests. This covers requests deliberately dropped by the drop_overload policy and circuit breaking.
uint64 total_dropped_requests = 3;- Specified by:
getTotalDroppedRequestsin interfaceClusterStatsOrBuilder- Returns:
- The totalDroppedRequests.
-
getDroppedRequestsList
Information about deliberately dropped requests for each category specified in the DropOverload policy.
repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;- Specified by:
getDroppedRequestsListin interfaceClusterStatsOrBuilder
-
getDroppedRequestsOrBuilderList
Information about deliberately dropped requests for each category specified in the DropOverload policy.
repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;- Specified by:
getDroppedRequestsOrBuilderListin interfaceClusterStatsOrBuilder
-
getDroppedRequestsCount
public int getDroppedRequestsCount()Information about deliberately dropped requests for each category specified in the DropOverload policy.
repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;- Specified by:
getDroppedRequestsCountin interfaceClusterStatsOrBuilder
-
getDroppedRequests
Information about deliberately dropped requests for each category specified in the DropOverload policy.
repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;- Specified by:
getDroppedRequestsin interfaceClusterStatsOrBuilder
-
getDroppedRequestsOrBuilder
Information about deliberately dropped requests for each category specified in the DropOverload policy.
repeated .envoy.config.endpoint.v3.ClusterStats.DroppedRequests dropped_requests = 5;- Specified by:
getDroppedRequestsOrBuilderin interfaceClusterStatsOrBuilder
-
hasLoadReportInterval
public boolean hasLoadReportInterval()Period over which the actual load report occurred. This will be guaranteed to include every request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy and the ``LoadStatsResponse`` message sent from the management server, this may be longer than the requested load reporting interval in the ``LoadStatsResponse``.
.google.protobuf.Duration load_report_interval = 4;- Specified by:
hasLoadReportIntervalin interfaceClusterStatsOrBuilder- Returns:
- Whether the loadReportInterval field is set.
-
getLoadReportInterval
public com.google.protobuf.Duration getLoadReportInterval()Period over which the actual load report occurred. This will be guaranteed to include every request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy and the ``LoadStatsResponse`` message sent from the management server, this may be longer than the requested load reporting interval in the ``LoadStatsResponse``.
.google.protobuf.Duration load_report_interval = 4;- Specified by:
getLoadReportIntervalin interfaceClusterStatsOrBuilder- Returns:
- The loadReportInterval.
-
getLoadReportIntervalOrBuilder
public com.google.protobuf.DurationOrBuilder getLoadReportIntervalOrBuilder()Period over which the actual load report occurred. This will be guaranteed to include every request reported. Due to system load and delays between the ``LoadStatsRequest`` sent from Envoy and the ``LoadStatsResponse`` message sent from the management server, this may be longer than the requested load reporting interval in the ``LoadStatsResponse``.
.google.protobuf.Duration load_report_interval = 4;- Specified by:
getLoadReportIntervalOrBuilderin interfaceClusterStatsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
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 ClusterStats parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterStats parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterStats parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterStats parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ClusterStats parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ClusterStats parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ClusterStats parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static ClusterStats 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 ClusterStats.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-