Complete the code to set the maximum number of alarms per minute.
alarm_config.set_max_alarms_per_minute([1])Setting the maximum alarms per minute to 50 helps prevent alarm flooding by limiting alarm frequency.
Complete the code to enable alarm suppression after {{BLANK_1}} repeated alarms.
alarm_manager.enable_suppression_after([1])Enabling suppression after 3 repeated alarms helps reduce alarm flooding by ignoring repeated alarms after this count.
Fix the error in the code to correctly reset the alarm flood counter.
alarm_flood_counter.[1]()The correct method to reset the alarm flood counter is reset().
Fill both blanks to create a filter that only allows alarms with severity {{BLANK_1}} or higher and from source {{BLANK_2}}.
alarm_filter = AlarmFilter(severity=[1], source='[2]')
Filtering alarms with severity 'high' and source 'sensor_42' helps focus on important alarms from a specific source.
Fill all three blanks to create a dictionary comprehension that maps alarm IDs to their timestamps only if the alarm severity is {{BLANK_1}}, the source is {{BLANK_2}}, and the alarm is active ({{BLANK_3}} is True).
active_alarms = {alarm.id: alarm.timestamp for alarm in alarms if alarm.severity == '[1]' and alarm.source == '[2]' and alarm.[3]This comprehension filters alarms that are critical, from sensor_99, and currently active.