Class: CfnGuardian::Models::ElasticFileSystemAlarm
- 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, storage_class = nil) ⇒ ElasticFileSystemAlarm
constructor
A new instance of ElasticFileSystemAlarm.
Constructor Details
#initialize(resource, storage_class = nil) ⇒ ElasticFileSystemAlarm
Returns a new instance of ElasticFileSystemAlarm.
311 312 313 314 315 316 317 318 319 |
# File 'lib/cfnguardian/models/alarm.rb', line 311 def initialize(resource, storage_class = nil) super(resource) @group = 'ElasticFileSystem' @namespace = 'AWS/EFS' @dimensions = { FileSystemId: resource['Id'] } unless storage_class.nil? @dimensions[:StorageClass] = storage_class end end |