Class: CfnGuardian::Models::DomainExpiryAlarm

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

Constructor Details

#initialize(resource) ⇒ DomainExpiryAlarm

Returns a new instance of DomainExpiryAlarm.



200
201
202
203
204
205
206
# File 'lib/cfnguardian/models/alarm.rb', line 200

def initialize(resource)
  super(resource)
  @group = 'DomainExpiry'
  @namespace = 'DNS'
  @dimensions = { Domain: resource['Id'] }
  @comparison_operator = 'LessThanThreshold'
end