Reference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Delay.
Specification of how client requests are delayed as part of fault
injection before being sent to a destination.
[[["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::HttpRoute::FaultInjectionPolicy::Delay (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-HttpRoute-FaultInjectionPolicy-Delay)\n- [2.3.0](/ruby/docs/reference/google-cloud-network_services-v1/2.3.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [2.2.0](/ruby/docs/reference/google-cloud-network_services-v1/2.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [2.1.0](/ruby/docs/reference/google-cloud-network_services-v1/2.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [2.0.1](/ruby/docs/reference/google-cloud-network_services-v1/2.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [1.2.0](/ruby/docs/reference/google-cloud-network_services-v1/1.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [1.1.0](/ruby/docs/reference/google-cloud-network_services-v1/1.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [1.0.1](/ruby/docs/reference/google-cloud-network_services-v1/1.0.1/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [0.2.0](/ruby/docs/reference/google-cloud-network_services-v1/0.2.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay)\n- [0.1.0](/ruby/docs/reference/google-cloud-network_services-v1/0.1.0/Google-Cloud-NetworkServices-V1-HttpRoute-FaultInjectionPolicy-Delay) \nReference documentation and code samples for the Network Services V1 API class Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Delay.\n\nSpecification of how client requests are delayed as part of fault\ninjection before being sent to a destination. \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### #fixed_delay\n\n def fixed_delay() -\u003e ::Google::Protobuf::Duration\n\n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Specify a fixed delay before forwarding the request.\n\n### #fixed_delay=\n\n def fixed_delay=(value) -\u003e ::Google::Protobuf::Duration\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Specify a fixed delay before forwarding the request. \n**Returns**\n\n- ([::Google::Protobuf::Duration](./Google-Protobuf-Duration)) --- Specify a fixed delay before forwarding the request.\n\n### #percentage\n\n def percentage() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- The percentage of traffic on which delay will be injected.\n\n The value must be between \\[0, 100\\]\n\n### #percentage=\n\n def percentage=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- The percentage of traffic on which delay will be injected.\n\n\nThe value must be between \\[0, 100\\] \n**Returns**\n\n- (::Integer) --- The percentage of traffic on which delay will be injected.\n\n The value must be between \\[0, 100\\]"]]