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.152.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ddea92a12a97ea43a2efa77c759a4a8a0e0156dc58ef8c46ce9721ca48f3a8a |
|
MD5 | 6207b2a593bbb394ca8d990477257b94 |
|
BLAKE2b-256 | e59839eb92a94841ea683dff8e3552af984d3500d53c3939f6b7b4adc723c670 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.152.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd917c5981d5bb3b52050b7e4e38b2eceb2b283a867d9c708516d9ded56b6c6 |
|
MD5 | 1fffaae31d5d7e5638a428b9979e34b1 |
|
BLAKE2b-256 | 6f5f70e9a431b33f9fe0c5f7707debf13d06e3d7edb7070fdeff46c69217d9eb |