Class: CfnGuardian::Resource::ElasticFileSystem
- Defined in:
- lib/cfnguardian/resources/elastic_file_system.rb
Instance Method Summary collapse
Methods inherited from Base
#default_checks, #default_event_subscriptions, #default_events, #default_metric_filters, #get_alarms, #get_checks, #get_cost, #get_event_subscriptions, #get_events, #get_metric_filters, #initialize, #resource_exists?
Methods included from Logging
colors, included, logger, #logger, logger=
Constructor Details
This class inherits a constructor from CfnGuardian::Resource::Base
Instance Method Details
#default_alarms ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/cfnguardian/resources/elastic_file_system.rb', line 5 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 |