Class: CfnGuardian::Resource::AmazonMQRabbitMQNode
- Defined in:
- lib/cfnguardian/resources/amazonmq_rabbitmq.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
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 |
# File 'lib/cfnguardian/resources/amazonmq_rabbitmq.rb', line 70 def default_alarms alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'SystemCpuUtilizationCritical' alarm.metric_name = 'SystemCpuUtilization' alarm.comparison_operator = 'GreaterThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 95 alarm.evaluation_periods = 10 alarm.treat_missing_data = 'notBreaching' @alarms.push(alarm) alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'SystemCpuUtilizationHighBase' alarm.metric_name = 'SystemCpuUtilization' alarm.comparison_operator = 'GreaterThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 75 alarm.evaluation_periods = 30 alarm.treat_missing_data = 'notBreaching' alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'RabbitMQMemUsedCritical' alarm.metric_name = 'RabbitMQMemUsed' alarm.comparison_operator = 'GreaterThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 390000000 alarm.evaluation_periods = 5 alarm.treat_missing_data = 'notBreaching' @alarms.push(alarm) alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'RabbitMQMemUsedWarn' alarm.metric_name = 'RabbitMQMemUsed' alarm.comparison_operator = 'GreaterThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 350000000 alarm.evaluation_periods = 5 alarm.treat_missing_data = 'notBreaching' alarm.alarm_action = 'Warning' @alarms.push(alarm) alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'RabbitMQDiskFreeLimitCritical' alarm.metric_name = 'RabbitMQDiskFreeLimit' alarm.comparison_operator = 'LessThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 1200000000 alarm.evaluation_periods = 5 alarm.treat_missing_data = 'notBreaching' @alarms.push(alarm) alarm = CfnGuardian::Models::AmazonMQRabbitMQNodeAlarm.new(@resource) alarm.name = 'RabbitMQDiskFreeLimitWarn' alarm.metric_name = 'RabbitMQDiskFreeLimit' alarm.comparison_operator = 'LessThanThreshold' alarm.statistic = 'Maximum' alarm.threshold = 1200000000 alarm.evaluation_periods = 5 alarm.treat_missing_data = 'notBreaching' alarm.alarm_action = 'Warning' @alarms.push(alarm) end |