Sha256: a83239f1b2ad73145800fbb3f6f2eec57f61dc595c055b3765614d2eeb75721c
Contents?: true
Size: 1.08 KB
Versions: 30
Compression:
Stored size: 1.08 KB
Contents
module CfnGuardian::Resource class Lambda < Base def default_alarms alarm = CfnGuardian::Models::LambdaAlarm.new(@resource) alarm.name = 'LambdaErrors' alarm.metric_name = 'Errors' alarm.threshold = 0.5 @alarms.push(alarm) alarm = CfnGuardian::Models::LambdaAlarm.new(@resource) alarm.name = 'Throttles' alarm.metric_name = 'Throttles' alarm.threshold = 0.5 @alarms.push(alarm) alarm = CfnGuardian::Models::LambdaAlarm.new(@resource) alarm.name = 'DeadLetterErrors' alarm.metric_name = 'DeadLetterErrors' alarm.threshold = 0.5 @alarms.push(alarm) alarm = CfnGuardian::Models::LambdaAlarm.new(@resource) alarm.name = 'IteratorAge' alarm.metric_name = 'IteratorAge' alarm.threshold = 600000 @alarms.push(alarm) alarm = CfnGuardian::Models::LambdaAlarm.new(@resource) alarm.name = 'Duration' alarm.metric_name = 'Duration' alarm.statistic = 'Average' alarm.threshold = 30 @alarms.push(alarm) end end end
Version data entries
30 entries across 30 versions & 1 rubygems