File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -303,12 +303,31 @@ Resources:
303
303
- Name : ' ApiName'
304
304
Value : !Sub ${ApplicationPrefix}-gateway
305
305
306
+ AppApiGatewayNoRequestsAlarm :
307
+ Type : ' AWS::CloudWatch::Alarm'
308
+ Condition : IsProd
309
+ Properties :
310
+ AlarmName : !Sub ${ApplicationPrefix}-gateway-no-requests
311
+ AlarmDescription : ' No requests have been received in the past 5 minutes.'
312
+ Namespace : ' AWS/ApiGateway'
313
+ MetricName : ' Count'
314
+ Statistic : ' Sum'
315
+ Period : ' 300'
316
+ EvaluationPeriods : ' 1'
317
+ ComparisonOperator : ' LessThanThreshold'
318
+ Threshold : ' 1'
319
+ AlarmActions :
320
+ - !Ref AlertSNSArn
321
+ Dimensions :
322
+ - Name : ' ApiName'
323
+ Value : !Sub ${ApplicationPrefix}-gateway
324
+
306
325
AppApiGateway5XXErrorAlarm :
307
326
Type : ' AWS::CloudWatch::Alarm'
308
327
Condition : IsProd
309
328
Properties :
310
329
AlarmName : !Sub ${ApplicationPrefix}-gateway-5xx
311
- AlarmDescription : !Sub 'Alarm if ${ApplicationPrefix} API gateway 5XX errors are detected.'
330
+ AlarmDescription : ' More than 2 API gateway 5XX errors were detected.'
312
331
Namespace : ' AWS/ApiGateway'
313
332
MetricName : ' 5XXError'
314
333
Statistic : ' Average'
You can’t perform that action at this time.
0 commit comments