Trying to calculate MTTD (Mean Time To Detect)

Hello all,

I have been trying to calculate the MTTD, which consists of the difference between the case creation date and the first update of the case. However, when updating the case, the updated_at field gets updated as well.

However, any update in the case is available in the GUI.

Hello @YousefNein

As per the requirement , i think you can use below formula to calculate the correct time as per your requirement of MTTD :

Sample Data Considered of 1 Case :

Corresponding Data in Dataview :

User below formula :

min(cases-comments.created_at) - min(cases.created_at)

Output :

Thanks!!

Thanks, @Tortoise that will do. However, it will rely on the analyst not forgetting to write a comment. Do you know how to write a request to Elastic to add a “first_updated_at” field?

1 Like

Hello @YousefNein

What I calculated works only for a single case. The same approach does not work when we look at multiple cases together.

In Cases there are multiple child records (comments, status changes, user actions) created for each case, and they are linked indirectly using reference-style fields. Because of this structure it becomes hard to reliably identify when the first status change or triage action happened for each case across the dataset.

So we need a different approach for multi-case metrics like MTTD. I found a similar enhancement request for Alerting , maybe a similar enhancement would be needed for Cases to support these kinds of metrics ?

Thanks!!

1 Like