Class: CfnGuardian::Models::TLSAlarm
- 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) ⇒ TLSAlarm
constructor
A new instance of TLSAlarm.
Constructor Details
#initialize(resource) ⇒ TLSAlarm
Returns a new instance of TLSAlarm.
560 561 562 563 564 565 566 567 568 569 570 |
# File 'lib/cfnguardian/models/alarm.rb', line 560 def initialize(resource) super(resource) @group = 'TLS' @namespace = 'TLSVersionCheck' @period = 300 @port = resource.fetch('Port', 443) @dimensions = { Endpoint: "#{resource['Id']}:#{@port}" } @comparison_operator = 'LessThanThreshold' @threshold = 1 @evaluation_periods = 1 end |