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.181.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 18383ae78c3a777c12d8c291b625189aaabcaedfba570b8d958620c75fdabd28 |
|
MD5 | 719e368fb58bafdb7e009205bf5049f1 |
|
BLAKE2b-256 | b7eb22cc1d4605cd74eac90fa4670a113799a482191f0642d21d9ca54f7270f6 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.181.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29330bed866fd82012ac361c71839323f155ffc88c7280b24d2cb1b5c5ddaad8 |
|
MD5 | ce1fccd5bf824f7a99e4d66d58335fe6 |
|
BLAKE2b-256 | a3625adf9a1ade4ea367b383fc558bf3dd757850172cf41b9cf58349beb3a984 |