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.182.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 728c19eab06acba937f1b7a96b169133dd4797ebb34e1d066c47e91d611dca3d |
|
MD5 | 2035ee4fbe43a9f589217ca13e9f0076 |
|
BLAKE2b-256 | cf16ef1796ef85ec65a19663173dc6342d340bea83698d56cc615bf3fbf58afe |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.182.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9568eaacfb143de9daaa56d17815a7520ad8ef150fe784495aebf0ee07924f20 |
|
MD5 | a95dae945cfcb461820bacb70ba0318d |
|
BLAKE2b-256 | de62fcced2b6422159e91987cafafac3b4379600dbb8d44dd105466145b5b97a |