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.156.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b5b4ab2ed947a0d469013a555a7ce5f41cb6e9349b8603e9ea475f3c31ed1f6b |
|
MD5 | b2ab1264016eb8f95b299c47cc9c9c81 |
|
BLAKE2b-256 | 947eb3cddb31f80770140c102a2f67338cfb38e54b24592a6718701d24a3eb04 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.156.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f9a1a59f050ebc6fb7f8aae34ea800398a62f26442452fc4c91eaab2939ea7 |
|
MD5 | 98a57f09883d8d6b45f1fccb2367983e |
|
BLAKE2b-256 | d70cdef653f37605a361bc9e740cf57c88f8068abb6dad088537d26457b9cfdc |