Class HTTPFault
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- 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,Serializable
public final class HTTPFault extends com.google.protobuf.GeneratedMessageV3 implements HTTPFaultOrBuilder
[#next-free-field: 16]
Protobuf typeenvoy.extensions.filters.http.fault.v3.HTTPFault- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHTTPFault.Builder[#next-free-field: 16]-
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 intABORT_FIELD_NUMBERstatic intABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBERstatic intABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBERstatic intABORT_PERCENT_RUNTIME_FIELD_NUMBERstatic intDELAY_DURATION_RUNTIME_FIELD_NUMBERstatic intDELAY_FIELD_NUMBERstatic intDELAY_PERCENT_RUNTIME_FIELD_NUMBERstatic intDISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBERstatic intDOWNSTREAM_NODES_FIELD_NUMBERstatic intHEADERS_FIELD_NUMBERstatic intMAX_ACTIVE_FAULTS_FIELD_NUMBERstatic intMAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBERstatic intRESPONSE_RATE_LIMIT_FIELD_NUMBERstatic intRESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBERstatic intUPSTREAM_CLUSTER_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)FaultAbortgetAbort()If specified, the filter will abort requests based on the values in the object.StringgetAbortGrpcStatusRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetAbortGrpcStatusRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.StringgetAbortHttpStatusRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetAbortHttpStatusRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.FaultAbortOrBuildergetAbortOrBuilder()If specified, the filter will abort requests based on the values in the object.StringgetAbortPercentRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetAbortPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static HTTPFaultgetDefaultInstance()HTTPFaultgetDefaultInstanceForType()FaultDelaygetDelay()If specified, the filter will inject delays based on the values in the object.StringgetDelayDurationRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetDelayDurationRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.FaultDelayOrBuildergetDelayOrBuilder()If specified, the filter will inject delays based on the values in the object.StringgetDelayPercentRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetDelayPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.static com.google.protobuf.Descriptors.DescriptorgetDescriptor()booleangetDisableDownstreamClusterStats()To control whether stats storage is allocated dynamically for each downstream server.StringgetDownstreamNodes(int index)Faults are injected for the specified list of downstream hosts.com.google.protobuf.ByteStringgetDownstreamNodesBytes(int index)Faults are injected for the specified list of downstream hosts.intgetDownstreamNodesCount()Faults are injected for the specified list of downstream hosts.com.google.protobuf.ProtocolStringListgetDownstreamNodesList()Faults are injected for the specified list of downstream hosts.HeaderMatchergetHeaders(int index)Specifies a set of headers that the filter should match on.intgetHeadersCount()Specifies a set of headers that the filter should match on.List<HeaderMatcher>getHeadersList()Specifies a set of headers that the filter should match on.HeaderMatcherOrBuildergetHeadersOrBuilder(int index)Specifies a set of headers that the filter should match on.List<? extends HeaderMatcherOrBuilder>getHeadersOrBuilderList()Specifies a set of headers that the filter should match on.com.google.protobuf.UInt32ValuegetMaxActiveFaults()The maximum number of faults that can be active at a single time via the configured fault filter.com.google.protobuf.UInt32ValueOrBuildergetMaxActiveFaultsOrBuilder()The maximum number of faults that can be active at a single time via the configured fault filter.StringgetMaxActiveFaultsRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetMaxActiveFaultsRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.Parser<HTTPFault>getParserForType()FaultRateLimitgetResponseRateLimit()The response rate limit to be applied to the response body of the stream.FaultRateLimitOrBuildergetResponseRateLimitOrBuilder()The response rate limit to be applied to the response body of the stream.StringgetResponseRateLimitPercentRuntime()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.com.google.protobuf.ByteStringgetResponseRateLimitPercentRuntimeBytes()The runtime key to override the :ref:`default <config_http_filters_fault_injection_runtime>` runtime.intgetSerializedSize()com.google.protobuf.UnknownFieldSetgetUnknownFields()StringgetUpstreamCluster()Specifies the name of the (destination) upstream cluster that the filter should match on.com.google.protobuf.ByteStringgetUpstreamClusterBytes()Specifies the name of the (destination) upstream cluster that the filter should match on.booleanhasAbort()If specified, the filter will abort requests based on the values in the object.booleanhasDelay()If specified, the filter will inject delays based on the values in the object.inthashCode()booleanhasMaxActiveFaults()The maximum number of faults that can be active at a single time via the configured fault filter.booleanhasResponseRateLimit()The response rate limit to be applied to the response body of the stream.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static HTTPFault.BuildernewBuilder()static HTTPFault.BuildernewBuilder(HTTPFault prototype)HTTPFault.BuildernewBuilderForType()protected HTTPFault.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static HTTPFaultparseDelimitedFrom(InputStream input)static HTTPFaultparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HTTPFaultparseFrom(byte[] data)static HTTPFaultparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HTTPFaultparseFrom(com.google.protobuf.ByteString data)static HTTPFaultparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HTTPFaultparseFrom(com.google.protobuf.CodedInputStream input)static HTTPFaultparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HTTPFaultparseFrom(InputStream input)static HTTPFaultparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static HTTPFaultparseFrom(ByteBuffer data)static HTTPFaultparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<HTTPFault>parser()HTTPFault.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
-
DELAY_FIELD_NUMBER
public static final int DELAY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ABORT_FIELD_NUMBER
public static final int ABORT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
UPSTREAM_CLUSTER_FIELD_NUMBER
public static final int UPSTREAM_CLUSTER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HEADERS_FIELD_NUMBER
public static final int HEADERS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DOWNSTREAM_NODES_FIELD_NUMBER
public static final int DOWNSTREAM_NODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ACTIVE_FAULTS_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_RATE_LIMIT_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELAY_PERCENT_RUNTIME_FIELD_NUMBER
public static final int DELAY_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ABORT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int ABORT_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DELAY_DURATION_RUNTIME_FIELD_NUMBER
public static final int DELAY_DURATION_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_HTTP_STATUS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER
public static final int MAX_ACTIVE_FAULTS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER
public static final int RESPONSE_RATE_LIMIT_PERCENT_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER
public static final int ABORT_GRPC_STATUS_RUNTIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
DISABLE_DOWNSTREAM_CLUSTER_STATS_FIELD_NUMBER
public static final int DISABLE_DOWNSTREAM_CLUSTER_STATS_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
-
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:
hasDelayin 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:
getDelayin 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:
getDelayOrBuilderin 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:
hasAbortin 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:
getAbortin 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:
getAbortOrBuilderin interfaceHTTPFaultOrBuilder
-
getUpstreamCluster
public 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:
getUpstreamClusterin 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:
getUpstreamClusterBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for upstreamCluster.
-
getHeadersList
public 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:
getHeadersListin interfaceHTTPFaultOrBuilder
-
getHeadersOrBuilderList
public 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:
getHeadersOrBuilderListin 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:
getHeadersCountin 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:
getHeadersin 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:
getHeadersOrBuilderin 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:
getDownstreamNodesListin 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:
getDownstreamNodesCountin interfaceHTTPFaultOrBuilder- Returns:
- The count of downstreamNodes.
-
getDownstreamNodes
public 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:
getDownstreamNodesin 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:
getDownstreamNodesBytesin 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:
hasMaxActiveFaultsin 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:
getMaxActiveFaultsin 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:
getMaxActiveFaultsOrBuilderin 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:
hasResponseRateLimitin 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:
getResponseRateLimitin 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:
getResponseRateLimitOrBuilderin interfaceHTTPFaultOrBuilder
-
getDelayPercentRuntime
public 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:
getDelayPercentRuntimein 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:
getDelayPercentRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for delayPercentRuntime.
-
getAbortPercentRuntime
public 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:
getAbortPercentRuntimein 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:
getAbortPercentRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for abortPercentRuntime.
-
getDelayDurationRuntime
public 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:
getDelayDurationRuntimein 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:
getDelayDurationRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for delayDurationRuntime.
-
getAbortHttpStatusRuntime
public 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:
getAbortHttpStatusRuntimein 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:
getAbortHttpStatusRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for abortHttpStatusRuntime.
-
getMaxActiveFaultsRuntime
public 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:
getMaxActiveFaultsRuntimein 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:
getMaxActiveFaultsRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for maxActiveFaultsRuntime.
-
getResponseRateLimitPercentRuntime
public 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:
getResponseRateLimitPercentRuntimein 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:
getResponseRateLimitPercentRuntimeBytesin interfaceHTTPFaultOrBuilder- Returns:
- The bytes for responseRateLimitPercentRuntime.
-
getAbortGrpcStatusRuntime
public 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:
getAbortGrpcStatusRuntimein 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:
getAbortGrpcStatusRuntimeBytesin 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:
getDisableDownstreamClusterStatsin interfaceHTTPFaultOrBuilder- Returns:
- The disableDownstreamClusterStats.
-
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 HTTPFault parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static HTTPFault parseFrom(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(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HTTPFault parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HTTPFault parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static HTTPFault parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static HTTPFault parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public HTTPFault.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein 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:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected HTTPFault.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static HTTPFault getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<HTTPFault> parser()
-
getParserForType
public com.google.protobuf.Parser<HTTPFault> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public HTTPFault getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-