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.166.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 79601cd5a50ab71f2ae31caf6029312726d2231f0217f7c587c3f009f7818c3f |
|
MD5 | 51349411c094d4ca304f27c3501922b5 |
|
BLAKE2b-256 | f429141391c764c0d1d04ea792af1c89db25b9155b804e038e68f54b7650ab81 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.166.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e38c4f105ea886440928108cccc43b6afe1c00c1296749a363189b32ce545259 |
|
MD5 | 92e45927b72309b5964f454ba998d8a5 |
|
BLAKE2b-256 | bc962a1d6185607bfb785f855353996c283301bb3c8d5935fbdd788bc196e10f |