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.161.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52dd7a51cb7b4a5fd29a8134cf87133099f5ee1b7aea645a3775a041987d66e0 |
|
MD5 | d3778266b3b2a58830a49a325b43b2b9 |
|
BLAKE2b-256 | a325e3d8dedcacccfd1140b8aaa68f3b7c520589f0b5344172b9a158bb7933f1 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.161.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d52bcf69890be4ca89525f7235ee1f24e1ed76f911050c2ab75d134b66f0315 |
|
MD5 | a3fd971869cdff18bc2426bc41b3e29d |
|
BLAKE2b-256 | 3515886177f3115cdf1517471236cc9ee10773e23367f8784fa68d50b0739b8d |