Fault Injection Configuration
Parameters
See plugin common configurations for configuration options available to all plugins.
-
abort—object· optionalAbort action configurations.
-
http_status—integer· requiredValid values: greater than or equal to 200
Response HTTP status code to return to client.
-
body—string· optionalBody of the response returned to the client. Support the use of built-in variables in the body.
-
headers—object· optionalHeaders of the response returned to the client. Support the use of built-in variables in headers.
-
percentage—integer· optionalValid values: between 0 and 100 inclusive
Percentage of requests to be aborted.
-
vars—array[array]· optionalAn array of one or more matching conditions in the form of APISIX expressions to conditionally execute the plugin.
-
-
delay—object· optionalDelay action configurations.
-
duration—number· requiredDelay duration in seconds.
-
percentage—integer· optionalValid values: between 0 and 100 inclusive
Percentage of requests to be delayed.
-
vars—array[array]· optionalAn array of one or more matching conditions in the form of APISIX expressions to conditionally execute the plugin.
-