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.158.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2e3b9cd4dd90c6e0b244cd386d31f81ae372db2c153ea7d7c7867368db531ce |
|
MD5 | 5b33a22d9933d0808710fd6dfdf8c730 |
|
BLAKE2b-256 | 41bb6b4da70316a48f625027a80c91d1ef2e3dbd98dffa3b9df694ba315f3653 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.158.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec375612dcdb9069ace93ce22173e22909f663322e13709b288f9fcb71a800be |
|
MD5 | 0da2e53dbf66e3f779101ce553721ba8 |
|
BLAKE2b-256 | e3386178b7a3a56ec15af55fda0049a33da4bddd18211738770ef75d1e463512 |