Class: CfnGuardian::Models::AmazonMQRabbitMQQueueAlarm
- Defined in:
- lib/cfnguardian/models/alarm.rb
Instance Attribute Summary
Attributes inherited from BaseAlarm
#actions_enabled, #additional_notifiers, #alarm_action, #comparison_operator, #datapoints_to_alarm, #dimensions, #enabled, #evaluate_low_sample_count_percentile, #evaluation_periods, #extended_statistic, #group, #maintenance_groups, #metric_name, #name, #namespace, #period, #resource_hash, #resource_id, #resource_name, #statistic, #tags, #threshold, #treat_missing_data, #type, #unit
Instance Method Summary collapse
-
#initialize(resource) ⇒ AmazonMQRabbitMQQueueAlarm
constructor
A new instance of AmazonMQRabbitMQQueueAlarm.
Constructor Details
#initialize(resource) ⇒ AmazonMQRabbitMQQueueAlarm
Returns a new instance of AmazonMQRabbitMQQueueAlarm.
131 132 133 134 135 136 137 138 139 140 |
# File 'lib/cfnguardian/models/alarm.rb', line 131 def initialize(resource) super(resource) @group = 'AmazonMQRabbitMQQueue' @namespace = 'AWS/AmazonMQ' @dimensions = { Broker: resource['Broker'], Queue: resource['Id'], VirtualHost: resource['Vhost'] } end |