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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-RequestMirrorPolicy) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::RequestMirrorPolicy.\n\nSpecifies the policy on how requests are shadowed to a separate mirrored\ndestination service. The proxy does not wait for responses from the\nshadow service. Prior to sending traffic to the shadow service, the\nhost/authority header is suffixed with -shadow.\nMirroring is currently not supported for Cloud Run destinations. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #destination\n\n def destination() -\u003e ::Google::Cloud::NetworkServices::V1::HttpRoute::Destination\n\n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](./Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored.\n\n### #destination=\n\n def destination=(value) -\u003e ::Google::Cloud::NetworkServices::V1::HttpRoute::Destination\n\n**Parameter**\n\n- **value** ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](./Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored. \n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::HttpRoute::Destination](./Google-Cloud-NetworkServices-V1-HttpRoute-Destination)) --- The destination the requests will be mirrored to. The weight of the destination will be ignored.\n\n### #mirror_percent\n\n def mirror_percent() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Optional. The percentage of requests to get mirrored to the desired destination.\n\n### #mirror_percent=\n\n def mirror_percent=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Optional. The percentage of requests to get mirrored to the desired destination. \n**Returns**\n\n- (::Float) --- Optional. The percentage of requests to get mirrored to the desired destination."]]