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.185.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25822b9a2ae96ece87068b074dd84fbd3aba5e48a32100da6dac128fadd57358 |
|
MD5 | e495b4bf087a95979ee1e8383ae18e63 |
|
BLAKE2b-256 | 46bce8402992e33605ac009e077c5297ff14752c372051d458242c990e372416 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.185.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ddc2644500d739d4be784b8f5dcdf02e4c249efee06657c11b01b01e852ad0c3 |
|
MD5 | 40d84eedd13708b099d1fecbb64b7fb2 |
|
BLAKE2b-256 | 8c63b0d1c69a9dd3b6d3f07124bd3024a6b9c7f8e63bb937a4b63ac5a4334b7c |