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

Bad request from API response data

Quirina
Guide

Hi everyone,

I found the same API request and input parameters , but get the different response result in different time.

Last week, I use this request and input parameters to call one API and I can get some response data. but the same request and input parameters to call this morning, I get nothing. Could anyone help to check this please?

Request API and parameters:

https://{environmentid}.live.dynatrace.com/api/v2/metrics/query?metricSelector=builtin:synthetic.browser.totalDuration&resolution=2h&from=1679241600000&to=1679327940000&entitySelector=entityId(“ SYNTHETIC_TEST-5A94A13245AB6F4E”)&mzSelector

Input parameters:

metricSelector

builtin:synthetic.browser.totalDuration

resolution

2h

from

1679241600000 (millseconds)

to

1679327940000 (millseconds)

entitySelector

entityId(“SYNTHETIC_TEST-5A94A13245AB6F4E”)

mzSelector

 

Last week:

{  "totalCount": 1,  "nextPageKey": null,  "resolution": "2h",  "result": [    {      "metricId": "builtin:synthetic.browser.totalDuration",      "dataPointCountRatio": 0.0000012,      "dimensionCountRatio": 0.00001,      "data": [        {          "dimensions": [            "SYNTHETIC_TEST-5A94A13245AB6F4E"          ],          "dimensionMap": {            "dt.entity.synthetic_test": "SYNTHETIC_TEST-5A94A13245AB6F4E"          },          "timestamps": [            1679248800000,            1679256000000,            1679263200000,            1679270400000,            1679277600000,            1679284800000,            1679292000000,            1679299200000,            1679306400000,            1679313600000,            1679320800000,            1679328000000          ],          "values": [            10027,            47445,            9285,            11148,            9684,            21514,            10534,            9431,            7547,            19715,            12671,            null          ]        }      ]    }  ]

This morning:

Quirina_0-1679973919734.png

 

2 REPLIES 2

adam_gardner
Dynatrace Champion
Dynatrace Champion

Could this be a formatting issue? Did you copy this from a word document or somewhere that formats your quotation marks for you?

Can you try it without the quotations? : ...entityId(SYNTHETIC_TEST-5A94A13245AB6F4E)...

This issue has been resolved. Thank you very much😁

Featured Posts