probeASG

desired_equals_healthy

Returns if desired number matches the number of healthy instances for each of the auto-scaling groups

Activity as code

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

Typeprobe
Modulechaosaws.asg.probes
Namedesired_equals_healthy
Returnboolean

Usage

JSON

{
  "name": "desired-equals-healthy",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosaws.asg.probes",
    "func": "desired_equals_healthy",
    "arguments": {
      "asg_names": []
    }
  }
}

YAML

name: desired-equals-healthy
provider:
  arguments:
    asg_names: []
  func: desired_equals_healthy
  module: chaosaws.asg.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescription
asg_nameslistnullNoASG NamesOne or many ASG names as a JSON encoded list

Signature

def desired_equals_healthy(asg_names: List[str],
                           configuration: Dict[str, Dict[str, str]] = None,
                           secrets: Dict[str, Dict[str, str]] = None) -> bool:
    pass