Sha256: 85daf7944679bbfa04b67637b5c91763bda7e5c8fc9ade6726dbf03949ec4112

Contents?: true

Size: 1.63 KB

Versions: 55

Compression:

Stored size: 1.63 KB

Contents

module CfnGuardian
  module Resource
    class ElastiCacheReplicationGroup < Base
      
      def default_alarms    
        alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource)
        alarm.name = 'FreeableMemoryWarning'
        alarm.metric_name = 'FreeableMemory'
        alarm.comparison_operator = 'LessThanThreshold'
        alarm.threshold = 100000000
        alarm.evaluation_periods = 10
        alarm.alarm_action = 'Warning'
        @alarms.push(alarm)
        
        alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource)
        alarm.name = 'CPUUtilizationWarning'
        alarm.metric_name = 'CPUUtilization'
        alarm.comparison_operator = 'GreaterThanThreshold'
        alarm.statistic = 'Minimum'
        alarm.threshold = 75
        alarm.evaluation_periods = 10
        alarm.alarm_action = 'Warning'
        @alarms.push(alarm)
        
        alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource)
        alarm.name = 'CurrentConnectionsTask'
        alarm.metric_name = 'CurrConnections'
        alarm.comparison_operator = 'GreaterThanThreshold'
        alarm.threshold = 50000
        alarm.evaluation_periods = 10
        alarm.alarm_action = 'Task'
        @alarms.push(alarm)
        
        alarm = CfnGuardian::Models::ElastiCacheReplicationGroupAlarm.new(@resource)
        alarm.name = 'CurrentConnectionsCritical'
        alarm.metric_name = 'CurrConnections'
        alarm.comparison_operator = 'GreaterThanThreshold'
        alarm.threshold = 60000
        alarm.evaluation_periods = 10
        @alarms.push(alarm)
      end
      
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
cfn-guardian-0.11.8 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.7 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.6 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.5 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.4 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.3 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.2 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.1 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.11.0 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.10.4 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.10.1 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.10.0 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.9.2 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.9.1 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.9.0 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.8.6 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.8.5 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.8.4 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.8.3 lib/cfnguardian/resources/elasticache_replication_group.rb
cfn-guardian-0.8.2 lib/cfnguardian/resources/elasticache_replication_group.rb