[英]Is it possible to get all available metrics for an Azure resource type?
我現在對如何檢索每個資源的所有指標定義感到困惑。
您只需要在沒有metricnamespace
參數的情況下調用這個 REST API,它就會返回所有的度量定義,當提供了resourceUri
時,度量metricnamespace
就被決定了。
例如, resourceUri
是/subscriptions/<subscription-id>/resourceGroups/<group-name>/providers/Microsoft.Storage/storageAccounts/joystoragev2
,那么metricnamespace
是Microsoft.Storage/storageAccounts
。
GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01
有關指標命名空間支持的指標,請參閱此鏈接。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.