Class: CfnGuardian::Models::DMSTaskAlarm
- Defined in:
- lib/cfnguardian/models/alarm.rb
Instance Attribute Summary
Attributes inherited from BaseAlarm
#actions_enabled, #additional_notifiers, #alarm_action, #anomaly_detection, #comparison_operator, #datapoints_to_alarm, #dimensions, #enabled, #evaluate_low_sample_count_percentile, #evaluation_periods, #extended_statistic, #group, #maintenance_groups, #metric_name, #name, #namespace, #ok_action_disabled, #period, #resource_hash, #resource_id, #resource_name, #search_aggregation, #search_expression, #standard_deviation, #statistic, #tags, #threshold, #threshold_overridden, #treat_missing_data, #type, #unit
Instance Method Summary collapse
-
#initialize(resource) ⇒ DMSTaskAlarm
constructor
A new instance of DMSTaskAlarm.
Methods inherited from BaseAlarm
Constructor Details
#initialize(resource) ⇒ DMSTaskAlarm
Returns a new instance of DMSTaskAlarm.
189 190 191 192 193 194 195 196 197 |
# File 'lib/cfnguardian/models/alarm.rb', line 189 def initialize(resource) super(resource) @group = 'DMSTask' @namespace = 'AWS/DMS' @dimensions = { ReplicationTaskIdentifier: resource['Id'], ReplicationInstanceIdentifier: resource['Instance'] } end |