# Class HttpFaultInjection (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

    HttpFaultInjection(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `abort` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.HttpFaultAbort` The specification for how client requests are aborted as part of fault injection. This field is a member of `oneof`_ `_abort`. |
| `delay` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.HttpFaultDelay` The specification for how client requests are delayed as part of fault injection, before being sent to a backend service. This field is a member of `oneof`_ `_delay`. |