# Uptime monitor status missing alert variables for Recovered status

**URL:** https://discuss.elastic.co/t/uptime-monitor-status-missing-alert-variables-for-recovered-status/272858
**Category:** Synthetics
**Created:** [May 12, 2021, 10:14pm UTC](https://discuss.elastic.co/t/uptime-monitor-status-missing-alert-variables-for-recovered-status/272858 "2021-05-12T22:14:53Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bwright1558](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bwright1558/32/58732_2.png) [@bwright1558](https://discuss.elastic.co/u/bwright1558)
#### Post date: [May 12, 2021, 10:14pm UTC](https://discuss.elastic.co/t/uptime-monitor-status-missing-alert-variables-for-recovered-status/272858/1 "2021-05-12T22:14:53Z")

</div>

I have an Uptime monitor status alert with an action configured to run when "Recovered". I'm using the following message template for the action:

```auto
OK - Monitor {{state.monitorName}} is {{state.statusMessage}}.

```

Both `state.monitorName` and `state.statusMessage` are empty when the alert triggers. This is only when the alert runs when "Recovered". This is not a problem when the alert runs when "Uptime Down Monitor".  
This is happening in Kibana 7.12.1.

---

<div class="post-metadata">

### Author: ![shahzad31](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shahzad31/32/51637_2.png) [@shahzad31](https://discuss.elastic.co/u/shahzad31)
#### Post date: [May 20, 2021, 1:12pm UTC](https://discuss.elastic.co/t/uptime-monitor-status-missing-alert-variables-for-recovered-status/272858/2 "2021-05-20T13:12:58Z")

</div>

Hi @bwright1558 Apologies for missing this one.

yes it's unfortunately a limitation at our side, which we are trying to resolve, these variables aren't working for resolve actions.

this 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 which is upcoming release, we have improve it a bit only in case if you enable it using a toggle in monitor list , it's resolve message will include monitor name and url. Since that's essentially hard coded.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/9/f9886bd5dc913856022ad87250113de724ef4922.png)

Regards

---

<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: [June 13, 2021, 1:13pm UTC](https://discuss.elastic.co/t/uptime-monitor-status-missing-alert-variables-for-recovered-status/272858/3 "2021-06-13T13:13:42Z")

</div>

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