Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy.
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 on a percentage of requests before sending those requests to the
destination service. Similarly requests from clients can be aborted by for
a percentage of requests.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Network Services V1 API - Class Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy (v2.4.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.4.0 (latest)](/ruby/docs/reference/google-cloud-network_services-v1/latest/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy.\n\nThe specification for fault injection introduced into traffic to test the\nresiliency of clients to destination service failure. As part of fault\ninjection, when clients send requests to a destination, delays can be\nintroduced on a percentage of requests before sending those requests to the\ndestination service. Similarly requests from clients can be aborted by for\na percentage of requests. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #abort\n\n def abort() -\u003e ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort\n\n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Abort)) --- The specification for aborting to client requests.\n\n### #abort=\n\n def abort=(value) -\u003e ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort\n\n**Parameter**\n\n- **value** ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Abort)) --- The specification for aborting to client requests. \n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Abort)) --- The specification for aborting to client requests.\n\n### #delay\n\n def delay() -\u003e ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay\n\n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Delay)) --- The specification for injecting delay to client requests.\n\n### #delay=\n\n def delay=(value) -\u003e ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay\n\n**Parameter**\n\n- **value** ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Delay)) --- The specification for injecting delay to client requests. \n**Returns**\n\n- ([::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay](./Google-Cloud-NetworkServices-V1-GrpcRoute-FaultInjectionPolicy-Delay)) --- The specification for injecting delay to client requests."]]