Usage Metrics
The List operation lists the usage metrics for the resource.
WARNING: This operation will be deprecated in the next release.
GET https://management.azure.com/{resourceUri}/usages?api-version={api-version}
GET https://management.azure.com/{resourceUri}/usages?api-version={api-version}&$filter={$filter}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
resourceUri
|
path | True |
|
The identifier of the resource. |
|
$filter
|
query |
|
The filter to apply on the operation. |
|
|
api-version
|
query | True |
|
Client Api Version. NOTE: This is not a client property, it must be explicit in the call and there is no default value. |
Responses
| Name | Type | Description |
|---|---|---|
| Other Status Codes |
Error response describing why the operation failed. |
|
| 200 OK |
Successful request to get the list of usage metric values |
Examples
Get usage metrics
Sample Request
GET https://management.azure.com//subscriptions/b67f7fec-69fc-4974-9099-a26bd6ffeda3/resourceGroups/Rac46PostSwapRG/providers/microsoft.insights/alertrules/chiricutin/usages?api-version=2014-04-01&$filter=null
Sample Response
{
"value": []
}
Definitions
| ErrorResponse | |
| LocalizableString |
the usage metric name and display name. |
| UsageMetric |
Usage Metric data. |
| UsageMetricCollection |
| Name | Type | Description |
|---|---|---|
| code |
|
Error code |
| message |
|
Error message indicating why the operation failed. |
the usage metric name and display name.
| Name | Type | Description |
|---|---|---|
| localizedValue |
|
the locale specific value. |
| value |
|
the invariant value. |
Usage Metric data.
| Name | Type | Description |
|---|---|---|
| currentValue |
|
the current value for the usage metric. |
| id |
|
the id for the usage metric. |
| limit |
|
the quota limit the usage metric. |
| name |
the usage metric name and display name. |
|
| nextResetTime |
|
the next reset time for the current value. |
| quotaPeriod |
|
the amount of time it takes to reset the value. |
| unit |
|
the unit for the usage metric. |
| Name | Type | Description |
|---|---|---|
| value |
the usage values. |