Reference documentation and code samples for the Compute V1 Client class HttpFaultInjection.
The specification for fault injection introduced into traffic to test the resiliency of clients to backend service failure. As part of fault injection, when clients send requests to a backend service, delays can be introduced by the load balancer on a percentage of requests before sending those request to the backend service. Similarly requests from clients can be aborted by the load balancer for a percentage of requests.
Generated from protobuf message google.cloud.compute.v1.HttpFaultInjection
Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ abort |
Google\Cloud\Compute\V1\HttpFaultAbort
The specification for how client requests are aborted as part of fault injection. |
↳ delay |
Google\Cloud\Compute\V1\HttpFaultDelay
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. |
getAbort
The specification for how client requests are aborted as part of fault injection.
Generated from protobuf field optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\HttpFaultAbort|null |
hasAbort
clearAbort
setAbort
The specification for how client requests are aborted as part of fault injection.
Generated from protobuf field optional .google.cloud.compute.v1.HttpFaultAbort abort = 92611376;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\HttpFaultAbort
|
Returns | |
---|---|
Type | Description |
$this |
getDelay
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
Generated from protobuf field optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
Returns | |
---|---|
Type | Description |
Google\Cloud\Compute\V1\HttpFaultDelay|null |
hasDelay
clearDelay
setDelay
The specification for how client requests are delayed as part of fault injection, before being sent to a backend service.
Generated from protobuf field optional .google.cloud.compute.v1.HttpFaultDelay delay = 95467907;
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Compute\V1\HttpFaultDelay
|
Returns | |
---|---|
Type | Description |
$this |