actionSpring

enable_chaosmonkey

Enable Chaos Monkey on a specific service

Activity as code

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

Typeaction
Modulechaosspring.actions
Nameenable_chaosmonkey
Returnstring

Usage

JSON

{
  "name": "enable-chaosmonkey",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosspring.actions",
    "func": "enable_chaosmonkey",
    "arguments": {
      "base_url": ""
    }
  }
}

YAML

name: enable-chaosmonkey
provider:
  arguments:
    base_url: ""
  func: enable_chaosmonkey
  module: chaosspring.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
base_urlstringYesBase URLURL of the Chaos Monkery service
headersmappingnullNoHeadersHeaders to pass to the call
timeoutnumbernullNoTimeoutCall must suceeed within this timeout period

Signature

def enable_chaosmonkey(base_url: str,
                       headers: Dict[str, Any] = None,
                       timeout: float = None,
                       configuration: Dict[str, Dict[str, str]] = None,
                       secrets: Dict[str, Dict[str, str]] = None) -> str:
    pass