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.186.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | fb48998b50f27712c090e4b0e17a0f71d6a68bd20e32af6ff6cec368cc84df18 |
|
MD5 | bdd668cf27ecbcda469048a9e8f00883 |
|
BLAKE2b-256 | f497f6742213694cd6d7b057ab6bd94e18b9b6af230ea933079a97eace011dd2 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.186.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b4502a17d0cd55c11c6e5456427be1843d5c5f774b074608216fe099975ad26 |
|
MD5 | 10ce6b3a51c11e29252df67e8b865de2 |
|
BLAKE2b-256 | 38761bdfdeccdec4859b55938bce2a02da44eca174c02ffb4dced8ec51c4a640 |