Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy (v2.2.0)

Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy.

Specifies the policy on how requests are shadowed to a separate mirrored destination service. The proxy does not wait for responses from the shadow service. Prior to sending traffic to the shadow service, the host/authority header is suffixed with -shadow. Mirroring is currently not supported for Cloud Run destinations.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#destination

def destination() -> ::Google::Cloud::NetworkServices::V1::HttpRoute::Destination
Returns

#destination=

def destination=(value) -> ::Google::Cloud::NetworkServices::V1::HttpRoute::Destination
Parameter
Returns

#mirror_percent

def mirror_percent() -> ::Float
Returns
  • (::Float) — Optional. The percentage of requests to get mirrored to the desired destination.

#mirror_percent=

def mirror_percent=(value) -> ::Float
Parameter
  • value (::Float) — Optional. The percentage of requests to get mirrored to the desired destination.
Returns
  • (::Float) — Optional. The percentage of requests to get mirrored to the desired destination.