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.143.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.143.0.tar.gz.

File metadata

  • Download URL: aws-cdk.aws-cloudwatch-actions-1.143.0.tar.gz
  • Upload date:
  • Size: 28.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.5

File hashes

Hashes for aws-cdk.aws-cloudwatch-actions-1.143.0.tar.gz
Algorithm Hash digest
SHA256 7157296c481555cd840fc31e495a7cacc5d95bcd598b8b9298cc34fd4f5bec01
MD5 d6a132aee0a7e0eec470250037418279
BLAKE2b-256 00efcbdb0531ca3db4254d0c981c52b33ca367521190fc4695b4f3de7b54dd10

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_cdk.aws_cloudwatch_actions-1.143.0-py3-none-any.whl
  • Upload date:
  • Size: 28.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.3 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.6.5

File hashes

Hashes for aws_cdk.aws_cloudwatch_actions-1.143.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3dbdcad22ca568e3b5203edcefa1b7f8a1af1c27707643152571bc058e84d5f
MD5 4047a020ac36f88efb481acea0bf231d
BLAKE2b-256 9482c4f2a78347a48ba1558f9cba1ed40757bb4b647599a562c51070ac4e42b6

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