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.184.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12b2d8422c9300b9a06bb17a9b3a7a025beb6f9a98ce0435e33ed6a1cd98bb6f |
|
MD5 | 06e385e55f8f41250c193a135d4842f2 |
|
BLAKE2b-256 | 068f2ec3f114632241974bcc9615055bdfbc3bdfec19c08b6bd31a77faed97fb |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.184.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 089ab3d807d8144d8c6f1f7b32f5e0e8d2d0d34458ec24dca0726fd18cbf25c4 |
|
MD5 | 43da9dabfcc1615ba581dcfd91174f1b |
|
BLAKE2b-256 | 13368911791c4279914b8007cd1d08506f87a63ccde340ac5785229a16d81d13 |