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.184.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7de3fce878b586e7e03a8da9501a13332497527f17df850a0ee0f49945d55d8 |
|
MD5 | dc3d3b6749da7c39cb2e7bea563e3f6f |
|
BLAKE2b-256 | 00282c358ee2f42bf9606e0adb2c278d0e5a99dbb119304684d9443850a032db |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.184.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 725169f5d9af9f2416d466e1ca38119a08559329647fb7aed5479449d16e0ff1 |
|
MD5 | 3c0635c38ee88ead91003313d8b5646f |
|
BLAKE2b-256 | c41ef256de07988337403537f6908c18f29ad6f587e23aaf668f634c13a31310 |