08 Dec 2022 03:08 AM - last edited on 11 May 2023 01:05 PM by AgataWlodarczyk
Hi, I am retrieving problem notification data in JSON file using Dynatrace API. When I verified data in json file, noticed that duration field (column)of problem is not showing in the data list. Please advise is there possibilities to get duration field in JSON file?
Thanks in advance.
Solved! Go to Solution.
08 Dec 2022 08:56 AM - edited 08 Dec 2022 08:56 AM
What API are you using? The Environment v2 /Problems endpoint contains the startTime and endTime of the Problem which you can use to calculate the duration.
08 Dec 2022 09:09 AM
Thanks for your reply @pahofmann . Yes I am using Environment API V2 only and retrieving duration time in my code using startTime and endTime externally but my question is there any possibilities to include duration parameter in API while getting data in JSON file.
08 Dec 2022 11:17 AM
No it's not possible to include that you have to calculate it. You could open a product idea not have the duration included.