actionProxy

create_limiter_toxic

Closes connections when transmitted data after the limit, sets it up as a downstream, 100% toxicity

Activity as code

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

Typeaction
Modulechaostoxi.toxic.actions
Namecreate_limiter_toxic
Returnmapping

Usage

JSON

{
  "name": "create-limiter-toxic",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaostoxi.toxic.actions",
    "func": "create_limiter_toxic",
    "arguments": {
      "for_proxy": "",
      "toxic_name": "",
      "bytes_limit": 0
    }
  }
}

YAML

name: create-limiter-toxic
provider:
  arguments:
    bytes_limit: 0
    for_proxy: ""
    toxic_name: ""
  func: create_limiter_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
bytes_limitintegerYesBytes LimitLimit at which the connection should be closed

Signature

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