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.172.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34b6997e6b79e8531d224caa227950a654b14a315db8722ecf88ba28f6b1ceeb |
|
MD5 | 8dc24925a0b9627d021724f8e05eb761 |
|
BLAKE2b-256 | bd2844e08ba84e4cd8d9df490198c624b2b23d01ba310b18de63f521308246b4 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.172.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91a30d607e5d87a5647708a1baea0a2ca3232e1a0658eb41aa8ea30b9dee6b0d |
|
MD5 | 444084f16044a07c7f84366e88a9b40f |
|
BLAKE2b-256 | 58b40986acb1d1e64d6d5fd814487fa8319e16d0fd1a61bc8211265f98b36892 |