Class: CfnGuardian::Models::ElasticSearchAlarm

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) ⇒ ElasticSearchAlarm

Returns a new instance of ElasticSearchAlarm.



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
# File 'lib/cfnguardian/models/alarm.rb', line 284

def initialize(resource)
  super(resource)
  @group = 'ElasticSearch'
  @namespace = 'AWS/ES'
  @dimensions = { 
    DomainName: resource['Domain'], 
    ClientId: resource['Id'] 
  }
  @comparison_operator = 'GreaterThanOrEqualToThreshold'
  @threshold = 1
  @evaluation_periods = 5
  @treat_missing_data = 'breaching'
  @period = 60
  @data_points_to_alarm = 1
end