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.164.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 86cd1a0d118eac18259de4ddec7c84f9783675a1ba553cfdccafd756996d3e13 |
|
MD5 | b54d3fcaddd608f2efa0be9e109c427d |
|
BLAKE2b-256 | 56837dbc2727b7a7c240e8330d8a29db05b506c39d83946cfe3f5e9bf639f85e |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.164.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 13287e78b5f44c6c081a94ed55641e3052013ffd2e8258a2f0d78b3b8ecc239c |
|
MD5 | 8946deb986b49dc3bb97aa8fded5fc34 |
|
BLAKE2b-256 | 8357ba17ea4630ac1131e20210ce905e03f68fa521f4d9f742ac8238c5ddd1ba |