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.190.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8cef856ce49cc6433ee0b7385cf65e13776a56c2ce9675bd702a73468af1581e |
|
MD5 | 5196c1226df1b1d542dfed73a3356a69 |
|
BLAKE2b-256 | 077ad9787530cf94a7359eaa03b494fd96469bd461e59f2a5d4842ae122b1084 |
Close
Hashes for aws_cdk.aws_cloudwatch_actions-1.190.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdcfd50c8a2bf9e23eb0ab041ce6022dfd7df6369e14854a78adf7d6988193b1 |
|
MD5 | 8d7a302325c90e505ba23fd10b8a9e1a |
|
BLAKE2b-256 | 32bf2135c78035f4c1055dc32f6ec4cb228b39c9be9fade89fd10915be0ad912 |