GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicy (google_api_network_services v0.11.0)

View Source

The specification for fault injection introduced into traffic to test the resiliency of clients to destination service failure. As part of fault injection, when clients send requests to a destination, delays can be introduced by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.

Attributes

  • abort (type: GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicyAbort.t, default: nil) - The specification for aborting to client requests.
  • delay (type: GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicyDelay.t, default: nil) - The specification for injecting delay to client requests.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicy{
  abort:
    GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicyAbort.t()
    | nil,
  delay:
    GoogleApi.NetworkServices.V1.Model.HttpRouteFaultInjectionPolicyDelay.t()
    | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.