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.191.0.tar.gz (31.1 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.191.0.tar.gz.

File metadata

File hashes

Hashes for aws-cdk.aws-cloudwatch-actions-1.191.0.tar.gz
Algorithm Hash digest
SHA256 77a8fcd26ffe445d09db97e49e168bca557b05d482a8850264fa06d37d69e64b
MD5 c57b4125035ab465578da85aa5d9caea
BLAKE2b-256 29418ad7f25a71fa540a9f98dbb8f5c891ae29c87761214243f83d6298083dcf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for aws_cdk.aws_cloudwatch_actions-1.191.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6ed20937cfc472b51d200b68e7e00bfd38f11f0aed59daca36a353048c3ac1eb
MD5 c9e6ee6ed8cb1476f025c1f4c8ea3d12
BLAKE2b-256 19f73da6dd50291600e45b2260af5f11fe8897f44016464f48a435ca8215bd19

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