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

Why Dynatrace API returning Null values in response

heramb_sawant
Participant

Hi ,
I am trying to  pull the metrics using Dynatrace v2 API "/metrics/query"  and getting null values in response. Can somebody please tell me reason for the same? 

Regards,
Heramb

1 REPLY 1

JamesKitson
Dynatrace Guru
Dynatrace Guru

The most likely answer is that for that timestamp there was no value reported. For example if you're asking for a week's worth of data in 10 minute intervals and for some of those no metric was reported we will report that as null for that timestamp and the values that do have data will have the proper number.

 

Here's an example where I had an extension running only for a period of time but I asked for data for a period where it was and was not running. It shows null instead of something like 0 because 0 is not the same as null.

 

JamesKitson_0-1648759601789.png