 class="n">alert_spec_1</span><span class="p">)</span>
    <span class="k">if</span> <span class="n">max_critical</span><span class="p">:</span>
        <span class="n">alert_spec_2</span> <span class="o">=</span> <span class="n">build_max_alert_spec</span><span class="p">(</span><span class="n">max_critical</span><span class="p">,</span>
                                            <span class="n">AlertData</span><span class="o">.</span><span class="n">SeverityLevel</span><span class="o">.</span><span class