Resolved state has no data, Kindly help

Hi,

I have given annotations as “AlertValues” and provided a custom slack template “mymessage”.
The alert is based on kafka consumer lag. We have integrated confluent cloud API to grafana.
Here, In firing state, we are getting the respective data.

But if its go to resolved state, most of the time we are not receiving values in slack.

Issue: There is a 3 minutes delay for the lag due to the confluent cloud integration. Hence in alerting, I made the query to be searched for (now-15m to now-5m) and using classic condition threshold - last(). I need the data for resolved status, Kindly help here

Annotations:

{{ with $values }}
{{ range $k, $v := . }}
*DESCRIPTION*: Consumer lag is greater than 10K
*TOPIC*: {{ $v.Labels.topic }}
*CONSUMER GROUP*: {{ $v.Labels.consumer_group_id }}
*CURRENT LAG*: {{ humanize .Value}}
{{ end }}
{{ end }}

Slack template - mymessage

{{ define "mymessage" }}
  {{ if gt (len .Alerts.Firing) 0 }}
    {{- $firingCount := len .Alerts.Firing -}}
    {{- if gt $firingCount 0 }}{{ $firingCount }} firing:{{ range .Alerts.Firing }} {{ .Annotations.AlertValues }}{{ end }}{{ end }}
  {{ end }}
  {{ if gt (len .Alerts.Resolved) 0 }}
    {{- $resolvedCount := len .Alerts.Resolved -}}
    {{- if gt $resolvedCount 0 }}{{ $resolvedCount }} resolved:{{ range .Alerts.Resolved }} {{ .Annotations.AlertValues }}{{ end }}{{ end }}
  {{ end }}
{{ end }}

Contact point - Text Body

Alert summary:
{{ template "mymessage" . }}