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.171.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 808e7ddb67e4b10a19532318930a6e2a6806c64fed5567755a30d7925f616f04 |
|
MD5 | 701f09498f4878da3d5d65f3ac529f30 |
|
BLAKE2b-256 | 7c51371965b763475b56cc84d391e9f831e46d8582c6a00cdf355e1ed7d1f41c |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.171.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 715459d852a538b4c18d86151c43670ac12a3f60d0644de7189155c7a041d95e |
|
MD5 | 94802d222c643a68f420a63791764d5e |
|
BLAKE2b-256 | 53b4f8e8a2377066eda1d2fd4465f9cd3bd133aeb69a7537da26d479f5b0bcba |