Class: CfnGuardian::Resource::WebSocket
- Defined in:
- lib/cfnguardian/resources/websocket.rb
Instance Method Summary collapse
Methods inherited from Base
#default_event_subscriptions, #default_metric_filters, #get_alarms, #get_checks, #get_cost, #get_event_subscriptions, #get_events, #get_metric_filters, #initialize, #resource_exists?
Methods included from Logging
colors, included, logger, #logger, logger=
Constructor Details
This class inherits a constructor from CfnGuardian::Resource::Base
Instance Method Details
#default_alarms ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/cfnguardian/resources/websocket.rb', line 6 def default_alarms alarm = CfnGuardian::Models::WebSocketAlarm.new(@resource) alarm.name = 'EndpointAvailable' alarm.metric_name = 'Available' @alarms.push(alarm) alarm = CfnGuardian::Models::WebSocketAlarm.new(@resource) alarm.name = 'EndpointTimeTaken' alarm.comparison_operator = 'GreaterThanThreshold' alarm.metric_name = 'TimeTaken' alarm.statistic = 'Minimum' alarm.threshold = 5000 alarm.period = 300 alarm.evaluation_periods = 1 @alarms.push(alarm) end |
#default_checks ⇒ Object
27 28 29 |
# File 'lib/cfnguardian/resources/websocket.rb', line 27 def default_checks() @checks.push(CfnGuardian::Models::WebSocketCheck.new(@resource)) end |
#default_events ⇒ Object
23 24 25 |
# File 'lib/cfnguardian/resources/websocket.rb', line 23 def default_events() @events.push(CfnGuardian::Models::WebSocketEvent.new(@resource)) end |