Class: CfnGuardian::Resource::AmazonMQRabbitMQQueue

Inherits:
Base
  • Object
show all
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_alarmsObject



52
53
54
55
56
57
58
59
60
61
62
63
64
65
# File 'lib/cfnguardian/resources/amazonmq_rabbitmq.rb', line 52

def default_alarms

  alarm = CfnGuardian::Models::AmazonMQRabbitMQQueueAlarm.new(@resource)
  alarm.name = 'MessageCountHighWarn'
  alarm.metric_name = 'MessageCount'
  alarm.comparison_operator = 'GreaterThanThreshold'
  alarm.statistic = 'Maximum'
  alarm.threshold = 100
  alarm.evaluation_periods = 5
  alarm.treat_missing_data = 'notBreaching'
  alarm.alarm_action = 'Warning'
  @alarms.push(alarm)

end