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.173.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f7559deeeb7ad8bec5d9534dd415fd2725bb3fd1f445a74a3cbe5f723a018061 |
|
MD5 | 7b71a89eab11f9109bbd5f9d8c4346b4 |
|
BLAKE2b-256 | fb76a39c7c1c9ce0868ef2cff64af0096907223d62f6cbfca8203facef25cadc |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.173.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f691c7fb6df7b4745b4b6e8a0a9436027716d524d2b261feb4896a8d5adbbd2b |
|
MD5 | 405b687f72df9776bdc3899070459bd6 |
|
BLAKE2b-256 | aaf8caeb13cb0b0b106767951aad6fb1bb91f80c68aa1c61295f36f5145c5876 |