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.170.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | de29a93d50ddde4d88509c18e74b96086177ccb4b79212dcd124377c17785129 |
|
MD5 | c634ebb415609b9ce71ab54196fce489 |
|
BLAKE2b-256 | 7379f99b1d1e87c32ce4c45ce3c95f6d44937d508b65767e1b31d0ebda290d54 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.170.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37514cfa296c1d9a6b0b2d72eb36338d681ad38bb25a5f5d418e965c3a45d77a |
|
MD5 | 5b92767a8e7a43d524759bcbda70c41e |
|
BLAKE2b-256 | 231cf28a2516d96c2d370ca83735f585be56f8fea783120a250b1d2426e4c0ae |