Class: CfnGuardian::Models::KafkaClusterAlarm
- 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, broker) ⇒ KafkaClusterAlarm
constructor
A new instance of KafkaClusterAlarm.
Constructor Details
#initialize(resource, broker) ⇒ KafkaClusterAlarm
Returns a new instance of KafkaClusterAlarm.
398 399 400 401 402 403 404 405 406 407 408 |
# File 'lib/cfnguardian/models/alarm.rb', line 398 def initialize(resource,broker) super(resource) @group = 'KafkaCluster' @namespace = 'AWS/Kafka' @dimensions = { 'Cluster Name': resource['Id'], 'Broker ID': broker } @statistic = 'Average' @evaluation_periods = 1 @datapoints_to_alarm = 1 @period = 300 @treat_missing_data = 'breaching' end |