Class: Google::Cloud::Compute::V1::HttpFaultAbort
- Inherits:
-
Object
- Object
- Google::Cloud::Compute::V1::HttpFaultAbort
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/compute/v1/compute.rb
Overview
Specification for how requests are aborted as part of fault injection.
Instance Attribute Summary collapse
-
#http_status ⇒ ::Integer
The HTTP status code used to abort the request.
-
#percentage ⇒ ::Float
The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection.
Instance Attribute Details
#http_status ⇒ ::Integer
Returns The HTTP status code used to abort the request. The value must be between 200 and 599 inclusive. For gRPC protocol, the gRPC status code is mapped to HTTP status code according to this mapping table. HTTP status 200 is mapped to gRPC status UNKNOWN. Injecting an OK status is currently not supported by Traffic Director.
8786 8787 8788 8789 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8786 class HttpFaultAbort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#percentage ⇒ ::Float
Returns The percentage of traffic (connections/operations/requests) which will be aborted as part of fault injection. The value must be between 0.0 and 100.0 inclusive.
8786 8787 8788 8789 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 8786 class HttpFaultAbort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |