Class ClusterStats
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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
public final class ClusterStats extends com.google.protobuf.GeneratedMessageV3 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 typeenvoy.config.endpoint.v3.ClusterStats- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classClusterStats.BuilderPer cluster load stats.static classClusterStats.DroppedRequestsProtobuf typeenvoy.config.endpoint.v3.ClusterStats.DroppedRequestsstatic interfaceClusterStats.DroppedRequestsOrBuilder-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage,BuilderType extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageType,BuilderType>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageType extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intCLUSTER_NAME_FIELD_NUMBERstatic intCLUSTER_SERVICE_NAME_FIELD_NUMBERstatic intDROPPED_REQUESTS_FIELD_NUMBERstatic intLOAD_REPORT_INTERVAL_FIELD_NUMBERstatic intTOTAL_DROPPED_REQUESTS_FIELD_NUMBERstatic intUPSTREAM_LOCALITY_STATS_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)StringgetClusterName()The name of the cluster.com.google.protobuf.ByteStringgetClusterNameBytes()The name of the cluster.StringgetClusterServiceName()The eds_cluster_config service_name of the cluster.com.google.protobuf.ByteStringgetClusterServiceNameBytes()The eds_cluster_config service_name of the cluster.static ClusterStatsgetDefaultInstance()ClusterStatsgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()ClusterStats.DroppedRequestsgetDroppedRequests(int index)Information about deliberately dropped requests for each category specified in the DropOverload policy.intgetDroppedRequestsCount()Information about deliberately dropped requests for each category specified in the DropOverload policy.List<ClusterStats.DroppedRequests>getDroppedRequestsList()Information about deliberately dropped requests for each category specified in the DropOverload policy.ClusterStats.DroppedRequestsOrBuildergetDroppedRequestsOrBuilder(int index)Information about deliberately dropped requests for each category specified in the DropOverload policy.List<? extends ClusterStats.DroppedRequestsOrBuilder>getDroppedRequestsOrBuilderList()Information about deliberately dropped requests for each category specified in the DropOverload policy.com.google.protobuf.DurationgetLoadReportInterval()Period over which the actual load report occurred.com.google.protobuf.DurationOrBuildergetLoadReportIntervalOrBuilder()Period over which the actual load report occurred.com.google.protobuf.Parser<ClusterStats>getParserForType()intgetSerializedSize()longgetTotalDroppedRequests()Cluster-level stats such as total_successful_requests may be computed by summing upstream_locality_stats.com.google.protobuf.UnknownFieldSetgetUnknownFields()UpstreamLocalityStatsgetUpstreamLocalityStats(int index)Need at least one.intgetUpstreamLocalityStatsCount()Need at least one.List<UpstreamLocalityStats>getUpstreamLocalityStatsList()Need at least one.UpstreamLocalityStatsOrBuildergetUpstreamLocalityStatsOrBuilder(int index)Need at least one.List<? extends UpstreamLocalityStatsOrBuilder>getUpstreamLocalityStatsOrBuilderList()Need at least one.inthashCode()booleanhasLoadReportInterval()Period over which the actual load report occurred.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static ClusterStats.BuildernewBuilder()static ClusterStats.BuildernewBuilder(ClusterStats prototype)ClusterStats.BuildernewBuilderForType()protected ClusterStats.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)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()ClusterStats.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, 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, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
CLUSTER_NAME_FIELD_NUMBER
public static final int CLUSTER_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CLUSTER_SERVICE_NAME_FIELD_NUMBER
public static final int CLUSTER_SERVICE_NAME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPSTREAM_LOCALITY_STATS_FIELD_NUMBER
public static final int UPSTREAM_LOCALITY_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
TOTAL_DROPPED_REQUESTS_FIELD_NUMBER
public static final int TOTAL_DROPPED_REQUESTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DROPPED_REQUESTS_FIELD_NUMBER
public static final int DROPPED_REQUESTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOAD_REPORT_INTERVAL_FIELD_NUMBER
public static final int LOAD_REPORT_INTERVAL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getUnknownFields
public final com.google.protobuf.UnknownFieldSet getUnknownFields()
- Specified by:
getUnknownFieldsin interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getUnknownFieldsin 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
-
getClusterName
public String 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
public String 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
public List<UpstreamLocalityStats> getUpstreamLocalityStatsList()
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsListin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStatsOrBuilderList
public List<? extends UpstreamLocalityStatsOrBuilder> 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
public UpstreamLocalityStats getUpstreamLocalityStats(int index)
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }- Specified by:
getUpstreamLocalityStatsin interfaceClusterStatsOrBuilder
-
getUpstreamLocalityStatsOrBuilder
public UpstreamLocalityStatsOrBuilder getUpstreamLocalityStatsOrBuilder(int index)
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
public List<ClusterStats.DroppedRequests> 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
public List<? extends ClusterStats.DroppedRequestsOrBuilder> 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
public ClusterStats.DroppedRequests getDroppedRequests(int index)
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
public ClusterStats.DroppedRequestsOrBuilder getDroppedRequestsOrBuilder(int index)
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.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- 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
public boolean equals(Object obj)
- 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
public static ClusterStats parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterStats parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClusterStats parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static ClusterStats parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterStats parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static ClusterStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public ClusterStats.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static ClusterStats.Builder newBuilder()
-
newBuilder
public static ClusterStats.Builder newBuilder(ClusterStats prototype)
-
toBuilder
public ClusterStats.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ClusterStats.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static ClusterStats getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<ClusterStats> parser()
-
getParserForType
public com.google.protobuf.Parser<ClusterStats> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public ClusterStats getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-