0

I am using Rest API to retrieve the metrics of APIM Service.

I am able to retrieve the metrics for first two days and suddenly I am not able to retrieve them. Are there any restrictions to retrieve the metrics?

Balasubramaniam
  • 371
  • 5
  • 14

1 Answers1

0

Please review the API Documentation. I tried this at my side and it worked for me:

GET https://management.azure.com/subscriptions/<SubID>/resourceGroups/<RG>/providers/Microsoft.ApiManagement/service/<ServiceName>/reports/byProduct?$filter=timestamp ge datetime'2019-09-01T00:00:00' and timestamp le datetime'2019-09-15T00:00:00'&api-version=2019-01-01

Please pass query parameters as shown in the above URl.

$filter : timestamp ge datetime'2019-09-01T00:00:00' and timestamp le datetime'2019-09-15T00:00:00'

api-version: 2019-01-01

Ketan
  • 1,530
  • 7
  • 16