actionProxy

create_slicer_toxic

Slices TCP data up into small bits, optionally adding a delay between each sliced "packet" with a toxicity of 100%

Activity as code

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

Typeaction
Modulechaostoxi.toxic.actions
Namecreate_slicer_toxic
Returnmapping

Usage

JSON

{
  "name": "create-slicer-toxic",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaostoxi.toxic.actions",
    "func": "create_slicer_toxic",
    "arguments": {
      "for_proxy": "",
      "toxic_name": "",
      "average_size": 0,
      "size_variation": 0,
      "delay": 0
    }
  }
}

YAML

name: create-slicer-toxic
provider:
  arguments:
    average_size: 0
    delay: 0
    for_proxy: ""
    size_variation: 0
    toxic_name: ""
  func: create_slicer_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
average_sizeintegerYesAverage SliceAverage slice of the TCP chunks
size_variationintegerYesSize VariationVariation of the slices size
delayintegerYesdelayDelay between sliced packets

Signature

def create_slicer_toxic(
        for_proxy: str,
        toxic_name: str,
        average_size: int,
        size_variation: int,
        delay: int,
        configuration: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass