title: How to discard alert summary when alert status is RESOLVED in Prometheus Alertmanager?
body: <p>Consider a simple alert:</p>
  <pre><code>      - alert: SomeAlert
        expr: SomeExpression &gt; SomeValue
        labels:
          severity: notification
          slack: SomeSlackChannel
        annotations:
          summary: &quot;This alert was fired!&quot;
  </code></pre>
  <p>Now I want to show the <code>summary</code> only when the status of the alert is FIRING. In case of RESOLVED status, I would like to discard the alert summary from slack notification.</p>
  <p>How to selectively show/hide alert summary depending on the status of the alert?</p>
  <p>I tried the following:</p>
  <pre><code>      - alert: SomeAlert
        expr: SomeExpression &gt; SomeValue
        labels:
          severity: notification
          slack: SomeSlackChannel
        {{ if eq .Status &quot;firing }}
        annotations:
          summary: &quot;This alert was fired!&quot;
        {{ end }}
  </code></pre>
  <p>but didn't work. It seems like <code>.Status</code> is not accessible to conditionally show/hide alert summary.</p>