Class: CfnGuardian::Models::TLSAlarm
- Defined in:
- lib/cfnguardian/models/alarm.rb
Instance Attribute Summary
Attributes inherited from BaseAlarm
#actions_enabled, #additional_notifiers, #alarm_action, #anomaly_detection, #comparison_operator, #datapoints_to_alarm, #dimensions, #enabled, #evaluate_low_sample_count_percentile, #evaluation_periods, #extended_statistic, #group, #maintenance_groups, #metric_name, #name, #namespace, #ok_action_disabled, #period, #resource_hash, #resource_id, #resource_name, #search_aggregation, #search_expression, #standard_deviation, #statistic, #tags, #threshold, #threshold_overridden, #treat_missing_data, #type, #unit
Instance Method Summary collapse
-
#initialize(resource) ⇒ TLSAlarm
constructor
A new instance of TLSAlarm.
Methods inherited from BaseAlarm
Constructor Details
#initialize(resource) ⇒ TLSAlarm
Returns a new instance of TLSAlarm.
581 582 583 584 585 586 587 588 589 590 591 |
# File 'lib/cfnguardian/models/alarm.rb', line 581 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 |