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.150.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29d1f0d85f75dee2bb542fadab3054793abc97f98d9d8d3f5d1b5f129d23aaca |
|
MD5 | a76ab47176a15c62879e7d3cdc0a0e45 |
|
BLAKE2b-256 | 5c59af18de5e172d30b4eac1d8b72703e668b217d34f61b20053f70632deb67e |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.150.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91703f6fd595915ffd629ef37df87ebc6977081acc491fb2695b62bed6e29575 |
|
MD5 | 07c190dd7c0999067e76f3b727247bae |
|
BLAKE2b-256 | cd130ccb26e6944f9a8221262b412fca555a18ef1b3c9a3f641932df6a44ce27 |