bs43
March 31, 2025, 12:23pm
1
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.
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)
bs43
April 7, 2025, 5:58am
3
Hi @mark_bley , Yes converted as follows and, now it is good
v2/problems?problemSelector=managementZones(“MZNAME”)&pagesize=500
Thanks