Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure Monitor REST API用于Top N List等指标_Azure_Azure Rest Api_Azure Monitor - Fatal编程技术网

Azure Monitor REST API用于Top N List等指标

Azure Monitor REST API用于Top N List等指标,azure,azure-rest-api,azure-monitor,Azure,Azure Rest Api,Azure Monitor,我想使用Azure rest API按CPU时间百分比获取订阅的前10个VM。我正在使用下面的URL,它适用于一个特定的虚拟机,但是我如何获取所有这些URL,以便提取前10名,或者有什么方法可以从URL中获取前10名?我正在尝试获取Azure Monitor中虚拟机“TOP N LIST”选项卡上的相同数据 $request=”https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourc

我想使用Azure rest API按CPU时间百分比获取订阅的前10个VM。我正在使用下面的URL,它适用于一个特定的虚拟机,但是我如何获取所有这些URL,以便提取前10名,或者有什么方法可以从URL中获取前10名?我正在尝试获取Azure Monitor中虚拟机“TOP N LIST”选项卡上的相同数据

$request=”https://management.azure.com/subscriptions/${subscriptionId}/resourceGroups/${resourceGroupName}/providers/Microsoft.Storage/storageAccounts/contososostorage/providers/Microsoft.insights/metricDefinitions?api版本=2018-01-01”