07 Dec 2022
07:08 PM
- last edited on
11 May 2023
05:05 AM
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.
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.
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.
No it's not possible to include that you have to calculate it. You could open a product idea not have the duration included.