Reference documentation and code samples for the Google Cloud Compute V1 API class Google::Cloud::Compute::V1::HttpFaultDelay.
Specifies the delay introduced by the load balancer before forwarding the request to the backend service as part of fault injection.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#fixed_delay
def fixed_delay() -> ::Google::Cloud::Compute::V1::Duration
Returns
- (::Google::Cloud::Compute::V1::Duration) — Specifies the value of the fixed delay interval.
#fixed_delay=
def fixed_delay=(value) -> ::Google::Cloud::Compute::V1::Duration
Parameter
- value (::Google::Cloud::Compute::V1::Duration) — Specifies the value of the fixed delay interval.
Returns
- (::Google::Cloud::Compute::V1::Duration) — Specifies the value of the fixed delay interval.
#percentage
def percentage() -> ::Float
Returns
- (::Float) — The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
#percentage=
def percentage=(value) -> ::Float
Parameter
- value (::Float) — The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
Returns
- (::Float) — The percentage of traffic for connections, operations, or requests for which a delay is introduced as part of fault injection. The value must be from 0.0 to 100.0 inclusive.