Google Cloud Network Services V1 Client - Class Delay (0.2.1)

Reference documentation and code samples for the Google Cloud Network Services V1 Client class Delay.

Specification of how client requests are delayed as part of fault injection before being sent to a destination.

Generated from protobuf message google.cloud.networkservices.v1.HttpRoute.FaultInjectionPolicy.Delay

Namespace

Google \ Cloud \ NetworkServices \ V1 \ HttpRoute \ FaultInjectionPolicy

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ fixed_delay Google\Protobuf\Duration

Specify a fixed delay before forwarding the request.

↳ percentage int

The percentage of traffic on which delay will be injected. The value must be between [0, 100]

getFixedDelay

Specify a fixed delay before forwarding the request.

Returns
Type Description
Google\Protobuf\Duration|null

hasFixedDelay

clearFixedDelay

setFixedDelay

Specify a fixed delay before forwarding the request.

Parameter
Name Description
var Google\Protobuf\Duration
Returns
Type Description
$this

getPercentage

The percentage of traffic on which delay will be injected.

The value must be between [0, 100]

Returns
Type Description
int

setPercentage

The percentage of traffic on which delay will be injected.

The value must be between [0, 100]

Parameter
Name Description
var int
Returns
Type Description
$this