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:
303303 - Name : ' ApiName'
304304 Value : !Sub ${ApplicationPrefix}-gateway
305305
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+
306325 AppApiGateway5XXErrorAlarm :
307326 Type : ' AWS::CloudWatch::Alarm'
308327 Condition : IsProd
309328 Properties :
310329 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.'
312331 Namespace : ' AWS/ApiGateway'
313332 MetricName : ' 5XXError'
314333 Statistic : ' Average'
You can’t perform that action at this time.
0 commit comments