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.155.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad9c987e26c3c9224b976d35687768fe4ec3de74ef18f639f333bfedb151b420 |
|
MD5 | a62be55c8213824b7ef47d4495cbc98d |
|
BLAKE2b-256 | dda0897b3da022ea9db7f756e43107d649e462ca7c72fa299297b4e412a2c65c |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.155.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 45c8baf0409deec38a21c7291a1e3e2414457f0b916a0abef05a415af5eb7a1d |
|
MD5 | 8f747e360561f943ede0100dc2b5a30a |
|
BLAKE2b-256 | 77915f82c9c545996d048efa684a58969d86dca33138cbcbfea61516558e03fb |