Skip to content

Commit

Permalink
Set missing data to notBreaching for APIGW and lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchclarkebase2 committed Nov 24, 2021
1 parent 5633c67 commit 2de7f93
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 2de7f93

Please sign in to comment.