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.179.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 81615940b231700d986841d42b13d7cbfe1aae6c61665335edd2582b60be12f7 |
|
MD5 | 8650a0d553afdab79ea3b6bc92679f60 |
|
BLAKE2b-256 | c54ae221a05b8b8e81e03237c6059f55bd200d79fe26455fcbec4eabde5b0318 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.179.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b1365eef9a314187838e70d57d70c63972e4cab0ac87164667ce99c6161f13e |
|
MD5 | f2b2ccfda44bb0e38da6a8542e28d389 |
|
BLAKE2b-256 | ae1073070f93102188e1d98524278f95866619fd2660c6741dd672c50dc106e3 |