Skip to content

Commit f0255cd

Browse files
committed
update readmes
1 parent d60eaa6 commit f0255cd

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

python/example_code/cloudwatch/README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Code examples that show you how to accomplish a specific task by calling multipl
5353
functions within the same service.
5454

5555
- [Manage metrics and alarms](cloudwatch_basics.py)
56+
- [Monitor infrastructure with CloudWatch and Amazon SNS](../sns/scenario_cloudwatch_sns_monitoring.py)
5657

5758

5859
<!--custom.examples.start-->
@@ -90,6 +91,24 @@ python cloudwatch_basics.py
9091
<!--custom.scenarios.cloudwatch_Usage_MetricsAlarms.start-->
9192
<!--custom.scenarios.cloudwatch_Usage_MetricsAlarms.end-->
9293

94+
#### Monitor infrastructure with CloudWatch and Amazon SNS
95+
96+
This example shows you how to create CloudWatch alarms that send Amazon SNS notifications when infrastructure metrics breach thresholds.
97+
98+
99+
<!--custom.scenario_prereqs.sns_Scenario_CloudWatchSnsMonitoring.start-->
100+
<!--custom.scenario_prereqs.sns_Scenario_CloudWatchSnsMonitoring.end-->
101+
102+
Start the example by running the following at a command prompt:
103+
104+
```
105+
python ../sns/scenario_cloudwatch_sns_monitoring.py
106+
```
107+
108+
109+
<!--custom.scenarios.sns_Scenario_CloudWatchSnsMonitoring.start-->
110+
<!--custom.scenarios.sns_Scenario_CloudWatchSnsMonitoring.end-->
111+
93112
### Tests
94113

95114
⚠ Running tests might result in charges to your AWS account.
@@ -116,4 +135,4 @@ in the `python` folder.
116135

117136
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
118137

119-
SPDX-License-Identifier: Apache-2.0
138+
SPDX-License-Identifier: Apache-2.0

python/example_code/sns/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ functions within the same service.
5555
- [Create an Amazon Textract explorer application](../../cross_service/textract_explorer)
5656
- [Create and publish to a FIFO topic](sns_fifo_topic.py)
5757
- [Detect people and objects in a video](../../example_code/rekognition)
58+
- [Monitor infrastructure with CloudWatch and Amazon SNS](scenario_cloudwatch_sns_monitoring.py)
5859
- [Publish an SMS text message](sns_basics.py)
5960
- [Publish messages to queues](../../cross_service/topics_and_queues/topics_and_queues_scenario.py)
6061
- [Use API Gateway to invoke a Lambda function](../../example_code/lambda)
@@ -121,6 +122,24 @@ This example shows you how to detect people and objects in a video with Amazon R
121122
<!--custom.scenarios.cross_RekognitionVideoDetection.start-->
122123
<!--custom.scenarios.cross_RekognitionVideoDetection.end-->
123124

125+
#### Monitor infrastructure with CloudWatch and Amazon SNS
126+
127+
This example shows you how to create CloudWatch alarms that send Amazon SNS notifications when infrastructure metrics breach thresholds.
128+
129+
130+
<!--custom.scenario_prereqs.sns_Scenario_CloudWatchSnsMonitoring.start-->
131+
<!--custom.scenario_prereqs.sns_Scenario_CloudWatchSnsMonitoring.end-->
132+
133+
Start the example by running the following at a command prompt:
134+
135+
```
136+
python scenario_cloudwatch_sns_monitoring.py
137+
```
138+
139+
140+
<!--custom.scenarios.sns_Scenario_CloudWatchSnsMonitoring.start-->
141+
<!--custom.scenarios.sns_Scenario_CloudWatchSnsMonitoring.end-->
142+
124143
#### Publish an SMS text message
125144

126145
This example shows you how to publish SMS messages using Amazon SNS.

0 commit comments

Comments
 (0)