Compute V1 Client - Class HttpFaultInjection (2.5.0) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Compute V1 Client class HttpFaultInjection.
The specification for fault injection introduced into traffic to testthe resiliency of clients to backend service failure. As part of faultinjection, when clients send requests to a backend service, delays can beintroduced by the load balancer on a percentage of requests before sendingthose request to the backend service. Similarly requests from clients can beaborted by the load balancer for a percentage of requests.
Generated from protobuf messagegoogle.cloud.compute.v1.HttpFaultInjection
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ abort | HttpFaultAbortThe specification for how client requests are aborted as part of fault injection. |
↳ delay | HttpFaultDelayThe 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 faultinjection.
| Returns | |
|---|---|
| Type | Description |
HttpFaultAbort|null | |
hasAbort
clearAbort
setAbort
The specification for how client requests are aborted as part of faultinjection.
| Parameter | |
|---|---|
| Name | Description |
var | HttpFaultAbort |
| Returns | |
|---|---|
| Type | Description |
$this | |
getDelay
The specification for how client requests are delayed as part of faultinjection, before being sent to a backend service.
| Returns | |
|---|---|
| Type | Description |
HttpFaultDelay|null | |
hasDelay
clearDelay
setDelay
The specification for how client requests are delayed as part of faultinjection, before being sent to a backend service.
| Parameter | |
|---|---|
| Name | Description |
var | HttpFaultDelay |
| Returns | |
|---|---|
| Type | Description |
$this | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-23 UTC.