Interface RouteAction.RequestMirrorPolicyOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RouteAction.RequestMirrorPolicy, RouteAction.RequestMirrorPolicy.Builder
Enclosing class:
RouteAction

public static interface RouteAction.RequestMirrorPolicyOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    Specifies the cluster that requests will be mirrored to.
    com.google.protobuf.ByteString
    Specifies the cluster that requests will be mirrored to.
    If not specified, all requests to the target cluster will be mirrored.
    If not specified, all requests to the target cluster will be mirrored.
    boolean
    If not specified, all requests to the target cluster will be mirrored.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getCluster

      String getCluster()
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration when the route configuration is loaded.
       If it disappears at runtime, the shadow request will silently be ignored.
       
      string cluster = 1 [(.validate.rules) = { ... }
      Returns:
      The cluster.
    • getClusterBytes

      com.google.protobuf.ByteString getClusterBytes()
       Specifies the cluster that requests will be mirrored to. The cluster must
       exist in the cluster manager configuration when the route configuration is loaded.
       If it disappears at runtime, the shadow request will silently be ignored.
       
      string cluster = 1 [(.validate.rules) = { ... }
      Returns:
      The bytes for cluster.
    • hasRuntimeFraction

      boolean hasRuntimeFraction()
       If not specified, all requests to the target cluster will be mirrored.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 2;
      Returns:
      Whether the runtimeFraction field is set.
    • getRuntimeFraction

      RuntimeFractionalPercent getRuntimeFraction()
       If not specified, all requests to the target cluster will be mirrored.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 2;
      Returns:
      The runtimeFraction.
    • getRuntimeFractionOrBuilder

      RuntimeFractionalPercentOrBuilder getRuntimeFractionOrBuilder()
       If not specified, all requests to the target cluster will be mirrored.
      
       For some fraction N/D, a random number in the range [0,D) is selected. If the
       number is <= the value of the numerator N, or if the key is not present, the default
       value, the request will be mirrored.
       
      .envoy.config.core.v3.RuntimeFractionalPercent runtime_fraction = 2;