Class: CfnGuardian::Models::ECSClusterAlarm
- 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) ⇒ ECSClusterAlarm
constructor
A new instance of ECSClusterAlarm.
Constructor Details
#initialize(resource) ⇒ ECSClusterAlarm
Returns a new instance of ECSClusterAlarm.
228 229 230 231 232 233 234 235 236 237 |
# File 'lib/cfnguardian/models/alarm.rb', line 228 def initialize(resource) super(resource) @group = 'ECSCluster' @namespace = 'AWS/ECS' @dimensions = { ClusterName: resource['Id'] } @threshold = 75 @alarm_action = 'Warning' @evaluation_periods = 10 @treat_missing_data = 'notBreaching' end |