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.192.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad3c691a52e972cb74294e4f43a713a3117f0726c07f1cecdc122b23a8fc9563 |
|
MD5 | a7ae5231b9ecef6d5594da831c84fabd |
|
BLAKE2b-256 | 7e4d1b1f6b0d99cd74aaf0705bebeb509613977f6cce90fd15f4fde0c9bf1646 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.192.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f294978ed7c0516e37ab0f034c69e89bb48461aa3a09b7061cada14da3b9e940 |
|
MD5 | 78c0daea1ac0bbb0564a56970e2268c5 |
|
BLAKE2b-256 | fa4607eb77a108dea91935bf8c6c784a2f492c29eb8a97fc89966cf8ee0c317d |