actionSpring

disable_chaosmonkey

Disable Chaos Monkey on a specific service

Activity as code

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

Typeaction
Modulechaosspring.actions
Namedisable_chaosmonkey
Returnstring

Usage

JSON

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

YAML

name: disable-chaosmonkey
provider:
  arguments:
    base_url: ""
  func: disable_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 disable_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