ToxiProxy
create_toxic
Create any of the supported types of toxics with their attributes
Add a delay to all data going through the proxy using a downstream with a toxicity of 100%
Below are the details and signature of the activity Python module.
Type | action |
Module | chaostoxi.toxic.actions |
Name | create_latency_toxic |
Return | mapping |
Usage
JSON
{
"name": "create-latency-toxic",
"type": "action",
"provider": {
"type": "python",
"module": "chaostoxi.toxic.actions",
"func": "create_latency_toxic",
"arguments": {
"for_proxy": "",
"toxic_name": "",
"latency": 0
}
}
}
YAML
name: create-latency-toxic
provider:
arguments:
for_proxy: ''
latency: 0
toxic_name: ''
func: create_latency_toxic
module: chaostoxi.toxic.actions
type: python
type: action
Arguments
Name | Type | Default | Required |
---|---|---|---|
for_proxy | string | Yes | |
toxic_name | string | Yes | |
latency | integer | Yes | |
jitter | integer | 0 | No |
Signature
def create_latency_toxic(
for_proxy: str,
toxic_name: str,
latency: int,
jitter: int = 0,
configuration: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
pass