Elastic Pools - List Metric Definitions
Returnerar måttdefinitioner för elastisk pool.
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}/metricDefinitions?api-version=2014-04-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
elastic
|
path | True |
string |
Namnet på den elastiska poolen. |
resource
|
path | True |
string |
Namnet på resursgruppen som innehåller resursen. Du kan hämta det här värdet från Azure Resource Manager-API:et eller portalen. |
server
|
path | True |
string |
Namnet på servern. |
subscription
|
path | True |
string |
Prenumerations-ID:t som identifierar en Azure-prenumeration. |
api-version
|
query | True |
string |
DEN API-version som ska användas för begäran. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
OK |
Exempel
List database usage metrics
Exempelbegäran
Exempelsvar
{
"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"
}
]
}
]
}
Definitioner
Name | Description |
---|---|
Metric |
Ett värde för måtttillgänglighet. |
Metric |
En databasmåttdefinition. |
Metric |
Svaret på en begäran om databasmåttdefinitioner för en lista. |
Metric |
Ett databasmåttnamn. |
Primary |
Den primära aggregeringstypen som definierar hur måttvärden visas. |
Unit |
Enheten för måttet. |
MetricAvailability
Ett värde för måtttillgänglighet.
Name | Typ | Description |
---|---|---|
retention |
string |
Längden på kvarhållningen för databasmåttet. |
timeGrain |
string |
Databasmåttets kornighet. |
MetricDefinition
En databasmåttdefinition.
Name | Typ | Description |
---|---|---|
metricAvailabilities |
Listan över tillgängliga databasmått för måttet. |
|
name |
Namninformationen för måttet. |
|
primaryAggregationType |
Den primära aggregeringstypen som definierar hur måttvärden visas. |
|
resourceUri |
string |
Databasens resurs-URI. |
unit |
Enheten för måttet. |
MetricDefinitionListResult
Svaret på en begäran om databasmåttdefinitioner för en lista.
Name | Typ | Description |
---|---|---|
value |
Listan över måttdefinitioner för databasen. |
MetricName
Ett databasmåttnamn.
Name | Typ | Description |
---|---|---|
localizedValue |
string |
Det egna namnet på databasmåttet. |
value |
string |
Namnet på databasmåttet. |
PrimaryAggregationType
Den primära aggregeringstypen som definierar hur måttvärden visas.
Name | Typ | Description |
---|---|---|
Average |
string |
|
Count |
string |
|
Maximum |
string |
|
Minimum |
string |
|
None |
string |
|
Total |
string |
UnitDefinitionType
Enheten för måttet.
Name | Typ | Description |
---|---|---|
Bytes |
string |
|
BytesPerSecond |
string |
|
Count |
string |
|
CountPerSecond |
string |
|
Percent |
string |
|
Seconds |
string |