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.181.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd96c3307a079b9408bc36116495da9682ec616ed18aa4e2c5c831761966751 |
|
MD5 | 3d2d8d7df7f91e5575a719083e572c22 |
|
BLAKE2b-256 | 908622063ff4ab2f3f4dcc96117a26e5aabf0d18efd546ea4c6e909eba5c4945 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.181.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2fbbbfed042812a1a431ded577cd77d2f549c5d0001ee77d28fdbf2373e996c7 |
|
MD5 | 627a3169f3db37ef18bd0026ed1d6fc2 |
|
BLAKE2b-256 | 97ab026e25a919c115600a2e3b924b4a1409c6fba735ee03e4ae234061159673 |