Skip to main content

Alarm Actions for AWS CloudWatch CDK library

Project description

CloudWatch Alarm Actions library

---

cdk-constructs: Stable


This library contains a set of classes which can be used as CloudWatch Alarm actions.

The currently implemented actions are: EC2 Actions, SNS Actions, SSM OpsCenter Actions, Autoscaling Actions and Application Autoscaling Actions

EC2 Action Example

# Alarm must be configured with an EC2 per-instance metric
# alarm: cloudwatch.Alarm

# Attach a reboot when alarm triggers
alarm.add_alarm_action(
    actions.Ec2Action(actions.Ec2InstanceAction.REBOOT))

SSM OpsCenter Action Example

# alarm: cloudwatch.Alarm

# Create an OpsItem with specific severity and category when alarm triggers
alarm.add_alarm_action(
    actions.SsmAction(actions.OpsItemSeverity.CRITICAL, actions.OpsItemCategory.PERFORMANCE))

See @aws-cdk/aws-cloudwatch for more information.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-cdk.aws-cloudwatch-actions-1.144.0.tar.gz (28.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file aws-cdk.aws-cloudwatch-actions-1.144.0.tar.gz.

File metadata

  • Download URL: aws-cdk.aws-cloudwatch-actions-1.144.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.5

File hashes

Hashes for aws-cdk.aws-cloudwatch-actions-1.144.0.tar.gz
Algorithm Hash digest
SHA256 a152f6e29b887e87b32b4f65e49bfb291fe4b4dbda509b1e741df10376f77274
MD5 1f2e1f2c890f1053db73944ee89cdae4
BLAKE2b-256 d14903834906e0a85d7cef01ce8c7ea6d564e508818c77c02e578903de82a5fb

See more details on using hashes here.

File details

Details for the file aws_cdk.aws_cloudwatch_actions-1.144.0-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk.aws_cloudwatch_actions-1.144.0-py3-none-any.whl
  • Upload date:
  • Size: 28.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.5

File hashes

Hashes for aws_cdk.aws_cloudwatch_actions-1.144.0-py3-none-any.whl
Algorithm Hash digest
SHA256 05c2d42a252a7575237082000cd304b3a07b6b39b31aa2ed09d085f13dbbc82c
MD5 2e74d0d39b36690c7496e93f4298ac3a
BLAKE2b-256 3bdd6b7e66d40640d8508b781ffd4383f2fb761d1c2225e1b4343b09c21ea8d8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page