Class: CfnGuardian::Models::CloudFrontDistributionAlarm
- 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) ⇒ CloudFrontDistributionAlarm
constructor
A new instance of CloudFrontDistributionAlarm.
Constructor Details
#initialize(resource) ⇒ CloudFrontDistributionAlarm
Returns a new instance of CloudFrontDistributionAlarm.
144 145 146 147 148 149 150 151 152 153 154 155 |
# File 'lib/cfnguardian/models/alarm.rb', line 144 def initialize(resource) super(resource) @group = 'CloudFrontDistribution' @namespace = 'AWS/CloudFront' @dimensions = { DistributionId: resource['Id'], Region: 'Global' } @statistic = 'Average' @evaluation_periods = 5 @treat_missing_data = 'notBreaching' end |