Class: CfnGuardian::Models::SFTPAlarm
- Defined in:
- lib/cfnguardian/models/alarm.rb
Direct Known Subclasses
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) ⇒ SFTPAlarm
constructor
A new instance of SFTPAlarm.
Constructor Details
#initialize(resource) ⇒ SFTPAlarm
Returns a new instance of SFTPAlarm.
542 543 544 545 546 547 548 549 550 |
# File 'lib/cfnguardian/models/alarm.rb', line 542 def initialize(resource) super(resource) @group = 'SFTP' @namespace = 'SftpCheck' @period = 300 @comparison_operator = 'LessThanThreshold' @threshold = 1 @dimensions = { Host: resource['Id'], User: resource['User'] } end |