probeNetwork

get_network_fault

Get a network fault

Activity as code

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

Typeprobe
Modulechaosk8s.chaosmesh.network.probes
Nameget_network_fault
Returnmapping

Usage

JSON

{
  "name": "get-network-fault",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosk8s.chaosmesh.network.probes",
    "func": "get_network_fault",
    "arguments": {
      "name": ""
    }
  }
}

YAML

name: get-network-fault
provider:
  arguments:
    name: ''
  func: get_network_fault
  module: chaosk8s.chaosmesh.network.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
namestringYesNameName of a particular network fault
nsstringdefaultNoNamespaceNamespace where to get the fault from

Signature

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