Sha256: 484c919bdc324351d61e84a0a24d53d2c3b32498b088eb96557f20c1d65b9a3b
Contents?: true
Size: 1.6 KB
Versions: 58
Compression:
Stored size: 1.6 KB
Contents
module CfnGuardian::Resource class DynamoDBTable < Base def default_alarms alarm = CfnGuardian::Models::DynamoDBTableAlarm.new(@resource) alarm.name = 'DynamoDBReadUsage' alarm.metric_name = 'ConsumedReadCapacityUnits' alarm.statistic = 'Sum' alarm.threshold = 80 alarm.evaluation_periods = 2 alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::DynamoDBTableAlarm.new(@resource) alarm.name = 'DynamoDBWriteUsage' alarm.metric_name = 'ConsumedWriteCapacityUnits' alarm.statistic = 'Sum' alarm.threshold = 80 alarm.evaluation_periods = 2 alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::DynamoDBTableAlarm.new(@resource) alarm.name = 'DynamoDBReadThrottleEvents' alarm.metric_name = 'ReadThrottleEvents' alarm.comparison_operator = 'GreaterThanOrEqualToThreshold' alarm.statistic = 'Sum' alarm.threshold = 1 alarm.evaluation_periods = 2 alarm.alarm_action = 'Warning' alarm.treat_missing_data = 'notBreaching' @alarms.push(alarm) alarm = CfnGuardian::Models::DynamoDBTableAlarm.new(@resource) alarm.name = 'DynamoDBWriteThrottleEvents' alarm.metric_name = 'WriteThrottleEvents' alarm.comparison_operator = 'GreaterThanOrEqualToThreshold' alarm.statistic = 'Sum' alarm.threshold = 1 alarm.evaluation_periods = 2 alarm.alarm_action = 'Warning' alarm.treat_missing_data = 'notBreaching' @alarms.push(alarm) end end end
Version data entries
58 entries across 58 versions & 1 rubygems