Class HTTPFault
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessage
-
- io.envoyproxy.envoy.extensions.filters.http.fault.v3.HTTPFault
-
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,HTTPFaultOrBuilder
,java.io.Serializable
public final class HTTPFault extends com.google.protobuf.GeneratedMessage implements HTTPFaultOrBuilder
[#next-free-field: 17]
Protobuf typeenvoy.extensions.filters.http.fault.v3.HTTPFault
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HTTPFault.Builder
[#next-free-field: 17]-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message,T extends java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
FaultAbort
getAbort()
If specified, the filter will abort requests based on the values in the object.java.lang.String
getAbortGrpcStatusRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getAbortGrpcStatusRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.java.lang.String
getAbortHttpStatusRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getAbortHttpStatusRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.FaultAbortOrBuilder
getAbortOrBuilder()
If specified, the filter will abort requests based on the values in the object.java.lang.String
getAbortPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getAbortPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static HTTPFault
getDefaultInstance()
HTTPFault
getDefaultInstanceForType()
FaultDelay
getDelay()
If specified, the filter will inject delays based on the values in the object.java.lang.String
getDelayDurationRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getDelayDurationRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.FaultDelayOrBuilder
getDelayOrBuilder()
If specified, the filter will inject delays based on the values in the object.java.lang.String
getDelayPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getDelayPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
boolean
getDisableDownstreamClusterStats()
To control whether stats storage is allocated dynamically for each downstream server.java.lang.String
getDownstreamNodes(int index)
Faults are injected for the specified list of downstream hosts.com.google.protobuf.ByteString
getDownstreamNodesBytes(int index)
Faults are injected for the specified list of downstream hosts.int
getDownstreamNodesCount()
Faults are injected for the specified list of downstream hosts.com.google.protobuf.ProtocolStringList
getDownstreamNodesList()
Faults are injected for the specified list of downstream hosts.com.google.protobuf.Struct
getFilterMetadata()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.com.google.protobuf.StructOrBuilder
getFilterMetadataOrBuilder()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.HeaderMatcher
getHeaders(int index)
Specifies a set of headers that the filter should match on.int
getHeadersCount()
Specifies a set of headers that the filter should match on.java.util.List<HeaderMatcher>
getHeadersList()
Specifies a set of headers that the filter should match on.HeaderMatcherOrBuilder
getHeadersOrBuilder(int index)
Specifies a set of headers that the filter should match on.java.util.List<? extends HeaderMatcherOrBuilder>
getHeadersOrBuilderList()
Specifies a set of headers that the filter should match on.com.google.protobuf.UInt32Value
getMaxActiveFaults()
The maximum number of faults that can be active at a single time via the configured fault filter.com.google.protobuf.UInt32ValueOrBuilder
getMaxActiveFaultsOrBuilder()
The maximum number of faults that can be active at a single time via the configured fault filter.java.lang.String
getMaxActiveFaultsRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getMaxActiveFaultsRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.Parser<HTTPFault>
getParserForType()
FaultRateLimit
getResponseRateLimit()
The response rate limit to be applied to the response body of the stream.FaultRateLimitOrBuilder
getResponseRateLimitOrBuilder()
The response rate limit to be applied to the response body of the stream.java.lang.String
getResponseRateLimitPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteString
getResponseRateLimitPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.int
getSerializedSize()
java.lang.String
getUpstreamCluster()
Specifies the name of the (destination) upstream cluster that the filter should match on.com.google.protobuf.ByteString
getUpstreamClusterBytes()
Specifies the name of the (destination) upstream cluster that the filter should match on.boolean
hasAbort()
If specified, the filter will abort requests based on the values in the object.boolean
hasDelay()
If specified, the filter will inject delays based on the values in the object.boolean
hasFilterMetadata()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter.int
hashCode()
boolean
hasMaxActiveFaults()
The maximum number of faults that can be active at a single time via the configured fault filter.boolean
hasResponseRateLimit()
The response rate limit to be applied to the response body of the stream.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static HTTPFault.Builder
newBuilder()
static HTTPFault.Builder
newBuilder(HTTPFault prototype)
HTTPFault.Builder
newBuilderForType()
protected HTTPFault.Builder
newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
static HTTPFault
parseDelimitedFrom(java.io.InputStream input)
static HTTPFault
parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HTTPFault
parseFrom(byte[] data)
static HTTPFault
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HTTPFault
parseFrom(com.google.protobuf.ByteString data)
static HTTPFault
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HTTPFault
parseFrom(com.google.protobuf.CodedInputStream input)
static HTTPFault
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HTTPFault
parseFrom(java.io.InputStream input)
static HTTPFault
parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static HTTPFault
parseFrom(java.nio.ByteBuffer data)
static HTTPFault
parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<HTTPFault>
parser()
HTTPFault.Builder
toBuilder()
void
writeTo(com.google.protobuf.CodedOutputStream output)
-
Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, 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, hashFields, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
bitField0_
private int bitField0_
-
DELAY_FIELD_NUMBER
public static final int DELAY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
delay_
private FaultDelay delay_
-
ABORT_FIELD_NUMBER
public static final int ABORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
abort_
private FaultAbort abort_
-
UPSTREAM_CLUSTER_FIELD_NUMBER
public static final int UPSTREAM_CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
upstreamCluster_
private volatile java.lang.Object upstreamCluster_
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
headers_
private java.util.List<HeaderMatcher> headers_
-
DOWNSTREAM_NODES_FIELD_NUMBER
public static final int DOWNSTREAM_NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
downstreamNodes_
private com.google.protobuf.LazyStringArrayList downstreamNodes_
-
MAX_ACTIVE_FAULTS_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxActiveFaults_
private com.google.protobuf.UInt32Value maxActiveFaults_
-
RESPONSE_RATE_LIMIT_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
responseRateLimit_
private FaultRateLimit responseRateLimit_
-
DELAY_PERCENT_RUNTIME_FIELD_NUMBER
public static final int DELAY_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
delayPercentRuntime_
private volatile java.lang.Object delayPercentRuntime_
-
ABORT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int ABORT_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
abortPercentRuntime_
private volatile java.lang.Object abortPercentRuntime_
-
DELAY_DURATION_RUNTIME_FIELD_NUMBER
public static final int DELAY_DURATION_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
delayDurationRuntime_
private volatile java.lang.Object delayDurationRuntime_
-
ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
abortHttpStatusRuntime_
private volatile java.lang.Object abortHttpStatusRuntime_
-
MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
maxActiveFaultsRuntime_
private volatile java.lang.Object maxActiveFaultsRuntime_
-
RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
responseRateLimitPercentRuntime_
private volatile java.lang.Object responseRateLimitPercentRuntime_
-
ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
abortGrpcStatusRuntime_
private volatile java.lang.Object abortGrpcStatusRuntime_
-
DISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBER
public static final int DISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
disableDownstreamClusterStats_
private boolean disableDownstreamClusterStats_
-
FILTER_METADATA_FIELD_NUMBER
public static final int FILTER_METADATA_FIELD_NUMBER
- See Also:
- Constant Field Values
-
filterMetadata_
private com.google.protobuf.Struct filterMetadata_
-
memoizedIsInitialized
private byte memoizedIsInitialized
-
DEFAULT_INSTANCE
private static final HTTPFault DEFAULT_INSTANCE
-
PARSER
private static final com.google.protobuf.Parser<HTTPFault> PARSER
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
hasDelay
public boolean hasDelay()
If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
hasDelay
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the delay field is set.
-
getDelay
public FaultDelay getDelay()
If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
getDelay
in interfaceHTTPFaultOrBuilder
- Returns:
- The delay.
-
getDelayOrBuilder
public FaultDelayOrBuilder getDelayOrBuilder()
If specified, the filter will inject delays based on the values in the object.
.envoy.extensions.filters.common.fault.v3.FaultDelay delay = 1;
- Specified by:
getDelayOrBuilder
in interfaceHTTPFaultOrBuilder
-
hasAbort
public boolean hasAbort()
If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
hasAbort
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the abort field is set.
-
getAbort
public FaultAbort getAbort()
If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
getAbort
in interfaceHTTPFaultOrBuilder
- Returns:
- The abort.
-
getAbortOrBuilder
public FaultAbortOrBuilder getAbortOrBuilder()
If specified, the filter will abort requests based on the values in the object. At least ``abort`` or ``delay`` must be specified.
.envoy.extensions.filters.http.fault.v3.FaultAbort abort = 2;
- Specified by:
getAbortOrBuilder
in interfaceHTTPFaultOrBuilder
-
getUpstreamCluster
public java.lang.String getUpstreamCluster()
Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;
- Specified by:
getUpstreamCluster
in interfaceHTTPFaultOrBuilder
- Returns:
- The upstreamCluster.
-
getUpstreamClusterBytes
public com.google.protobuf.ByteString getUpstreamClusterBytes()
Specifies the name of the (destination) upstream cluster that the filter should match on. Fault injection will be restricted to requests bound to the specific upstream cluster.
string upstream_cluster = 3;
- Specified by:
getUpstreamClusterBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for upstreamCluster.
-
getHeadersList
public java.util.List<HeaderMatcher> getHeadersList()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersList
in interfaceHTTPFaultOrBuilder
-
getHeadersOrBuilderList
public java.util.List<? extends HeaderMatcherOrBuilder> getHeadersOrBuilderList()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersOrBuilderList
in interfaceHTTPFaultOrBuilder
-
getHeadersCount
public int getHeadersCount()
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersCount
in interfaceHTTPFaultOrBuilder
-
getHeaders
public HeaderMatcher getHeaders(int index)
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeaders
in interfaceHTTPFaultOrBuilder
-
getHeadersOrBuilder
public HeaderMatcherOrBuilder getHeadersOrBuilder(int index)
Specifies a set of headers that the filter should match on. The fault injection filter can be applied selectively to requests that match a set of headers specified in the fault filter config. The chances of actual fault injection further depend on the value of the :ref:`percentage <envoy_v3_api_field_extensions.filters.http.fault.v3.FaultAbort.percentage>` field. The filter will check the request's headers against all the specified headers in the filter config. A match will happen if all the headers in the config are present in the request with the same values (or based on presence if the ``value`` field is not in the config).
repeated .envoy.config.route.v3.HeaderMatcher headers = 4;
- Specified by:
getHeadersOrBuilder
in interfaceHTTPFaultOrBuilder
-
getDownstreamNodesList
public com.google.protobuf.ProtocolStringList getDownstreamNodesList()
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesList
in interfaceHTTPFaultOrBuilder
- Returns:
- A list containing the downstreamNodes.
-
getDownstreamNodesCount
public int getDownstreamNodesCount()
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesCount
in interfaceHTTPFaultOrBuilder
- Returns:
- The count of downstreamNodes.
-
getDownstreamNodes
public java.lang.String getDownstreamNodes(int index)
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodes
in interfaceHTTPFaultOrBuilder
- Parameters:
index
- The index of the element to return.- Returns:
- The downstreamNodes at the given index.
-
getDownstreamNodesBytes
public com.google.protobuf.ByteString getDownstreamNodesBytes(int index)
Faults are injected for the specified list of downstream hosts. If this setting is not set, faults are injected for all downstream nodes. Downstream node name is taken from :ref:`the HTTP x-envoy-downstream-service-node <config_http_conn_man_headers_downstream-service-node>` header and compared against downstream_nodes list.
repeated string downstream_nodes = 5;
- Specified by:
getDownstreamNodesBytes
in interfaceHTTPFaultOrBuilder
- Parameters:
index
- The index of the value to return.- Returns:
- The bytes of the downstreamNodes at the given index.
-
hasMaxActiveFaults
public boolean hasMaxActiveFaults()
The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
hasMaxActiveFaults
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the maxActiveFaults field is set.
-
getMaxActiveFaults
public com.google.protobuf.UInt32Value getMaxActiveFaults()
The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
getMaxActiveFaults
in interfaceHTTPFaultOrBuilder
- Returns:
- The maxActiveFaults.
-
getMaxActiveFaultsOrBuilder
public com.google.protobuf.UInt32ValueOrBuilder getMaxActiveFaultsOrBuilder()
The maximum number of faults that can be active at a single time via the configured fault filter. Note that because this setting can be overridden at the route level, it's possible for the number of active faults to be greater than this value (if injected via a different route). If not specified, defaults to unlimited. This setting can be overridden via ``runtime <config_http_filters_fault_injection_runtime>`` and any faults that are not injected due to overflow will be indicated via the ``faults_overflow <config_http_filters_fault_injection_stats>`` stat. .. attention:: Like other :ref:`circuit breakers <arch_overview_circuit_break>` in Envoy, this is a fuzzy limit. It's possible for the number of active faults to rise slightly above the configured amount due to the implementation details.
.google.protobuf.UInt32Value max_active_faults = 6;
- Specified by:
getMaxActiveFaultsOrBuilder
in interfaceHTTPFaultOrBuilder
-
hasResponseRateLimit
public boolean hasResponseRateLimit()
The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
hasResponseRateLimit
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the responseRateLimit field is set.
-
getResponseRateLimit
public FaultRateLimit getResponseRateLimit()
The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
getResponseRateLimit
in interfaceHTTPFaultOrBuilder
- Returns:
- The responseRateLimit.
-
getResponseRateLimitOrBuilder
public FaultRateLimitOrBuilder getResponseRateLimitOrBuilder()
The response rate limit to be applied to the response body of the stream. When configured, the percentage can be overridden by the :ref:`fault.http.rate_limit.response_percent <config_http_filters_fault_injection_runtime>` runtime key. .. attention:: This is a per-stream limit versus a connection level limit. This means that concurrent streams will each get an independent limit.
.envoy.extensions.filters.common.fault.v3.FaultRateLimit response_rate_limit = 7;
- Specified by:
getResponseRateLimitOrBuilder
in interfaceHTTPFaultOrBuilder
-
getDelayPercentRuntime
public java.lang.String getDelayPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_delay_percent
string delay_percent_runtime = 8;
- Specified by:
getDelayPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The delayPercentRuntime.
-
getDelayPercentRuntimeBytes
public com.google.protobuf.ByteString getDelayPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_delay_percent
string delay_percent_runtime = 8;
- Specified by:
getDelayPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for delayPercentRuntime.
-
getAbortPercentRuntime
public java.lang.String getAbortPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.abort_percent
string abort_percent_runtime = 9;
- Specified by:
getAbortPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortPercentRuntime.
-
getAbortPercentRuntimeBytes
public com.google.protobuf.ByteString getAbortPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.abort_percent
string abort_percent_runtime = 9;
- Specified by:
getAbortPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortPercentRuntime.
-
getDelayDurationRuntime
public java.lang.String getDelayDurationRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_duration_ms
string delay_duration_runtime = 10;
- Specified by:
getDelayDurationRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The delayDurationRuntime.
-
getDelayDurationRuntimeBytes
public com.google.protobuf.ByteString getDelayDurationRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.delay.fixed_duration_ms
string delay_duration_runtime = 10;
- Specified by:
getDelayDurationRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for delayDurationRuntime.
-
getAbortHttpStatusRuntime
public java.lang.String getAbortHttpStatusRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.http_status
string abort_http_status_runtime = 11;
- Specified by:
getAbortHttpStatusRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortHttpStatusRuntime.
-
getAbortHttpStatusRuntimeBytes
public com.google.protobuf.ByteString getAbortHttpStatusRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.http_status
string abort_http_status_runtime = 11;
- Specified by:
getAbortHttpStatusRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortHttpStatusRuntime.
-
getMaxActiveFaultsRuntime
public java.lang.String getMaxActiveFaultsRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.max_active_faults
string max_active_faults_runtime = 12;
- Specified by:
getMaxActiveFaultsRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The maxActiveFaultsRuntime.
-
getMaxActiveFaultsRuntimeBytes
public com.google.protobuf.ByteString getMaxActiveFaultsRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.max_active_faults
string max_active_faults_runtime = 12;
- Specified by:
getMaxActiveFaultsRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for maxActiveFaultsRuntime.
-
getResponseRateLimitPercentRuntime
public java.lang.String getResponseRateLimitPercentRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.rate_limit.response_percent
string response_rate_limit_percent_runtime = 13;
- Specified by:
getResponseRateLimitPercentRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The responseRateLimitPercentRuntime.
-
getResponseRateLimitPercentRuntimeBytes
public com.google.protobuf.ByteString getResponseRateLimitPercentRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.rate_limit.response_percent
string response_rate_limit_percent_runtime = 13;
- Specified by:
getResponseRateLimitPercentRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for responseRateLimitPercentRuntime.
-
getAbortGrpcStatusRuntime
public java.lang.String getAbortGrpcStatusRuntime()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.grpc_status
string abort_grpc_status_runtime = 14;
- Specified by:
getAbortGrpcStatusRuntime
in interfaceHTTPFaultOrBuilder
- Returns:
- The abortGrpcStatusRuntime.
-
getAbortGrpcStatusRuntimeBytes
public com.google.protobuf.ByteString getAbortGrpcStatusRuntimeBytes()
The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime. The default is: fault.http.abort.grpc_status
string abort_grpc_status_runtime = 14;
- Specified by:
getAbortGrpcStatusRuntimeBytes
in interfaceHTTPFaultOrBuilder
- Returns:
- The bytes for abortGrpcStatusRuntime.
-
getDisableDownstreamClusterStats
public boolean getDisableDownstreamClusterStats()
To control whether stats storage is allocated dynamically for each downstream server. If set to true, "x-envoy-downstream-service-cluster" field of header will be ignored by this filter. If set to false, dynamic stats storage will be allocated for the downstream cluster name. Default value is false.
bool disable_downstream_cluster_stats = 15;
- Specified by:
getDisableDownstreamClusterStats
in interfaceHTTPFaultOrBuilder
- Returns:
- The disableDownstreamClusterStats.
-
hasFilterMetadata
public boolean hasFilterMetadata()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
hasFilterMetadata
in interfaceHTTPFaultOrBuilder
- Returns:
- Whether the filterMetadata field is set.
-
getFilterMetadata
public com.google.protobuf.Struct getFilterMetadata()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
getFilterMetadata
in interfaceHTTPFaultOrBuilder
- Returns:
- The filterMetadata.
-
getFilterMetadataOrBuilder
public com.google.protobuf.StructOrBuilder getFilterMetadataOrBuilder()
When an abort or delay fault is executed, the metadata struct provided here will be added to the request's dynamic metadata under the namespace corresponding to the name of the fault filter. This data can be logged as part of Access Logs using the :ref:`command operator <config_access_log_command_operators>` %DYNAMIC_METADATA(NAMESPACE)%, where NAMESPACE is the name of the fault filter.
.google.protobuf.Struct filter_metadata = 16;
- Specified by:
getFilterMetadataOrBuilder
in interfaceHTTPFaultOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static HTTPFault parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HTTPFault parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HTTPFault parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static HTTPFault parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public HTTPFault.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static HTTPFault.Builder newBuilder()
-
newBuilder
public static HTTPFault.Builder newBuilder(HTTPFault prototype)
-
toBuilder
public HTTPFault.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HTTPFault.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static HTTPFault getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HTTPFault> parser()
-
getParserForType
public com.google.protobuf.Parser<HTTPFault> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public HTTPFault getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-