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