Class: CfnGuardian::Resource::RDSClusterInstance
- Defined in:
- lib/cfnguardian/resources/rds_cluster_instance.rb
Instance Method Summary collapse
Methods inherited from Base
#default_checks, #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
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/cfnguardian/resources/rds_cluster_instance.rb', line 4 def default_alarms alarm = CfnGuardian::Models::RDSClusterInstanceAlarm.new(@resource) alarm.name = 'CPUUtilizationHighSpike' alarm.metric_name = 'CPUUtilization' alarm.threshold = 95 alarm.evaluation_periods = 10 @alarms.push(alarm) alarm = CfnGuardian::Models::RDSClusterInstanceAlarm.new(@resource) alarm.name = 'CPUUtilizationHighBase' alarm.metric_name = 'CPUUtilization' alarm.threshold = 75 alarm.evaluation_periods = 60 alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::RDSClusterInstanceAlarm.new(@resource) alarm.name = 'DatabaseConnections' alarm.metric_name = 'DatabaseConnections' alarm.statistic = 'Minimum' alarm.threshold = 45 alarm.evaluation_periods = 10 @alarms.push(alarm) end |
#default_event_subscriptions ⇒ Object
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 |
# File 'lib/cfnguardian/resources/rds_cluster_instance.rb', line 29 def default_event_subscriptions() event_subscription = CfnGuardian::Models::RDSInstanceEventSubscription.new(@resource) event_subscription.name = 'MasterPasswordReset' event_subscription.event_id = 'RDS-EVENT-0016' @event_subscriptions.push(event_subscription) event_subscription = CfnGuardian::Models::RDSInstanceEventSubscription.new(@resource) event_subscription.name = 'MasterPasswordResetFailure' event_subscription.event_id = 'RDS-EVENT-0067' @event_subscriptions.push(event_subscription) event_subscription = CfnGuardian::Models::RDSClusterInstanceEventSubscription.new(@resource) event_subscription.name = 'AuroraStorageLow' event_subscription.event_id = 'RDS-EVENT-0227' @event_subscriptions.push(event_subscription) end |