Class: Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicy
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicy
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkservices_v1beta1/classes.rb,
lib/google/apis/networkservices_v1beta1/representations.rb,
lib/google/apis/networkservices_v1beta1/representations.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.
Instance Attribute Summary collapse
-
#abort ⇒ Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicyAbort
Specification of how client requests are aborted as part of fault injection before being sent to a destination.
-
#delay ⇒ Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicyDelay
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GrpcRouteFaultInjectionPolicy
constructor
A new instance of GrpcRouteFaultInjectionPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GrpcRouteFaultInjectionPolicy
Returns a new instance of GrpcRouteFaultInjectionPolicy.
837 838 839 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 837 def initialize(**args) update!(**args) end |
Instance Attribute Details
#abort ⇒ Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicyAbort
Specification of how client requests are aborted as part of fault injection
before being sent to a destination.
Corresponds to the JSON property abort
829 830 831 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 829 def abort @abort end |
#delay ⇒ Google::Apis::NetworkservicesV1beta1::GrpcRouteFaultInjectionPolicyDelay
Specification of how client requests are delayed as part of fault injection
before being sent to a destination.
Corresponds to the JSON property delay
835 836 837 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 835 def delay @delay end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
842 843 844 845 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 842 def update!(**args) @abort = args[:abort] if args.key?(:abort) @delay = args[:delay] if args.key?(:delay) end |