Alarm Actions for AWS CloudWatch CDK library
Project description
CloudWatch Alarm Actions library
---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
Built Distribution
Close
Hashes for aws-cdk.aws-cloudwatch-actions-1.176.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d3729b430138b34bf8bf107c913a89b05c67f95ca145021705076dc373792ba4 |
|
MD5 | c1ba9d3b158fcd96fccfc1c8dd643165 |
|
BLAKE2b-256 | 8b8450a2c4e2b856fce01720ecee6a9078d93120f01725d08d352ed0ffcf1a75 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.176.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 70daa05db6ec1a42df3c1df02149c56f1a29a78bbca2328d12fd01b300b1208d |
|
MD5 | a9f2f21ea0a34902ae5f6f38aaf2c6fe |
|
BLAKE2b-256 | 65a3670723fc199dc7422dd706aed7e009bfd9af68d9704dcf504ce6cb716f9a |