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.147.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6495210cb009dac8ab9c503962edcf90075e7a78855010d394c4aee2e8f13ebc |
|
MD5 | 5ec0ca7cd87ec6dbe6485e6ff690948e |
|
BLAKE2b-256 | 4a15986bd81f1b4aaaa7ee86349e0f7d5eb695c0270e74a70593d33e0cf39c19 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.147.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e784a559a29ac8c328acfc89bf3ca51d9104d08c501047e1fc8d0dae1784829b |
|
MD5 | c6d66c71576b8bdd7fa70c805152b1f8 |
|
BLAKE2b-256 | e167d67403179b5090ef0afe08f22811dc81e1bfdd5c444be72c6cdc16b0ce7f |