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.197.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d06879305f65399498404f7781696094e6f3d9c255e0e669a3d8699c6f9c5be |
|
MD5 | 3704f859a45bfeb0f6853b320dae109d |
|
BLAKE2b-256 | 7196441832756b26e79ed5f248d7934ab4491b48eeb411a551d895a2033f2486 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.197.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 30730469c73072b99570ff4564b097871eebb6e1e0923445c1ec173e66c088fc |
|
MD5 | bac024097146982e3916774120d6ec6e |
|
BLAKE2b-256 | c77481a2a032f201925fd8465abdcdb6cd035dbec3516a5749209ab16a79b252 |