Delay class
Delay specification is used to inject latency into the request forwarding path. The following example will introduce a 5 second delay in 1 out of every 1000 requests to the “v1” version of the “reviews” service from all pods with label env: prod.
The fixedDelay field is used to indicate the amount of delay in seconds. The optional percentage field can be used to only delay a certain percentage of requests. If left unspecified, all request will be delayed.
Constructors
Properties
- fixedDelay → Duration?
-
Add a fixed delay before forwarding the request. Format: 1h/1m/1s/1ms. MUST be >=1ms.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- percent → int?
-
Percentage of requests on which the delay will be injected (0-100).
Use of integer percent value is deprecated.
final
- percentage → Percent?
-
Percentage of requests on which the delay will be injected.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited