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.199.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4b95b92472a95796b92e408960afb06f1945aaafd36bbe635ae83cc1deba1ced |
|
MD5 | e9970cedcad6b1d2bd2ce78bf707fbcb |
|
BLAKE2b-256 | fe185f1176376957cde481f21ca1bf4e505fcd4c571cac1ee4cc025637c42687 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.199.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96937e075ff13811c0f534f6aa9c92dea68680cbd7432618baeb6b5e29294550 |
|
MD5 | 65434f9ff07121b559bd8091e73cb91a |
|
BLAKE2b-256 | c98f94bad6926febbeb8729fe171a35c9d590db8711b083044307b763a2e1cca |