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.154.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78ed7d1b08038c3ae3c370a549e38869be60b7cf2cdaf3c8010e07f988ba88ce |
|
MD5 | a6af02f09b44e571da7971647ce3c14c |
|
BLAKE2b-256 | 25a013a51fe7ce30c036a0f63052e32b5e9561d83a05cd2dc38980b96bba9d3a |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.154.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f805013ba612b1093a690761c533411053c6a33c3debba1d452183227c5cf5f4 |
|
MD5 | 9bb1f5d631b766ab93b8af7493503eff |
|
BLAKE2b-256 | 14bb39be12bc1d90ddf8b24ccf18614447a47cef2087b0c414aee50c2e15f110 |