Class: Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicyDelay
- Inherits:
-
Object
- Object
- Google::Apis::NetworkservicesV1beta1::HttpRouteFaultInjectionPolicyDelay
- 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
Specification of how client requests are delayed as part of fault injection before being sent to a destination.
Instance Attribute Summary collapse
-
#fixed_delay ⇒ String
Specify a fixed delay before forwarding the request.
-
#percentage ⇒ Fixnum
The percentage of traffic on which delay will be injected.
Instance Method Summary collapse
-
#initialize(**args) ⇒ HttpRouteFaultInjectionPolicyDelay
constructor
A new instance of HttpRouteFaultInjectionPolicyDelay.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ HttpRouteFaultInjectionPolicyDelay
Returns a new instance of HttpRouteFaultInjectionPolicyDelay.
1450 1451 1452 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1450 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fixed_delay ⇒ String
Specify a fixed delay before forwarding the request.
Corresponds to the JSON property fixedDelay
1442 1443 1444 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1442 def fixed_delay @fixed_delay end |
#percentage ⇒ Fixnum
The percentage of traffic on which delay will be injected. The value must be
between [0, 100]
Corresponds to the JSON property percentage
1448 1449 1450 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1448 def percentage @percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1455 1456 1457 1458 |
# File 'lib/google/apis/networkservices_v1beta1/classes.rb', line 1455 def update!(**args) @fixed_delay = args[:fixed_delay] if args.key?(:fixed_delay) @percentage = args[:percentage] if args.key?(:percentage) end |