Reference documentation and code samples for the Google Cloud Network Services V1 Client class 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.
Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy
Namespace
Google \ Cloud \ NetworkServices \ V1 \ HttpRouteMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ destination |
Destination
The destination the requests will be mirrored to. The weight of the destination will be ignored. |
↳ mirror_percent |
float
Optional. The percentage of requests to get mirrored to the desired destination. |
getDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
| Returns | |
|---|---|
| Type | Description |
Destination|null |
|
hasDestination
clearDestination
setDestination
The destination the requests will be mirrored to. The weight of the destination will be ignored.
| Parameter | |
|---|---|
| Name | Description |
var |
Destination
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMirrorPercent
Optional. The percentage of requests to get mirrored to the desired destination.
| Returns | |
|---|---|
| Type | Description |
float |
|
setMirrorPercent
Optional. The percentage of requests to get mirrored to the desired destination.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|