# statistical problem

**URL:** <https://community.dynatrace.com/t/statistical-problem/40791>\
**Category:** Open Q&A\
**Created:** [July 20, 2023, 6:16am UTC](https://community.dynatrace.com/t/statistical-problem/40791 "2023-07-20T06:16:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lwl](https://avatars.discourse-cdn.com/v4/letter/l/f4b2a3/32.png) [@Lwl](https://community.dynatrace.com/u/Lwl)\
**Post date:** [July 20, 2023, 6:16am UTC](https://community.dynatrace.com/t/statistical-problem/40791/1 "2023-07-20T06:16:46Z")

</div>

How to calculate the average alarm time of an mz, the total number of alarms/the total alarm time, can this be achieved

---

<div class="post-metadata">

**Author:** ![radek\_jasinski](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/radek_jasinski/32/10432_2.png) [@radek\_jasinski](https://community.dynatrace.com/u/radek_jasinski)\
**Post date:** [July 20, 2023, 6:59am UTC](https://community.dynatrace.com/t/statistical-problem/40791/2 "2023-07-20T06:59:19Z")

</div>

Hi&nbsp;[@Lwl](https://community.dynatrace.com/user/63531)

As for the number of alerts for MZ, you can display this in the GUI or pull it out through the API. Each issue has a Duration Time associated with it, which determines how long it has been open.

As for the total time of problems in a given MZ, I have not encountered this. I suspect you will have to write a short script that will add up these times in terms of time.

Radek
