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.186.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 073e79b769c0d3bbfa11fdf4dce21768cbfcb4f0cb9f5ee654eaa6a0faed1225 |
|
MD5 | 2ea290e33ecfc05910f9b34c96b0ff52 |
|
BLAKE2b-256 | c6c62c5152f100255fba44af5d566cb5fb1722df208d179586074490e4255fcc |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.186.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0fb075860a402b3290d711b7a0b5d73e1aa235010768f53f56d7045d805d71 |
|
MD5 | 722134638b7a07aa61ef4081836c2234 |
|
BLAKE2b-256 | cd8efb9ddec57b9a7797d2ac76c6ee35ea9891b132e8b7d9ae1e074d71ff17a5 |