probeSpring

watcher_configuration

Get the current watcher configuration from the specified service

Activity as code

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

Typeprobe
Modulechaosspring.probes
Namewatcher_configuration
Returnmapping

Usage

JSON

{
  "name": "watcher-configuration",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosspring.probes",
    "func": "watcher_configuration",
    "arguments": {
      "base_url": ""
    }
  }
}

YAML

name: watcher-configuration
provider:
  arguments:
    base_url: ""
  func: watcher_configuration
  module: chaosspring.probes
  type: python
type: probe

Arguments

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

Signature

def watcher_configuration(
        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) -> Dict[str, Any]:
    pass