gRPC
A gRPC Fault describes the characteristics of the faults to be injected in the gRPC requests served by a target.
A gRPC fault is described by the following attributes:
Note
averageDelayanddelayVariationare applied to all requests affected by the fault, regardless of the value oferrorRate.statusCodeis returned only to a fraction of requests defined byerrorRate.
Example
This example defines a gRPC fault that introduces a delay of 50ms in all requests and returns a status code 13 in 10% of the requests.
const fault = {
averageDelay: '50ms',
statusCode: 10,
errorRate: 0.1,
};

