actionWiremock

global_random_delay

Adds a random delay to all mappings

Activity as code

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

Typeaction
Modulechaoswm.actions
Nameglobal_random_delay
Returninteger

Usage

JSON

{
  "name": "global-random-delay",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaoswm.actions",
    "func": "global_random_delay",
    "arguments": {
      "delayDistribution": null
    }
  }
}

YAML

name: global-random-delay
provider:
  arguments:
    delayDistribution: null
  func: global_random_delay
  module: chaoswm.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
delayDistributionobjectYesDelay DistributionDelay distribution to apply globally

Signature

def global_random_delay(
        delayDistribution: Mapping[str, Any],
        configuration: Dict[str, Dict[str, str]] = None) -> int:
    pass