Sha256: 6282f5671239d9050f711d4452de0797b06ad6b121a49975774a1e114bdff853

Contents?: true

Size: 1.31 KB

Versions: 16

Compression:

Stored size: 1.31 KB

Contents

module CfnGuardian
  module Resource
    class ElasticFileSystem < Base
      
      def default_alarms    
        alarm = CfnGuardian::Models::ElasticFileSystemAlarm.new(@resource)
        alarm.name = 'PercentIOLimitHigh'
        alarm.metric_name = 'PercentIOLimit'
        alarm.comparison_operator = 'GreaterThanThreshold'
        alarm.threshold = 90
        alarm.evaluation_periods = 5
        alarm.statistic = 'Minimum'
        @alarms.push(alarm)

        alarm = CfnGuardian::Models::ElasticFileSystemAlarm.new(@resource)
        alarm.name = 'BurstCreditBalanceLow'
        alarm.metric_name = 'BurstCreditBalance'
        alarm.comparison_operator = 'LessThanThreshold'
        alarm.statistic = 'Minimum'
        alarm.threshold = 1000
        alarm.evaluation_periods = 1
        @alarms.push(alarm)

        alarm = CfnGuardian::Models::ElasticFileSystemAlarm.new(@resource, 'Total')
        alarm.name = 'TotalStorageUsed'
        alarm.metric_name = 'StorageBytes'
        alarm.comparison_operator = 'GreaterThanThreshold'
        alarm.threshold = 10000000000 # 10GB default
        alarm.evaluation_periods = 60
        alarm.treat_missing_data = 'notBreaching'
        alarm.datapoints_to_alarm = 30
        alarm.alarm_action = 'Task'
        alarm.enabled = false
        @alarms.push(alarm)
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
cfn-guardian-0.11.11 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.10 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.9 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.8 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.7 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.6 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.5 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.4 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.3 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.2 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.1 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.11.0 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.10.4 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.10.1 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.10.0 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.9.2 lib/cfnguardian/resources/elastic_file_system.rb