# Mean time to resolve API in Problems V2

**URL:** <https://community.dynatrace.com/t/mean-time-to-resolve-api-in-problems-v2/50972>\
**Category:** Dynatrace API\
**Tags:** dynatrace-managed, dynatrace-api\
**Created:** [March 31, 2025, 12:23pm UTC](https://community.dynatrace.com/t/mean-time-to-resolve-api-in-problems-v2/50972 "2025-03-31T12:23:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bs43](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bs43](https://community.dynatrace.com/u/bs43)\
**Post date:** [March 31, 2025, 12:23pm UTC](https://community.dynatrace.com/t/mean-time-to-resolve-api-in-problems-v2/50972/1 "2025-03-31T12:23:44Z")

</div>

In problems V2 we get the start and end time of a problem so from that i am trying to get the time taken to resolve the problem and i got it but as unix sec ,  
made few calculation in grafana

 ![bs43_0-1743423704216.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/4/741e015a8f7a2066b81ef421f877badc1afe95e7.png)

 ![bs43_1-1743423716171.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/a/aa5c925f15d7f73fd3a72a9530da9282b4f175e0.png)

Now need to show whether and got as unixseconds now could not able to change it to min or hours, so is there any API i am missing out.

---

<div class="post-metadata">

**Author:** ![mark\_bley](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mark_bley/32/20954_2.png) [@mark\_bley](https://community.dynatrace.com/u/mark_bley)\
**Post date:** [April 4, 2025, 4:12pm UTC](https://community.dynatrace.com/t/mean-time-to-resolve-api-in-problems-v2/50972/2 "2025-04-04T16:12:43Z")

</div>

no need for another API call, you already have the time in ms, just convert it to seconds, minutes or hours to your linking:

```python
timestamp_s = timestamp_ms / 1000
timestamp_min = timestamp_ms / (1000 * 60)
timestamp_h = timestamp_ms / (1000 * 60 * 60)

```

---

<div class="post-metadata">

**Author:** ![bs43](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@bs43](https://community.dynatrace.com/u/bs43)\
**Post date:** [April 7, 2025, 5:58am UTC](https://community.dynatrace.com/t/mean-time-to-resolve-api-in-problems-v2/50972/3 "2025-04-07T05:58:02Z")

</div>

Hi&nbsp;[@mark\_bley](https://community.dynatrace.com/user/13072)&nbsp;, Yes converted as follows and, now it is good

> v2/problems?problemSelector=managementZones(“MZNAME”)&pagesize=500

Thanks

 ![bs43_0-1744005449158.png](https://global.discourse-cdn.com/dynatrace/original/3X/a/a/aae4c34d8b0cf58231577cebbc870728d85af0bb.png)

 ![bs43_1-1744005468585.png](https://global.discourse-cdn.com/dynatrace/original/2X/a/ab50ae61a06ad84d3890e9c108bae4e17687f23b.png)
