Class: CfnGuardian::Models::PortAlarm
- 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) ⇒ PortAlarm
constructor
A new instance of PortAlarm.
Constructor Details
#initialize(resource) ⇒ PortAlarm
Returns a new instance of PortAlarm.
353 354 355 356 357 358 359 360 361 |
# File 'lib/cfnguardian/models/alarm.rb', line 353 def initialize(resource) super(resource) @group = 'Port' @namespace = 'TcpPortCheck' @dimensions = { Endpoint: "#{resource['Id']}:#{resource['Port']}" } @comparison_operator = 'LessThanThreshold' @threshold = 1 @evaluation_periods = 2 end |