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.174.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3948d55fe5d3e05f56db294e8cd6b3b102228da7a6055dee76413a68c56f34a9 |
|
MD5 | 5f8b5af27ece907cfeaa8ad2c32bfad8 |
|
BLAKE2b-256 | e5662929678d9f2bad53e38df982a4842003a4439233a37b5bcedd9bbb4f0ae7 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.174.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39f5579187949379215c74f9d2faf374ab357a3860d21b7ec88c9c9c3a7a8ca3 |
|
MD5 | 42ee492032fb813eedab415ba3d5f8d5 |
|
BLAKE2b-256 | 67d37c66749c3232897b8c316aadaa50f8df8f3aa227b5b11be2fc7b7593fc78 |