Below is a list of the available actions you can use to configure Chaos Proxy. See the contrib docs for proxy actions for how to add more!
Sleep for n seconds before continuing to process the request.
- Action name:
sleep
- Params:
seconds (int)
Example:
name: sleep
params:
- seconds: 5
Sleep for a random interval between n and m seconds before continuing to process the request.
- Action name:
sleeprand
- Params:
from (int); to (int)
Example:
name: sleeprand
params:
- from: 1
- to: 10
Return an HTTP error with a custom message.
- Action name:
httperror
- Params:
code (int); status (str)
Example:
name: httperror
params:
- code: 500
- status: Internal Server Error