Class: Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
- Inherits:
-
Object
- Object
- Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/networkservices/v1/http_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 by client proxy on a percentage of requests before sending those requests to the destination service. Similarly requests can be aborted by client proxy for a percentage of requests.
Defined Under Namespace
Instance Attribute Summary collapse
-
#abort ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort
The specification for aborting to client requests.
-
#delay ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Delay
The specification for injecting delay to client requests.
Instance Attribute Details
#abort ⇒ ::Google::Cloud::NetworkServices::V1::HttpRoute::FaultInjectionPolicy::Abort
Returns The specification for aborting to client requests.
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 355 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::HttpRoute::FaultInjectionPolicy::Delay
Returns The specification for injecting delay to client requests.
355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 |
# File 'proto_docs/google/cloud/networkservices/v1/http_route.rb', line 355 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 |