Compute V1 Client - Class HttpFaultDelay (1.9.1)

Reference documentation and code samples for the Compute V1 Client class HttpFaultDelay.

Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.

Generated from protobuf message google.cloud.compute.v1.HttpFaultDelay

Namespace

Google \ Cloud \ Compute \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ fixed_delay Google\Cloud\Compute\V1\Duration

Specifies the value of the fixed delay interval.

↳ percentage float

The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.

getFixedDelay

Specifies the value of the fixed delay interval.

Returns
TypeDescription
Google\Cloud\Compute\V1\Duration|null

hasFixedDelay

clearFixedDelay

setFixedDelay

Specifies the value of the fixed delay interval.

Parameter
NameDescription
var Google\Cloud\Compute\V1\Duration
Returns
TypeDescription
$this

getPercentage

The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.

Returns
TypeDescription
float

hasPercentage

clearPercentage

setPercentage

The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.

Parameter
NameDescription
var float
Returns
TypeDescription
$this