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.167.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fc794af3e1692f9a4f03776eaac02f8907a2f2aac85c9aebb6beb045904a4273 |
|
MD5 | 4d22214acb2f9f118b049ef51d16d3eb |
|
BLAKE2b-256 | b7242c2a1615b3216aadb4ed93d3b740d68fbcbcd57e9d544c84821aebf345fa |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.167.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fa3a0e738aaf558f1790eda984265670687d10ac8b07f932f13805ed66cc24d4 |
|
MD5 | c3aeed20ed13f1d1a39ecef93ddeff7e |
|
BLAKE2b-256 | ed8d7da66c2a22d3ef381ce266728953f8e638b64388d4b63c75d7d5926c6957 |