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

2.10.1 (latest) 2.10.0 2.9.0 2.8.0 2.7.0 2.6.1 2.5.0 2.4.0 2.3.0 2.2.0 2.1.0 2.0.1 1.2.0 1.1.0 1.0.1 0.2.0 0.1.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**

- ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored.

### #destination=

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

**Parameter**

- **value** ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored.
**Returns**

- ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored.

### #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.