Class: CfnGuardian::Models::WebSocketAlarm

Inherits:
BaseAlarm
  • Object
show all
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

Constructor Details

#initialize(resource) ⇒ WebSocketAlarm

Returns a new instance of WebSocketAlarm.



335
336
337
338
339
340
341
342
343
# File 'lib/cfnguardian/models/alarm.rb', line 335

def initialize(resource)
  super(resource)
  @group = 'WebSocket'
  @namespace = 'WebSocketCheck'
  @dimensions = { Endpoint: resource['Id'] }
  @comparison_operator = 'LessThanThreshold'
  @threshold = 1
  @evaluation_periods = 2
end