probeCPU, Memory

get_stressor

Get a stressor

Activity as code

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

Typeprobe
Modulechaosk8s.chaosmesh.stress.probes
Nameget_stressor
Returnmapping

Usage

JSON

{
  "name": "get-stressor",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosk8s.chaosmesh.stress.probes",
    "func": "get_stressor"
  }
}

YAML

name: get-stressor
provider:
  func: get_stressor
  module: chaosk8s.chaosmesh.stress.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
namestringYesNameName of a particular stressor
nsstringdefaultNoNamespaceNamespace where to get the stressor from

Signature

def get_stressor(name: str,
                 ns: str = 'default',
                 secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass