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.198.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ae1af5dabcfc09232a9d00af54588b7c8862675b439559566ba4a1ce5fd1c5b9 |
|
MD5 | 8fbc71d0617b96d0e9a82053d6a37be1 |
|
BLAKE2b-256 | 0718c86c1bb4f997954839ebff6a2406fb67768aeadce767439b9dc5c97ff48e |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.198.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a6ca8af3a5dd3b72a9189a04dc052657d0c75c48771e4e207d2bfa9a959b3856 |
|
MD5 | 5a6cd318d75a94eba6222935e08570fd |
|
BLAKE2b-256 | 105025ee967021de6295a9c3b50854f4eb3a8444dd73fb4cd576843c89670928 |