我正在使用Rest API来检索APIM服务的指标。
我能够检索前两天的指标,突然间我无法检索它们。检索指标是否有任何限制?
请查看 API 文档。我在我身边试过这个,它对我有用:
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
请传递如上述 URl 所示的查询参数。
$filter:时间戳 ge 日期时间'2019-09-01T00:00:00'和时间戳 le 日期时间'2019-09-15T00:00:00'
API 版本: 2019-01-01