Skip to content

Commit

Permalink
Merge pull request #34 from mitchclarkebase2/master
Browse files Browse the repository at this point in the history
Change lambda alarms to notBreaching
  • Loading branch information
Guslington authored Oct 1, 2021
2 parents 141fef7 + 40a4161 commit 0538f1a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/cfnguardian/resources/lambda.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,15 @@ def default_alarms
alarm.name = 'IteratorAge'
alarm.metric_name = 'IteratorAge'
alarm.threshold = 600000
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)

alarm = CfnGuardian::Models::LambdaAlarm.new(@resource)
alarm.name = 'Duration'
alarm.metric_name = 'Duration'
alarm.statistic = 'Average'
alarm.threshold = 30
alarm.treat_missing_data = 'notBreaching'
@alarms.push(alarm)
end

Expand Down

0 comments on commit 0538f1a

Please sign in to comment.