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
  • string

The identifier of the resource.

$filter
query
  • string

The filter to apply on the operation.
WARNING: $filter not documented since the operation will be deprecated in the next release.

api-version
query True
  • string

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
  • string

Error code

message
  • string

Error message indicating why the operation failed.

the usage metric name and display name.

Name Type Description
localizedValue
  • string

the locale specific value.

value
  • string

the invariant value.

Usage Metric data.

Name Type Description
currentValue
  • number
    double

the current value for the usage metric.

id
  • string

the id for the usage metric.

limit
  • number
    double

the quota limit the usage metric.

name

the usage metric name and display name.

nextResetTime
  • string
    date-time

the next reset time for the current value.

quotaPeriod
  • string
    duration

the amount of time it takes to reset the value.

unit
  • string

the unit for the usage metric.

Name Type Description
value

the usage values.