# Values for alert variables are not coming in Uptime recovered email alert

**URL:** <https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501>\
**Category:** Synthetics\
**Created:** [September 29, 2021, 6:17pm UTC](https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501 "2021-09-29T18:17:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyadav](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@dyadav](https://discuss.elastic.co/u/dyadav)\
**Post date:** [September 29, 2021, 6:17pm UTC](https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501/1 "2021-09-29T18:17:20Z")

</div>

I have set up email alerts for uptime down and recover status. But with recovered status, values for alert variables like state.monitorName, state.monitorUrl are not coming.

Version is 7.12.1

---

<div class="post-metadata">

**Author:** ![Dominique\_Clarke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dominique_clarke/32/92223_2.png) [@Dominique\_Clarke](https://discuss.elastic.co/u/Dominique_Clarke)\
**Post date:** [October 12, 2021, 12:36pm UTC](https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501/2 "2021-10-12T12:36:35Z")

</div>

Hi @dyadav. Apologies for the delay.

Unfortunately this is a limitation on our side. These variables aren't working properly for resolve actions.

There is an issue to track [AlertTypes can't provide an AlertInstanceContext on recovery · Issue #87048 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/87048).

In 7.13.0 we have improve the functionality a bit if you enable alerts using the toggle in the monitor list. The resolved message for alerts created with this toggle will include monitor name and url. However, alerts created with the alert dropdown on the Uptime page will still experience the issue you've described.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/2/82a16df2bb18af4c9014dc3d5ca6565029b8c89f.png)

---

<div class="post-metadata">

**Author:** ![dyadav](https://avatars.discourse-cdn.com/v4/letter/d/9fc348/32.png) [@dyadav](https://discuss.elastic.co/u/dyadav)\
**Post date:** [October 12, 2021, 4:32pm UTC](https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501/3 "2021-10-12T16:32:07Z")

</div>

Thank you Dominique for the update. Will try the toggle option after upgrading to 7.13.0

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 5, 2021, 4:32pm UTC](https://discuss.elastic.co/t/values-for-alert-variables-are-not-coming-in-uptime-recovered-email-alert/285501/4 "2021-11-05T16:32:45Z")

</div>

This topic was automatically closed 24 days after the last reply. New replies are no longer allowed.
