actionProxy

create_bandwith_degradation_toxic

Limit the bandwidth of a downstream connection with a toxicity of 100%

Activity as code

Below are the details and signature of the activity Python module.

Typeaction
Modulechaostoxi.toxic.actions
Namecreate_bandwith_degradation_toxic
Returnmapping

Usage

JSON

{
  "name": "create-bandwith-degradation-toxic",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaostoxi.toxic.actions",
    "func": "create_bandwith_degradation_toxic",
    "arguments": {
      "for_proxy": "",
      "toxic_name": "",
      "rate": 0
    }
  }
}

YAML

name: create-bandwith-degradation-toxic
provider:
  arguments:
    for_proxy: ""
    rate: 0
    toxic_name: ""
  func: create_bandwith_degradation_toxic
  module: chaostoxi.toxic.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
for_proxystringYesTarget ProxyProxy to add toxic to
toxic_namestringYesToxic NameName of the toxic to add
rateintegerYesRateBandwidth limit rate

Signature

def create_bandwith_degradation_toxic(
        for_proxy: str,
        toxic_name: str,
        rate: int,
        configuration: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass