Sha256: e99b11e7669b96e637d77d51049856ddbe019adfce29da2d7fe59f9012327ad7

Contents?: true

Size: 745 Bytes

Versions: 24

Compression:

Stored size: 745 Bytes

Contents

module CfnGuardian::Resource
  class SQSQueue < Base
    
    def default_alarms    
      alarm = CfnGuardian::Models::SQSQueueAlarm.new(@resource)
      alarm.name = 'ApproximateAgeOfOldestMessage'
      alarm.metric_name = 'ApproximateAgeOfOldestMessage'
      alarm.threshold = 0.5
      alarm.evaluation_periods = 5
      alarm.treat_missing_data = 'notBreaching'
      @alarms.push(alarm)
      
      alarm = CfnGuardian::Models::SQSQueueAlarm.new(@resource)
      alarm.name = 'ApproximateNumberOfMessagesVisible'
      alarm.metric_name = 'ApproximateNumberOfMessagesVisible'
      alarm.threshold = 0.5
      alarm.evaluation_periods = 5
      alarm.treat_missing_data = 'notBreaching'
      @alarms.push(alarm)
    end
    
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
cfn-guardian-0.7.7 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.6 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.5 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.4 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.3 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.2 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.1 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.7.0 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.13 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.12 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.11 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.10 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.9 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.8 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.7 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.6 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.5 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.4 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.3 lib/cfnguardian/resources/sqs_queue.rb
cfn-guardian-0.6.2 lib/cfnguardian/resources/sqs_queue.rb