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.170.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87167f9acf2a93d2cb4e9965bee93520d8778768a0c9a47fe009a65160bda98f |
|
MD5 | 73603f7a20360898898c686e0258e36b |
|
BLAKE2b-256 | 84cf34f397b483d9fb7c08c952f4e5c22081045dca7909b6cb261e29f84fd666 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.170.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7642a794cf3b67e13415a734ba5e9977e2567541045b08a636f9c619decfddbc |
|
MD5 | 5ef44bf9b6dfce923b039fbb4136e2ff |
|
BLAKE2b-256 | 9d15356422d2ce1b797d7550f731303ced277112181de0334128fe5e677ee093 |