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.160.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | dfb4eb7ce9d94d0b3510a6abe8d85905ed0adf7caecfa07a183a61f3a0c73730 |
|
MD5 | 23d3ded0f5b2f6c34bcc386fb62ecd8e |
|
BLAKE2b-256 | 3e889de488684ef275700a1fd27ae4db34ddf5fb3ebb049059a4310c43a838de |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.160.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8368e9e449a99fdfe8a40e101b5d1df4d3006d9c02c5d239362aa70cd0ce566e |
|
MD5 | 6e247573a565b7426a1a42beac486bee |
|
BLAKE2b-256 | 856ffd9e1ccd665a54b6e3e1916f421267f4743562a0418837ba034158058488 |