actionCluster

start_chaos

Start Chaos in your cluster

Activity as code

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

Typeaction
Modulechaosservicefabric.cluster.actions
Namestart_chaos
Returnmapping

Usage

JSON

{
  "name": "start-chaos",
  "type": "action",
  "provider": {
    "type": "python",
    "module": "chaosservicefabric.cluster.actions",
    "func": "start_chaos",
    "arguments": {
      "parameters": {}
    }
  }
}

YAML

name: start-chaos
provider:
  arguments:
    parameters: {}
  func: start_chaos
  module: chaosservicefabric.cluster.actions
  type: python
type: action

Arguments

NameTypeDefaultRequiredTitleDescription
parametersmappingYesParametersParameters to start the Chaos with
timeoutinteger60NoTimeoutCall timeout to start the Chaos in the cluster

The parameters argument is a mapping of keys as declared in the Service Fabric API: https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-v60-model-chaosparameters

Please see the chaosservicefabric.fabric.auth function help for more information on authenticating with the service.

Signature

def start_chaos(parameters: Dict[str, Any],
                timeout: int = 60,
                configuration: Dict[str, Dict[str, str]] = None,
                secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass