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

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