Metric Definitions - List
Lists the metric definitions for the resource.
GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01
GET https://management.azure.com/{resourceUri}/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01&metricnamespace={metricnamespace}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
resource
|
path | True |
|
The identifier of the resource. |
api-version
|
query | True |
|
The API version to use for this operation. |
metricnamespace
|
query |
|
Metric namespace to query metric definitions for. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Successful request to get the list of metric definitions |
|
Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
Name | Description |
---|---|
user_impersonation | impersonate your user account |
Examples
Get Metric Definitions without filter
Sample Request
GET https://management.azure.com/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricDefinitions/providers/microsoft.insights/metricDefinitions?api-version=2018-01-01&metricnamespace=Microsoft.Web/sites
Sample Response
{
"value": [
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/CpuTime",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "CpuTime",
"localizedValue": "CPU Time"
},
"isDimensionRequired": false,
"unit": "Seconds",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Requests",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Requests",
"localizedValue": "Requests"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesReceived",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "BytesReceived",
"localizedValue": "Data In"
},
"isDimensionRequired": false,
"unit": "Bytes",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/BytesSent",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "BytesSent",
"localizedValue": "Data Out"
},
"isDimensionRequired": false,
"unit": "Bytes",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http101",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http101",
"localizedValue": "Http 101"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http2xx",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http2xx",
"localizedValue": "Http 2xx"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http3xx",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http3xx",
"localizedValue": "Http 3xx"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http401",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http401",
"localizedValue": "Http 401"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http403",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http403",
"localizedValue": "Http 403"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http404",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http404",
"localizedValue": "Http 404"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http406",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http406",
"localizedValue": "Http 406"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http4xx",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http4xx",
"localizedValue": "Http 4xx"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/Http5xx",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "Http5xx",
"localizedValue": "Http Server Errors"
},
"isDimensionRequired": false,
"unit": "Count",
"primaryAggregationType": "Total",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/MemoryWorkingSet",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "MemoryWorkingSet",
"localizedValue": "Memory working set"
},
"isDimensionRequired": false,
"unit": "Bytes",
"primaryAggregationType": "Average",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageMemoryWorkingSet",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "AverageMemoryWorkingSet",
"localizedValue": "Average memory working set"
},
"isDimensionRequired": false,
"unit": "Bytes",
"primaryAggregationType": "Average",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
},
{
"id": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest/providers/microsoft.insights/metricdefinitions/AverageResponseTime",
"resourceId": "/subscriptions/07c0b09d-9f69-4e6e-8d05-f59f67299cb2/resourceGroups/Rac46PostSwapRG/providers/Microsoft.Web/sites/alertruleTest",
"namespace": "Microsoft.Web/sites",
"name": {
"value": "AverageResponseTime",
"localizedValue": "Average Response Time"
},
"isDimensionRequired": false,
"unit": "Seconds",
"primaryAggregationType": "Average",
"supportedAggregationTypes": [
"None",
"Average",
"Minimum",
"Maximum",
"Total",
"Count"
],
"metricAvailabilities": [
{
"timeGrain": "PT1M",
"retention": "P93D"
},
{
"timeGrain": "PT5M",
"retention": "P93D"
},
{
"timeGrain": "PT15M",
"retention": "P93D"
},
{
"timeGrain": "PT30M",
"retention": "P93D"
},
{
"timeGrain": "PT1H",
"retention": "P93D"
},
{
"timeGrain": "PT6H",
"retention": "P93D"
},
{
"timeGrain": "PT12H",
"retention": "P93D"
},
{
"timeGrain": "P1D",
"retention": "P93D"
}
],
"dimensions": [
{
"value": "Instance",
"localizedValue": "Instance"
}
]
}
]
}
Definitions
Aggregation |
the aggregation type of the metric. |
Error |
Describes the format of Error response. |
Localizable |
The localizable string class. |
Metric |
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain. |
Metric |
Metric definition class specifies the metadata for a metric. |
Metric |
Represents collection of metric definitions. |
Unit |
the unit of the metric. |
AggregationType
the aggregation type of the metric.
Name | Type | Description |
---|---|---|
Average |
|
|
Count |
|
|
Maximum |
|
|
Minimum |
|
|
None |
|
|
Total |
|
ErrorResponse
Describes the format of Error response.
Name | Type | Description |
---|---|---|
code |
|
Error code |
message |
|
Error message indicating why the operation failed. |
LocalizableString
The localizable string class.
Name | Type | Description |
---|---|---|
localizedValue |
|
the locale specific value. |
value |
|
the invariant value. |
MetricAvailability
Metric availability specifies the time grain (aggregation interval or frequency) and the retention period for that time grain.
Name | Type | Description |
---|---|---|
retention |
|
the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. |
timeGrain |
|
the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. |
MetricDefinition
Metric definition class specifies the metadata for a metric.
Name | Type | Description |
---|---|---|
dimensions |
the name and the display name of the dimension, i.e. it is a localizable string. |
|
id |
|
the resource identifier of the metric definition. |
isDimensionRequired |
|
Flag to indicate whether the dimension is required. |
metricAvailabilities |
the collection of what aggregation intervals are available to be queried. |
|
name |
the name and the display name of the metric, i.e. it is a localizable string. |
|
namespace |
|
the namespace the metric belongs to. |
primaryAggregationType |
the primary aggregation type value defining how to use the values for display. |
|
resourceId |
|
the resource identifier of the resource that emitted the metric. |
supportedAggregationTypes |
|
the collection of what aggregation types are supported. |
unit |
the unit of the metric. |
MetricDefinitionCollection
Represents collection of metric definitions.
Name | Type | Description |
---|---|---|
value |
the values for the metric definitions. |
Unit
the unit of the metric.
Name | Type | Description |
---|---|---|
BitsPerSecond |
|
|
ByteSeconds |
|
|
Bytes |
|
|
BytesPerSecond |
|
|
Cores |
|
|
Count |
|
|
CountPerSecond |
|
|
MilliCores |
|
|
MilliSeconds |
|
|
NanoCores |
|
|
Percent |
|
|
Seconds |
|
|
Unspecified |
|