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

Version Path
cfn-guardian-0.8.2 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.8.1 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.8.0 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.16 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.15 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.14 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.13 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.12 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.11 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.10 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.9 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.8 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.1 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.7.0 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.13 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.12 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.11 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.10 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.9 lib/cfnguardian/resources/lambda.rb
cfn-guardian-0.6.8 lib/cfnguardian/resources/lambda.rb