Class: Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networkservices/v1/grpc_route.rb
Overview
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.
Defined Under Namespace
Instance Attribute Summary collapse
-
#abort ⇒ ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort
The specification for aborting to client requests.
-
#delay ⇒ ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay
The specification for injecting delay to client requests.
Instance Attribute Details
#abort ⇒ ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Abort
Returns The specification for aborting to client requests.
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 222 class FaultInjectionPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification of how client requests are delayed as part of fault # injection before being sent to a destination. # @!attribute [rw] fixed_delay # @return [::Google::Protobuf::Duration] # Specify a fixed delay before forwarding the request. # @!attribute [rw] percentage # @return [::Integer] # The percentage of traffic on which delay will be injected. # # The value must be between [0, 100] class Delay include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specification of how client requests are aborted as part of fault # injection before being sent to a destination. # @!attribute [rw] http_status # @return [::Integer] # The HTTP status code used to abort the request. # # The value must be between 200 and 599 inclusive. # @!attribute [rw] percentage # @return [::Integer] # The percentage of traffic which will be aborted. # # The value must be between [0, 100] class Abort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#delay ⇒ ::Google::Cloud::NetworkServices::V1::GrpcRoute::FaultInjectionPolicy::Delay
Returns The specification for injecting delay to client requests.
222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 |
# File 'proto_docs/google/cloud/networkservices/v1/grpc_route.rb', line 222 class FaultInjectionPolicy include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # Specification of how client requests are delayed as part of fault # injection before being sent to a destination. # @!attribute [rw] fixed_delay # @return [::Google::Protobuf::Duration] # Specify a fixed delay before forwarding the request. # @!attribute [rw] percentage # @return [::Integer] # The percentage of traffic on which delay will be injected. # # The value must be between [0, 100] class Delay include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end # Specification of how client requests are aborted as part of fault # injection before being sent to a destination. # @!attribute [rw] http_status # @return [::Integer] # The HTTP status code used to abort the request. # # The value must be between 200 and 599 inclusive. # @!attribute [rw] percentage # @return [::Integer] # The percentage of traffic which will be aborted. # # The value must be between [0, 100] class Abort include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |