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 for connections, operations, or requests that is 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 from 200 to 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.
9147 9148 9149 9150 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 9147 class HttpFaultAbort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#percentage ⇒ ::Float
Returns The percentage of traffic for connections, operations, or requests that is aborted as part of fault injection. The value must be from 0.0 to 100.0 inclusive.
9147 9148 9149 9150 |
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 9147 class HttpFaultAbort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |