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.180.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6f9a1b1461da85cae3f2d43270a320067b99240230e49e927c4fad20e3661fd3 |
|
MD5 | 5b0db85fccc89bd70ad6aff6b5964ea9 |
|
BLAKE2b-256 | 4d3553f3c91c702548ea300ce55aa776cf35e5cf2d53c4a54962c04351c4f9d6 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.180.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b352fb7833ee2e826c64f2e95702a2fd1062184dac40a1d8125b8f441fd021c |
|
MD5 | 9c2eba0b511c1e7579b4808921337a8f |
|
BLAKE2b-256 | a9bc2ea2dd46364ad12d0d602c796d11b7d8be6ba8eb1bddec672d588566a700 |