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.157.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a1e39a92562c4e3b165b41d9814629dc491713b45a2fa11902d8a22bb795a4e |
|
MD5 | 654d1a385c5db8c9b52927068e7a35c0 |
|
BLAKE2b-256 | 5fedabe3e6c2a0b8c33eae12c8d948c8984360c099ee118c71bdf7efd9742310 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.157.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1ff759360cb877065534c3da93bc6753e3876a0e2d4c24f1758b9318adb956b9 |
|
MD5 | 78b93dd3f8171cc676550a451933f335 |
|
BLAKE2b-256 | 9bd64c65aa1202fb42ac2eab38c7fe48ecfbf2cfcbde814d220b018c97e24c4e |