Google Cloud Network Services V1 Client - Class RequestMirrorPolicy (0.1.1)

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.

Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.RequestMirrorPolicy

Namespace

Google \ Cloud \ NetworkServices \ V1 \ HttpRoute

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ destination Google\Cloud\NetworkServices\V1\HttpRoute\Destination

The destination the requests will be mirrored to. The weight of the destination will be ignored.

getDestination

The destination the requests will be mirrored to. The weight of the destination will be ignored.

Returns
Type Description
Google\Cloud\NetworkServices\V1\HttpRoute\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 Google\Cloud\NetworkServices\V1\HttpRoute\Destination
Returns
Type Description
$this