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.169.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea9e2dc4ec0301c052fabc59a85df163c93236c8588cb6f870327239f6453ef3 |
|
MD5 | 818f4cf8ada875f9ef95df0c3ddb7662 |
|
BLAKE2b-256 | eabe3400fc6d94fca41ecdaee1f6e623b97975a60f36a399733b06b91afb9bf0 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.169.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78c2255e5d5607013b2334c5bc6c49938f8e55e80f78378ff51f0582fd835c40 |
|
MD5 | 4ee0af3528ffb1680c3a74ee0341539b |
|
BLAKE2b-256 | 35a6f76ae221a55b7bd080fa290361778da096f93f9ba57bf1c084bf7b5d6c2d |