probeProxy

get_proxy_attribute

Returns an attribute of a specified proxy

Activity as code

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

Typeaction
Modulechaostoxi.proxy.actions
Nameenable_proxy
Returnstr

Usage

JSON

{
  "name": "get-proxy-attribute",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaostoxi.proxy.probes",
    "func": "get_proxy_attribute",
    "arguments": {
      "proxy_name": "",
      "attribute": ""
    }
  }
}

YAML

name: get-proxy-attribute
provider:
  arguments:
    attribute: ""
    proxy_name: ""
  func: get_proxy_attribute
  module: chaostoxi.proxy.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
proxy_namestringYesProxy NameName of the proxy
attributestringYesAttributeName of the attribute to fetch a value for

Signature

def get_proxy_attribute(proxy_name: str,
                        attribute: str,
                        configuration: Dict[str, Dict[str, str]] = None) -> str:
    pass