你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Elastic Pools - List Metric Definitions
返回弹性池指标定义。
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions?api-version=2014-04-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
elastic
|
path | True |
string |
弹性池的名称。 |
resource
|
path | True |
string |
包含该资源的资源组名称。 可以从 Azure 资源管理器 API 或门户获取此值。 |
server
|
path | True |
string |
服务器的名称。 |
subscription
|
path | True |
string |
用于标识 Azure 订阅的订阅 ID。 |
api-version
|
query | True |
string |
要用于请求的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
确定 |
示例
List database usage metrics
示例请求
示例响应
{
"value": [
{
"name": {
"value": "cpu_percent",
"localizedValue": "CPU percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT15S",
"retention": "PT1H"
},
{
"timeGrain": "PT60S",
"retention": "PT1H"
},
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "physical_data_read_percent",
"localizedValue": "Data IO percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT15S",
"retention": "PT1H"
},
{
"timeGrain": "PT60S",
"retention": "PT1H"
},
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "log_write_percent",
"localizedValue": "Log IO percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT15S",
"retention": "PT1H"
},
{
"timeGrain": "PT60S",
"retention": "PT1H"
},
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "dtu_consumption_percent",
"localizedValue": "DTU percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT15S",
"retention": "PT1H"
},
{
"timeGrain": "PT60S",
"retention": "PT1H"
},
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "storage",
"localizedValue": "Total database size"
},
"unit": "Bytes",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Maximum",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "xtp_storage_percent",
"localizedValue": "In-Memory OLTP storage percent"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT15S",
"retention": "PT1H"
},
{
"timeGrain": "PT60S",
"retention": "PT1H"
},
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "workers_percent",
"localizedValue": "Workers percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "sessions_percent",
"localizedValue": "Sessions percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "dtu_limit",
"localizedValue": "DTU limit"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "dtu_used",
"localizedValue": "DTU used"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Average",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "connection_successful",
"localizedValue": "Successful Connections"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Total",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "connection_failed",
"localizedValue": "Failed Connections"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Total",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "blocked_by_firewall",
"localizedValue": "Blocked by Firewall"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Total",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "deadlock",
"localizedValue": "Deadlocks"
},
"unit": "Count",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Total",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
},
{
"name": {
"value": "storage_percent",
"localizedValue": "Database size percentage"
},
"unit": "Percent",
"resourceUri": "/subscriptions/b6a6e0c5-e79c-4c6d-a878-72eafbca4cf2/resourceGroups/QA/providers/Microsoft.Sql/servers/nafantest/databases/db1",
"primaryAggregationType": "Maximum",
"metricAvailabilities": [
{
"timeGrain": "PT5M",
"retention": "P14D"
},
{
"timeGrain": "PT1H",
"retention": "P14D"
},
{
"timeGrain": "P1D",
"retention": "P14D"
}
]
}
]
}
定义
名称 | 说明 |
---|---|
Metric |
指标可用性值。 |
Metric |
数据库指标定义。 |
Metric |
对列表数据库指标定义请求的响应。 |
Metric |
数据库指标名称。 |
Primary |
定义指标值的显示方式的主要聚合类型。 |
Unit |
指标的单位。 |
MetricAvailability
指标可用性值。
名称 | 类型 | 说明 |
---|---|---|
retention |
string |
数据库指标的保留期长度。 |
timeGrain |
string |
数据库指标的粒度。 |
MetricDefinition
数据库指标定义。
名称 | 类型 | 说明 |
---|---|---|
metricAvailabilities |
指标的数据库指标可用性列表。 |
|
name |
指标的名称信息。 |
|
primaryAggregationType |
定义指标值的显示方式的主要聚合类型。 |
|
resourceUri |
string |
数据库的资源 URI。 |
unit |
指标的单位。 |
MetricDefinitionListResult
对列表数据库指标定义请求的响应。
名称 | 类型 | 说明 |
---|---|---|
value |
数据库的指标定义列表。 |
MetricName
数据库指标名称。
名称 | 类型 | 说明 |
---|---|---|
localizedValue |
string |
数据库指标的友好名称。 |
value |
string |
数据库指标的名称。 |
PrimaryAggregationType
定义指标值的显示方式的主要聚合类型。
名称 | 类型 | 说明 |
---|---|---|
Average |
string |
|
Count |
string |
|
Maximum |
string |
|
Minimum |
string |
|
None |
string |
|
Total |
string |
UnitDefinitionType
指标的单位。
名称 | 类型 | 说明 |
---|---|---|
Bytes |
string |
|
BytesPerSecond |
string |
|
Count |
string |
|
CountPerSecond |
string |
|
Percent |
string |
|
Seconds |
string |