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.177.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d9c3522260347659524e299439d80b384bbac6c569bbd30d1c63e30aa5a31a9a |
|
MD5 | 27b28b4cf21cfead6ca6cba7beab776f |
|
BLAKE2b-256 | b99eaad49c339beb4be86309349c91da0d5d4dd462073293eac07fc179632ddd |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.177.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f9a564f021971a20eb342c78fac7a8c1848fcdbd3bf6ef1d9fd34ac11e8bacee |
|
MD5 | c4ebdd2db2d6e72f55645b72c3038666 |
|
BLAKE2b-256 | 5052c5f75782742d48109afe9eb068838eb1a714286e6d18402949391d643177 |