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.193.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b8454517e3d67fdcf652845da3ef8fe3a41bc017f69d331ea5c6bad4e784a3c |
|
MD5 | 506f3dbd4ab63cfb91057f5abbe50dae |
|
BLAKE2b-256 | c6be3985544cefb5b99f7d9565d3bb62910c90b54a81c34b9349fef4a75e4f63 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.193.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53072a009fd958c2265808342fdbdf71ea93c0cbf47e1dee0b720075d04f4765 |
|
MD5 | 1c39f7d16ce8d8c48a64ee07cfc30f67 |
|
BLAKE2b-256 | 3a33b96f87719e4835a99319b3b78b9c566361a46007de53ce219516f4229051 |