Skip to main content

Alarm Actions for AWS CloudWatch CDK library

Project description

CloudWatch Alarm Actions library

---

End-of-Support

AWS CDK v1 has reached End-of-Support on 2023-06-01. This package is no longer being updated, and users should migrate to AWS CDK v2.

For more information on how to migrate, see the Migrating to AWS CDK v2 guide.


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.204.0.tar.gz (31.4 kB view details)

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for aws-cdk.aws-cloudwatch-actions-1.204.0.tar.gz
Algorithm Hash digest
SHA256 93030b786c2eb4ea8d07fdd503585f098965e617d57804fbe7434d11b7634e96
MD5 428d34a7cfdd3427097a91c121845b16
BLAKE2b-256 f2a7c45c2f498eb4f2ae2d71fca7eb9841de5bc1c83c7467bff5eed896c51f8c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_cdk.aws_cloudwatch_actions-1.204.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e79fd500a83ec7415cfcd5d50093a76b591bb3a1cba16d56836783266c6b6388
MD5 a6b2094dc0f23535bdedf9061e8df56c
BLAKE2b-256 1a7c32d5bcd9890801307a564b0641ceb9c7f020667b06820ec82ce352240966

See more details on using hashes here.

Supported by

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