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.149.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | c49b13848b786514bbfb48d5866a92403604c3354e618a453679e62c8738939c |
|
MD5 | 71c7228753aaf650ea5354220d273489 |
|
BLAKE2b-256 | 403d681bd1d792b15e15fa69507f846674fdb98c66d695a329b2b6702dfc5acd |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.149.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5cd66f7929eddf3bb0a9164369223bfbcd4853b9de829350a59065b8c9ed1d2 |
|
MD5 | 41f9ce9476dd91d56eee18ded9e4d032 |
|
BLAKE2b-256 | ef1e18a2e93220f1157bb289000dc2f4f51e88e0057529a5013fdc32b3766def |