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

Dynatrace API Timestamp

ajdimanuel
Inactive

Hi,

I'm testing Dynatrace API sending GET parameter startTimestamp and endTimestamp. For converting timestamp dates I am using https://www.unixtimestamp.com/index.php but it is not working properly.

If I run a GET using a relative time (for example 15mins) the timestamp value has this format "1531386540000" (13 digits). When I generate a timestamp it has 10 digits, example "1531299600". Do you know how can I convert a time using same format as Dynatraces does?

Thanks.

Alberto.


2 REPLIES 2

wolfgang_beer
Dynatrace Champion
Dynatrace Champion

Multiply your timestamp by 1000 as Dynatrace uses milliseconds.


ajdimanuel
Inactive

ok, it works.

Thanks.

Alberto.