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.196.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8317436961cd46bf49513cf88af0b1e4f02a933d6d5262ddd62730ebe173035b |
|
MD5 | ffb2b4bd837abd23e2d0a88b6bfb15e2 |
|
BLAKE2b-256 | 7c328c73c5e5dcd3b45fa400f41d1a15f24feb56141d22ad0429678ea161a988 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.196.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12ee1c7a359cb96c0e5a56d5b5cfe4ea4349730b59ad4899c766919f574a74fc |
|
MD5 | 6933a6eaac160b5537abff873b564e21 |
|
BLAKE2b-256 | d70711a906ae30b3316bb746a9fe5d1b81c4260636ef7df6f8427d99a6376a60 |