31 Mar 2025
01:23 PM
- last edited on
01 Apr 2025
07:37 AM
by
MaciejNeumann
In problems V2 we get the start and end time of a problem so from that i am trying to get the time taken to resolve the problem and i got it but as unix sec ,
made few calculation in grafana
Now need to show whether and got as unixseconds now could not able to change it to min or hours, so is there any API i am missing out.
Solved! Go to Solution.
04 Apr 2025 05:12 PM
no need for another API call, you already have the time in ms, just convert it to seconds, minutes or hours to your linking:
timestamp_s = timestamp_ms / 1000
timestamp_min = timestamp_ms / (1000 * 60)
timestamp_h = timestamp_ms / (1000 * 60 * 60)
07 Apr 2025 06:58 AM - edited 07 Apr 2025 07:00 AM
Hi @mark_bley , Yes converted as follows and, now it is good
v2/problems?problemSelector=managementZones("MZNAME")&pagesize=500
Thanks