Skip to content

Commit

Permalink
Merge pull request #41 from mitchclarkebase2/master
Browse files Browse the repository at this point in the history
Set missing data to notBreaching for APIGW and lambda
  • Loading branch information
Guslington authored Nov 24, 2021
2 parents 5633c67 + 2de7f93 commit 47173f8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/cfnguardian/resources/apigateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ def default_alarms
alarm.statistic = 'Average'
alarm.threshold = 1000
alarm.evaluation_periods = 2
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)
end

Expand Down
3 changes: 3 additions & 0 deletions lib/cfnguardian/resources/lambda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,21 @@ def default_alarms
alarm.name = 'LambdaErrors'
alarm.metric_name = 'Errors'
alarm.threshold = 0.5
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)

alarm = CfnGuardian::Models::LambdaAlarm.new(@resource)
alarm.name = 'Throttles'
alarm.metric_name = 'Throttles'
alarm.threshold = 0.5
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)

alarm = CfnGuardian::Models::LambdaAlarm.new(@resource)
alarm.name = 'DeadLetterErrors'
alarm.metric_name = 'DeadLetterErrors'
alarm.threshold = 0.5
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)

alarm = CfnGuardian::Models::LambdaAlarm.new(@resource)
Expand Down

0 comments on commit 47173f8

Please sign in to comment.