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_api_msg_service.load_stats.v3.LoadStatsRequest>` Next ID: 7 [#next-free-field: 7]Protobuf type
envoy.config.endpoint.v3.ClusterStats| Modifier and Type | Class and Description |
|---|---|
static class |
ClusterStats.Builder
Per cluster load stats.
|
static class |
ClusterStats.DroppedRequests
Protobuf type
envoy.config.endpoint.v3.ClusterStats.DroppedRequests |
static interface |
ClusterStats.DroppedRequestsOrBuilder |
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| Modifier and Type | Field and Description |
|---|---|
static int |
CLUSTER_NAME_FIELD_NUMBER |
static int |
CLUSTER_SERVICE_NAME_FIELD_NUMBER |
static int |
DROPPED_REQUESTS_FIELD_NUMBER |
static int |
LOAD_REPORT_INTERVAL_FIELD_NUMBER |
static int |
TOTAL_DROPPED_REQUESTS_FIELD_NUMBER |
static int |
UPSTREAM_LOCALITY_STATS_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getClusterName()
The name of the cluster.
|
com.google.protobuf.ByteString |
getClusterNameBytes()
The name of the cluster.
|
String |
getClusterServiceName()
The eds_cluster_config service_name of the cluster.
|
com.google.protobuf.ByteString |
getClusterServiceNameBytes()
The eds_cluster_config service_name of the cluster.
|
static ClusterStats |
getDefaultInstance() |
ClusterStats |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
ClusterStats.DroppedRequests |
getDroppedRequests(int index)
Information about deliberately dropped requests for each category specified
in the DropOverload policy.
|
int |
getDroppedRequestsCount()
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.DroppedRequestsOrBuilder |
getDroppedRequestsOrBuilder(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.Duration |
getLoadReportInterval()
Period over which the actual load report occurred.
|
com.google.protobuf.DurationOrBuilder |
getLoadReportIntervalOrBuilder()
Period over which the actual load report occurred.
|
com.google.protobuf.Parser<ClusterStats> |
getParserForType() |
int |
getSerializedSize() |
long |
getTotalDroppedRequests()
Cluster-level stats such as total_successful_requests may be computed by
summing upstream_locality_stats.
|
com.google.protobuf.UnknownFieldSet |
getUnknownFields() |
UpstreamLocalityStats |
getUpstreamLocalityStats(int index)
Need at least one.
|
int |
getUpstreamLocalityStatsCount()
Need at least one.
|
List<UpstreamLocalityStats> |
getUpstreamLocalityStatsList()
Need at least one.
|
UpstreamLocalityStatsOrBuilder |
getUpstreamLocalityStatsOrBuilder(int index)
Need at least one.
|
List<? extends UpstreamLocalityStatsOrBuilder> |
getUpstreamLocalityStatsOrBuilderList()
Need at least one.
|
int |
hashCode() |
boolean |
hasLoadReportInterval()
Period over which the actual load report occurred.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
static ClusterStats.Builder |
newBuilder() |
static ClusterStats.Builder |
newBuilder(ClusterStats prototype) |
ClusterStats.Builder |
newBuilderForType() |
protected ClusterStats.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static ClusterStats |
parseDelimitedFrom(InputStream input) |
static ClusterStats |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterStats |
parseFrom(byte[] data) |
static ClusterStats |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterStats |
parseFrom(ByteBuffer data) |
static ClusterStats |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterStats |
parseFrom(com.google.protobuf.ByteString data) |
static ClusterStats |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterStats |
parseFrom(com.google.protobuf.CodedInputStream input) |
static ClusterStats |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static ClusterStats |
parseFrom(InputStream input) |
static ClusterStats |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<ClusterStats> |
parser() |
ClusterStats.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, internalGetMapField, 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, writeStringNoTagfindInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toStringaddAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToclone, finalize, getClass, notify, notifyAll, wait, wait, waitpublic static final int CLUSTER_NAME_FIELD_NUMBER
public static final int CLUSTER_SERVICE_NAME_FIELD_NUMBER
public static final int UPSTREAM_LOCALITY_STATS_FIELD_NUMBER
public static final int TOTAL_DROPPED_REQUESTS_FIELD_NUMBER
public static final int DROPPED_REQUESTS_FIELD_NUMBER
public static final int LOAD_REPORT_INTERVAL_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance in class com.google.protobuf.GeneratedMessageV3public final com.google.protobuf.UnknownFieldSet getUnknownFields()
getUnknownFields in interface com.google.protobuf.MessageOrBuildergetUnknownFields in class com.google.protobuf.GeneratedMessageV3public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3public String getClusterName()
The name of the cluster.
string cluster_name = 1 [(.validate.rules) = { ... }getClusterName in interface ClusterStatsOrBuilderpublic com.google.protobuf.ByteString getClusterNameBytes()
The name of the cluster.
string cluster_name = 1 [(.validate.rules) = { ... }getClusterNameBytes in interface ClusterStatsOrBuilderpublic 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;getClusterServiceName in interface ClusterStatsOrBuilderpublic 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;getClusterServiceNameBytes in interface ClusterStatsOrBuilderpublic List<UpstreamLocalityStats> getUpstreamLocalityStatsList()
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }getUpstreamLocalityStatsList in interface ClusterStatsOrBuilderpublic List<? extends UpstreamLocalityStatsOrBuilder> getUpstreamLocalityStatsOrBuilderList()
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }getUpstreamLocalityStatsOrBuilderList in interface ClusterStatsOrBuilderpublic int getUpstreamLocalityStatsCount()
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }getUpstreamLocalityStatsCount in interface ClusterStatsOrBuilderpublic UpstreamLocalityStats getUpstreamLocalityStats(int index)
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }getUpstreamLocalityStats in interface ClusterStatsOrBuilderpublic UpstreamLocalityStatsOrBuilder getUpstreamLocalityStatsOrBuilder(int index)
Need at least one.
repeated .envoy.config.endpoint.v3.UpstreamLocalityStats upstream_locality_stats = 2 [(.validate.rules) = { ... }getUpstreamLocalityStatsOrBuilder in interface ClusterStatsOrBuilderpublic 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;getTotalDroppedRequests in interface ClusterStatsOrBuilderpublic 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;getDroppedRequestsList in interface ClusterStatsOrBuilderpublic 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;getDroppedRequestsOrBuilderList in interface ClusterStatsOrBuilderpublic 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;getDroppedRequestsCount in interface ClusterStatsOrBuilderpublic 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;getDroppedRequests in interface ClusterStatsOrBuilderpublic 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;getDroppedRequestsOrBuilder in interface ClusterStatsOrBuilderpublic 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;hasLoadReportInterval in interface ClusterStatsOrBuilderpublic 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;getLoadReportInterval in interface ClusterStatsOrBuilderpublic 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;getLoadReportIntervalOrBuilder in interface ClusterStatsOrBuilderpublic final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3public void writeTo(com.google.protobuf.CodedOutputStream output)
throws IOException
writeTo in interface com.google.protobuf.MessageLitewriteTo in class com.google.protobuf.GeneratedMessageV3IOExceptionpublic int getSerializedSize()
getSerializedSize in interface com.google.protobuf.MessageLitegetSerializedSize in class com.google.protobuf.GeneratedMessageV3public boolean equals(Object obj)
equals in interface com.google.protobuf.Messageequals in class com.google.protobuf.AbstractMessagepublic int hashCode()
hashCode in interface com.google.protobuf.MessagehashCode in class com.google.protobuf.AbstractMessagepublic static ClusterStats parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferExceptionpublic static ClusterStats parseFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterStats parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterStats parseDelimitedFrom(InputStream input) throws IOException
IOExceptionpublic static ClusterStats parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic static ClusterStats parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOExceptionpublic static ClusterStats parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOExceptionpublic ClusterStats.Builder newBuilderForType()
newBuilderForType in interface com.google.protobuf.MessagenewBuilderForType in interface com.google.protobuf.MessageLitepublic static ClusterStats.Builder newBuilder()
public static ClusterStats.Builder newBuilder(ClusterStats prototype)
public ClusterStats.Builder toBuilder()
toBuilder in interface com.google.protobuf.MessagetoBuilder in interface com.google.protobuf.MessageLiteprotected ClusterStats.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType in class com.google.protobuf.GeneratedMessageV3public static ClusterStats getDefaultInstance()
public static com.google.protobuf.Parser<ClusterStats> parser()
public com.google.protobuf.Parser<ClusterStats> getParserForType()
getParserForType in interface com.google.protobuf.MessagegetParserForType in interface com.google.protobuf.MessageLitegetParserForType in class com.google.protobuf.GeneratedMessageV3public ClusterStats getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderCopyright © 2018–2021 The Envoy Project. All rights reserved.