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

Augh!!! - API call runs fine in Dynatrace Harness, but not in Python - It's the &to and &from qualifiers


I execute these parameters in both the Dynatrace API harness and in Python.


My issue is that it runs fine in the Dynatrace API harness, but NOT in Python, the &to and &from exclude all the data.

I have constructed hundreds of queries, and this is just weird!!!
Any advice would be appreciated.




Dynatrace Guru
Dynatrace Guru

I'm not familiar with Harness or any processing it may do on inputs.

You can try constructing it through the API Explorer first and make sure the structure is right independent of Python or other tools. You may want to share your Python snippet as well.

Lastly, if you're interested I recommend looking at our open-source Python API client which includes methods for querying data from the metrics API so you just need to provide the inputs instead of creating the queries yourself.


I figured it out. It was a dumb programming error on my part. I was reading my date fields in Python as integers, and the lead zeroes on day, month, hour, minute and second were reading as integers and truncating lead zeroes.

Thanks! 🙂

Featured Posts