probeSpring

chaosmonkey_enabled

Enquire whether Chaos Monkey is enabled on the specified service

Activity as code

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

Typeprobe
Modulechaosspring.probes
Namechaosmonkey_enabled
Returnboolean

Usage

JSON

{
  "name": "chaosmonkey-enabled",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosspring.probes",
    "func": "chaosmonkey_enabled",
    "arguments": {
      "base_url": ""
    }
  }
}

YAML

name: chaosmonkey-enabled
provider:
  arguments:
    base_url: ""
  func: chaosmonkey_enabled
  module: chaosspring.probes
  type: python
type: probe

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 chaosmonkey_enabled(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) -> bool:
    pass