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.168.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 284334f80da4d17dfd1637848b96a969f04c9037770ee96213329a0d6d99b975 |
|
MD5 | 7681b698b09f6f903cc599644fc6c365 |
|
BLAKE2b-256 | 6cb7d7462d508b74b089805b57c4316df15e74a2bf6d380a6b7820ce47d96035 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.168.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecc53c83848cf3ccd32f1e57e6d76ead324623f579b2945a35326b56c6b2571f |
|
MD5 | 2d8674e864ccd46eeb9ad745f73215cf |
|
BLAKE2b-256 | 730ce0d1bfd63eeb47b1064596688e09d89c059f4f6f50731957752a2d4ba61c |