Sha256: b25ada1bd1a52f85b4b8901f9179587391f07c7368d5e262061ca34eae84b32d

Contents?: true

Size: 942 Bytes

Versions: 26

Compression:

Stored size: 942 Bytes

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 = 1000000000000
        alarm.evaluation_periods = 5
        alarm.treat_missing_data = 'notBreaching'
        alarm.datapoints_to_alarm = 5
        @alarms.push(alarm)
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
cfn-guardian-0.8.3 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.8.2 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.8.1 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.8.0 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.16 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.15 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.14 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.13 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.12 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.11 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.10 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.9 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.8 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.7 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.6 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.5 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.4 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.3 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.2 lib/cfnguardian/resources/elastic_file_system.rb
cfn-guardian-0.7.1 lib/cfnguardian/resources/elastic_file_system.rb