public static final class RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder> implements RouteOuterClass.RouteAction.RequestMirrorPolicyOrBuilder
The router is capable of shadowing traffic from one cluster to another. The current implementation is "fire and forget," meaning Envoy will not wait for the shadow cluster to respond before returning the response from the primary cluster. All normal statistics are collected for the shadow cluster making this feature useful for testing. During shadowing, the host/authority header is altered such that *-shadow* is appended. This is useful for logging. For example, *cluster1* becomes *cluster1-shadow*.Protobuf type
envoy.api.v2.route.RouteAction.RequestMirrorPolicy| Modifier and Type | Method and Description |
|---|---|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.RouteAction.RequestMirrorPolicy |
build() |
RouteOuterClass.RouteAction.RequestMirrorPolicy |
buildPartial() |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clear() |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clearCluster()
Specifies the cluster that requests will be mirrored to.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clearRuntimeKey()
If not specified, all requests to the target cluster will be mirrored.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
clone() |
String |
getCluster()
Specifies the cluster that requests will be mirrored to.
|
com.google.protobuf.ByteString |
getClusterBytes()
Specifies the cluster that requests will be mirrored to.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getRuntimeKey()
If not specified, all requests to the target cluster will be mirrored.
|
com.google.protobuf.ByteString |
getRuntimeKeyBytes()
If not specified, all requests to the target cluster will be mirrored.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
mergeFrom(com.google.protobuf.Message other) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
mergeFrom(RouteOuterClass.RouteAction.RequestMirrorPolicy other) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setCluster(String value)
Specifies the cluster that requests will be mirrored to.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setClusterBytes(com.google.protobuf.ByteString value)
Specifies the cluster that requests will be mirrored to.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setRuntimeKey(String value)
If not specified, all requests to the target cluster will be mirrored.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setRuntimeKeyBytes(com.google.protobuf.ByteString value)
If not specified, all requests to the target cluster will be mirrored.
|
RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic RouteOuterClass.RouteAction.RequestMirrorPolicy build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.RouteAction.RequestMirrorPolicy buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder mergeFrom(RouteOuterClass.RouteAction.RequestMirrorPolicy other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>IOExceptionpublic String getCluster()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }getCluster in interface RouteOuterClass.RouteAction.RequestMirrorPolicyOrBuilderpublic com.google.protobuf.ByteString getClusterBytes()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }getClusterBytes in interface RouteOuterClass.RouteAction.RequestMirrorPolicyOrBuilderpublic RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setCluster(String value)
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clearCluster()
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setClusterBytes(com.google.protobuf.ByteString value)
Specifies the cluster that requests will be mirrored to. The cluster must exist in the cluster manager configuration.
string cluster = 1 [(.validate.rules) = { ... }public String getRuntimeKey()
If not specified, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the % of requests to mirror. Valid values are from 0 to 10000, allowing for increments of 0.01% of requests to be mirrored. If the runtime key is specified in the configuration but not present in runtime, 0 is the default and thus 0% of requests will be mirrored.
string runtime_key = 2;getRuntimeKey in interface RouteOuterClass.RouteAction.RequestMirrorPolicyOrBuilderpublic com.google.protobuf.ByteString getRuntimeKeyBytes()
If not specified, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the % of requests to mirror. Valid values are from 0 to 10000, allowing for increments of 0.01% of requests to be mirrored. If the runtime key is specified in the configuration but not present in runtime, 0 is the default and thus 0% of requests will be mirrored.
string runtime_key = 2;getRuntimeKeyBytes in interface RouteOuterClass.RouteAction.RequestMirrorPolicyOrBuilderpublic RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setRuntimeKey(String value)
If not specified, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the % of requests to mirror. Valid values are from 0 to 10000, allowing for increments of 0.01% of requests to be mirrored. If the runtime key is specified in the configuration but not present in runtime, 0 is the default and thus 0% of requests will be mirrored.
string runtime_key = 2;public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder clearRuntimeKey()
If not specified, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the % of requests to mirror. Valid values are from 0 to 10000, allowing for increments of 0.01% of requests to be mirrored. If the runtime key is specified in the configuration but not present in runtime, 0 is the default and thus 0% of requests will be mirrored.
string runtime_key = 2;public RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setRuntimeKeyBytes(com.google.protobuf.ByteString value)
If not specified, all requests to the target cluster will be mirrored. If specified, Envoy will lookup the runtime key to get the % of requests to mirror. Valid values are from 0 to 10000, allowing for increments of 0.01% of requests to be mirrored. If the runtime key is specified in the configuration but not present in runtime, 0 is the default and thus 0% of requests will be mirrored.
string runtime_key = 2;public final RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>public final RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RouteOuterClass.RouteAction.RequestMirrorPolicy.Builder>Copyright © 2018 The Envoy Project. All rights reserved.