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.178.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e26a58213e2c4be5348a90e178052ced87f1d83b11497984865c64c08cc6c810 |
|
MD5 | c03054c890b537d46b238cc5b4180db9 |
|
BLAKE2b-256 | 62d0b7ffa38cc95ca4f31ec5d549ea4baa1b671398095d59b50f1bccd8a9573c |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.178.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99ed847e6373f2daca718cb33481131902d7eebee5d0fcf90b7cc5b2a185cbf1 |
|
MD5 | a276d100997e235a62649b8a7731e09a |
|
BLAKE2b-256 | 5518e41513ec4239b4a859560cd15d860cffad8583449fccddd5a5b9b56d9bf8 |