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.183.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4a19ef8945af833b2400a760e8616c16c5f68033ce79c698cb757767efbf88b |
|
MD5 | 263bb418e179092e4214e8bdf98c0bea |
|
BLAKE2b-256 | 66ccdd09d10abaa7a072d23163470dc8bbc4ba959890766939e898c66bff3a91 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.183.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd25c35e21af7fc5a5110855e58a756a524fb901d7a5de71a9c9ff739714dead |
|
MD5 | c52a3706687f856cb31cab6b082fd814 |
|
BLAKE2b-256 | c802d9ba2d5b28d33d283d0001cce3a7acc1fa7d770e60696b447caec7fa85dd |