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.159.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1242c6103686b295151e581163af34d9e171168f4730a1b2886ea6699994936d |
|
MD5 | c3bc032e500ddaf8c59142a8c153635e |
|
BLAKE2b-256 | 3804671724b11dc15eb5649074d88aecb9a1e2faecefbddffb99576b33ed2e14 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.159.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e49064d1d4f9fe39d28a0eb4c87508c5cff40d82e79aac4a272bff182348396b |
|
MD5 | 8007c20a13682aecde4e874603241c37 |
|
BLAKE2b-256 | d77a8d8455ac2b8f106a8062dbf7866f826996c187bfbd27f81dcce142a2aca6 |