Plans - List Metrics
取得指定方案的計量。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Subscriptions.Admin/plans/{plan}/metrics?api-version=2015-11-01
URI 參數
名稱 | 位於 | 必要 | 類型 | Description |
---|---|---|---|---|
plan
|
path | True |
string |
方案的名稱。 |
resource
|
path | True |
string |
資源所在的資源群組。 |
subscription
|
path | True |
string |
可唯一識別 Microsoft Azure 訂用帳戶的訂用帳戶認證。訂用帳戶標識碼會形成每個服務呼叫 URI 的一部分。 |
api-version
|
query | True |
string |
用戶端 API 版本。 |
回應
名稱 | 類型 | Description |
---|---|---|
200 OK |
確定 |
|
Other Status Codes |
未預期的錯誤 |
安全性
azure_auth
Azure Active Directory OAuth2 流程
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
名稱 | Description |
---|---|
user_impersonation | 模擬您的用戶帳戶 |
範例
Get the metrics of the specified plan.
Sample Request
GET https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourcegroups/plans/providers/Microsoft.Subscriptions.Admin/plans/testplan/metrics?api-version=2015-11-01
Sample Response
{
"value": [],
"nextLink": null
}
定義
名稱 | Description |
---|---|
Error |
錯誤回應。 |
Error |
錯誤定義。 |
Metric |
資源計量集,代表特定資源的計量。 |
Metric |
計量清單。 |
Metric |
資源計量單位。 |
Metric |
計量值 |
Error
錯誤回應。
名稱 | 類型 | Description |
---|---|---|
error |
錯誤詳細資料。 |
ErrorDefinition
錯誤定義。
名稱 | 類型 | Description |
---|---|---|
code |
string |
服務特定的錯誤碼,可作為 HTTP 錯誤碼的子狀態。 |
details |
內部錯誤詳細數據。 |
|
message |
string |
錯誤的描述。 |
Metric
資源計量集,代表特定資源的計量。
名稱 | 類型 | Description |
---|---|---|
endTime |
string |
計量的結束時間。 |
metricUnit |
計量單位。 |
|
metricValues |
在時間範圍中收集的計量值。 |
|
startTime |
string |
計量的開始時間。 |
timeGrain |
string |
計量的時間範圍。 |
MetricList
計量清單。
名稱 | 類型 | Description |
---|---|---|
nextLink |
string |
Continuation token (接續 Token) |
value |
Metric[] |
計量清單。 |
MetricUnit
資源計量單位。
名稱 | 類型 | Description |
---|---|---|
Bytes |
string |
位元組。 |
BytesPerSecond |
string |
每秒位元組數。 |
Count |
string |
計數。 |
CountPerSecond |
string |
每秒計數。 |
Seconds |
string |
秒數。 |
MetricValue
計量值
名稱 | 類型 | Description |
---|---|---|
average |
number |
計量範例週期的平均值。 |
count |
integer |
計量範例週期的度量數目。 |
maximum |
number |
計量範例週期的最大值。 |
minimum |
number |
計量範例期間的最小值。 |
properties |
object |
擴充屬性。 |
timeStamp |
string |
收集計量值時的時間戳。 |
total |
number |
計量範例期間的總值。 |