Class: CfnGuardian::Models::NrpeAlarm
- 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, environment) ⇒ NrpeAlarm
constructor
A new instance of NrpeAlarm.
Constructor Details
#initialize(resource, environment) ⇒ NrpeAlarm
Returns a new instance of NrpeAlarm.
387 388 389 390 391 392 393 394 |
# File 'lib/cfnguardian/models/alarm.rb', line 387 def initialize(resource,environment) super(resource) @group = 'Nrpe' @namespace = 'NRPE' @dimensions = { Host: "#{environment}-#{resource['Id']}" } @treat_missing_data = 'breaching' @evaluation_periods = 2 end |