cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problem duration from API

shakib
Guide

So I need to see how long over the past 90 days problems were remaining open before they got resolved.
I looked at the problem API and ran a quick request, but the problem duration is not the data that gets returned (which makes no sense at all, I mean I can see that as a field and it's being calculated by Dynatrace, so why not allow me to use it in the API?). 

I was wondering if anyone else has encountered this problem or if anyone has any suggestions for how to tackle this? 

1 REPLY 1

AntonPineiro
DynaMight Guru
DynaMight Guru

Hi,

This is not showed directly but you have this information in the JSON answer:

  • "startTime"1681969860000,
  • "endTime"1681972740000
Then, something as this "endTime - startTime / 1000 / 60" will return problem duration in minutes. Just an example.
 
Best regards
❤️ Emacs ❤️ Vim ❤️ Bash ❤️ Perl

Featured Posts