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.163.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02974119c0fdeb08372932fe626271ae4f46ad4b4965f5ded4a3236cb9d287cd |
|
MD5 | 15e581ea27cc4945d3956aad3ed4ac00 |
|
BLAKE2b-256 | f54d3c16dcbef8cc237ab6d4e26cc8ca24f049fd18bc32b9a736ade66e571acf |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.163.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2609c21ea3a76c2eacf040a42622a9db46ce7f88a3a0fe31dfd8d8afce74d90f |
|
MD5 | d1684337590a7696a6ab4591d26e7849 |
|
BLAKE2b-256 | 005d708b694bc4fa099827690ea4aa27ed534c3b31903a8b32668c28a5b0ae6d |