Skip to content

Extension chaosazure

Version 0.2.0
Repository https://github.com/chaostoolkit-incubator/chaostoolkit-azure

N/A

Exported Activities

fabric


chaos_report

Type probe
Module chaosazure.fabric.probes
Name chaos_report
Return mapping

Get Chaos report using following the Service Fabric API:

https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-v60-model-chaosparameters

Please see the :func:chaosazure.fabric.auth help for more information on authenticating with the service.

Signature:

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

Arguments:

Name Type Default Required
timeout integer 60 No
start_time_utc string null No
end_time_utc string null No

Usage:

{
  "provider": {
    "module": "chaosazure.fabric.probes",
    "type": "python",
    "func": "chaos_report"
  },
  "type": "probe",
  "name": "chaos-report"
}
name: chaos-report
provider:
  func: chaos_report
  module: chaosazure.fabric.probes
  type: python
type: probe

start_chaos

Type action
Module chaosazure.fabric.actions
Name start_chaos
Return mapping

Start Chaos in your cluster using the given parameters. This 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 :func:chaosazure.fabric.auth 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

Arguments:

Name Type Default Required
parameters mapping Yes
timeout integer 60 No

Usage:

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

stop_chaos

Type action
Module chaosazure.fabric.actions
Name stop_chaos
Return mapping

Stop Chaos in your cluster.

Please see the :func:chaosazure.fabric.auth help for more information on authenticating with the service.

Signature:

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

Arguments:

Name Type Default Required
timeout integer 60 No

Usage:

{
  "provider": {
    "module": "chaosazure.fabric.actions",
    "type": "python",
    "func": "stop_chaos"
  },
  "type": "action",
  "name": "stop-chaos"
}
name: stop-chaos
provider:
  func: stop_chaos
  module: chaosazure.fabric.actions
  type: python
type: action

machine


count_machines

Type probe
Module chaosazure.machine.probes
Name count_machines
Return integer

Return count of Azure machines.

Signature:

def count_machines(configuration: Dict[str, Dict[str, str]] = None,
                   secrets: Dict[str, Dict[str, str]] = None) -> int:
    pass

Arguments:

Name Type Default Required

Usage:

{
  "provider": {
    "module": "chaosazure.machine.probes",
    "type": "python",
    "func": "count_machines"
  },
  "type": "probe",
  "name": "count-machines"
}
name: count-machines
provider:
  func: count_machines
  module: chaosazure.machine.probes
  type: python
type: probe

delete_machine

Type action
Module chaosazure.machine.actions
Name delete_machine
Return mapping

Delete machine randomly.

Signature:

def delete_machine(
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass

Arguments:

Name Type Default Required

Usage:

{
  "provider": {
    "module": "chaosazure.machine.actions",
    "type": "python",
    "func": "delete_machine"
  },
  "type": "action",
  "name": "delete-machine"
}
name: delete-machine
provider:
  func: delete_machine
  module: chaosazure.machine.actions
  type: python
type: action

describe_machines

Type probe
Module chaosazure.machine.probes
Name describe_machines
Return None

Describe Azure machines.

Signature:

def describe_machines(configuration: Dict[str, Dict[str, str]] = None,
                      secrets: Dict[str, Dict[str, str]] = None):
    pass

Arguments:

Name Type Default Required

Usage:

{
  "provider": {
    "module": "chaosazure.machine.probes",
    "type": "python",
    "func": "describe_machines"
  },
  "type": "probe",
  "name": "describe-machines"
}
name: describe-machines
provider:
  func: describe_machines
  module: chaosazure.machine.probes
  type: python
type: probe

poweroff_machine

Type action
Module chaosazure.machine.actions
Name poweroff_machine
Return mapping

Power off machine randomly.

Signature:

def poweroff_machine(
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass

Arguments:

Name Type Default Required

Usage:

{
  "provider": {
    "module": "chaosazure.machine.actions",
    "type": "python",
    "func": "poweroff_machine"
  },
  "type": "action",
  "name": "poweroff-machine"
}
name: poweroff-machine
provider:
  func: poweroff_machine
  module: chaosazure.machine.actions
  type: python
type: action

restart_machine

Type action
Module chaosazure.machine.actions
Name restart_machine
Return mapping

Restart machine randomly.

Signature:

def restart_machine(
        configuration: Dict[str, Dict[str, str]] = None,
        secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass

Arguments:

Name Type Default Required

Usage:

{
  "provider": {
    "module": "chaosazure.machine.actions",
    "type": "python",
    "func": "restart_machine"
  },
  "type": "action",
  "name": "restart-machine"
}
name: restart-machine
provider:
  func: restart_machine
  module: chaosazure.machine.actions
  type: python
type: action