# Api call to calculate uptime in percentage over specific time

**URL:** <https://discuss.elastic.co/t/api-call-to-calculate-uptime-in-percentage-over-specific-time/241026>\
**Category:** Elasticsearch\
**Created:** [July 13, 2020, 6:44pm UTC](https://discuss.elastic.co/t/api-call-to-calculate-uptime-in-percentage-over-specific-time/241026 "2020-07-13T18:44:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Dalvi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_dalvi/32/71609_2.png) [@Sagar\_Dalvi](https://discuss.elastic.co/u/Sagar_Dalvi)\
**Post date:** [July 13, 2020, 6:44pm UTC](https://discuss.elastic.co/t/api-call-to-calculate-uptime-in-percentage-over-specific-time/241026/1 "2020-07-13T18:44:24Z")

</div>

Hi All,

I want to calculate Uptime in percentage over specific time.

I am using Heartbeat and able to create below data table visualisation:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/3/5382b198c50459a47aaed9b6515052153ce26e53.png)

But this percentage column is not showing in csv report nor in query when checking from inspect option.

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

I want api call to get uptime in percentage over certain time to display in website.

What is the easiest way to achieve this.

---

<div class="post-metadata">

**Author:** ![Sagar\_Dalvi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sagar_dalvi/32/71609_2.png) [@Sagar\_Dalvi](https://discuss.elastic.co/u/Sagar_Dalvi)\
**Post date:** [July 20, 2020, 7:17am UTC](https://discuss.elastic.co/t/api-call-to-calculate-uptime-in-percentage-over-specific-time/241026/2 "2020-07-20T07:17:40Z")

</div>

Hi Guys,

Is there any way ?

---

<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:** [August 17, 2020, 7:17am UTC](https://discuss.elastic.co/t/api-call-to-calculate-uptime-in-percentage-over-specific-time/241026/3 "2020-08-17T07:17:42Z")

</div>

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