Class: CfnGuardian::Models::KafkaTopicAlarm
- 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) ⇒ KafkaTopicAlarm
constructor
A new instance of KafkaTopicAlarm.
Constructor Details
#initialize(resource, broker) ⇒ KafkaTopicAlarm
Returns a new instance of KafkaTopicAlarm.
412 413 414 415 416 417 418 419 420 421 422 |
# File 'lib/cfnguardian/models/alarm.rb', line 412 def initialize(resource,broker) super(resource) @group = 'KafkaTopic' @namespace = 'AWS/Kafka' @dimensions = { 'Cluster Name': resource['ClusterName'], 'Broker ID': broker, Topic: resource['Id'] } @statistic = 'Average' @evaluation_periods = 1 @datapoints_to_alarm = 1 @period = 300 @treat_missing_data = 'breaching' end |