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
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\Duration|null |
hasFixedDelay
clearFixedDelay
setFixedDelay
Specifies the value of the fixed delay interval.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\Duration
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
float
|
Returns | |
---|---|
Type | Description |
$this |