Percentile Target - List Metrics
检索由给定帐户目标区域的给定筛选器确定的指标。 此 URL 仅适用于 PBS 和复制延迟数据
GET https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/targetRegion/{targetRegion}/percentile/metrics?api-version=2024-11-15&$filter={$filter}
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
account
|
path | True |
string minLength: 3maxLength: 50 pattern: ^[a-z0-9]+(-[a-z0-9]+)* |
Cosmos DB 数据库帐户名称。 |
resource
|
path | True |
string minLength: 1maxLength: 90 |
资源组的名称。 名称不区分大小写。 |
subscription
|
path | True |
string minLength: 1 |
目标订阅的 ID。 |
target
|
path | True |
string |
将数据写入到的目标区域。 Cosmos DB 区域,单词和每个单词的大小写之间的空格。 |
$filter
|
query | True |
string |
描述要返回的指标子集的 OData 筛选器表达式。 可筛选的参数是 name.value(指标的名称、可以具有多个名称)、startTime、endTime 和 timeGrain。 支持的运算符为 eq。 |
api-version
|
query | True |
string minLength: 1 |
用于此操作的 API 版本。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
已成功检索帐户和目标区域的百分位指标。 |
安全性
azure_auth
Azure Active Directory OAuth2 Flow
类型:
oauth2
流向:
implicit
授权 URL:
https://login.microsoftonline.com/common/oauth2/authorize
作用域
名称 | 说明 |
---|---|
user_impersonation | 模拟用户帐户 |
示例
CosmosDBDatabaseAccountRegionGetMetrics
示例请求
GET https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.DocumentDB/databaseAccounts/ddb1/targetRegion/East US/percentile/metrics?api-version=2024-11-15&$filter=$filter=(name.value eq 'Probabilistic Bounded Staleness') and timeGrain eq duration'PT5M' and startTime eq '2017-11-19T23:53:55.2780000Z' and endTime eq '2017-11-20T00:13:55.2780000Z
示例响应
{
"value": [
{
"timeGrain": "PT5M",
"startTime": "2017-11-19T23:53:55.2780000Z",
"endTime": "2017-11-20T00:13:55.2780000Z",
"unit": "Milliseconds",
"metricValues": [
{
"timestamp": "2017-11-19T23:53:55.2780000Z",
"P10": 1.11,
"P25": 2.5,
"P50": 4.34,
"P75": 5.2,
"P90": 6.77,
"P95": 7.1,
"P99": 8.3
}
],
"name": {
"value": "Probabilistic Bounded Staleness-S-West Central US-T-East US",
"localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-East US"
}
},
{
"timeGrain": "PT5M",
"startTime": "2017-11-19T23:53:55.2780000Z",
"endTime": "2017-11-20T00:13:55.2780000Z",
"unit": "Milliseconds",
"metricValues": [
{
"timestamp": "2017-11-19T23:53:55.2780000Z",
"P10": 1.11,
"P25": 2.5,
"P50": 4.34,
"P75": 5.2,
"P90": 6.77,
"P95": 7.1,
"P99": 8.3
}
],
"name": {
"value": "Probabilistic Bounded Staleness-S-West US-T-East US",
"localizedValue": "Probabilistic Bounded Staleness-S-West Central US-T-West US"
}
}
]
}
定义
名称 | 说明 |
---|---|
Metric |
指标名称。 |
Percentile |
百分位指标数据 |
Percentile |
对列表百分位指标请求的响应。 |
Percentile |
表示百分位指标值。 |
Unit |
指标的单位。 |
MetricName
指标名称。
名称 | 类型 | 说明 |
---|---|---|
localizedValue |
string |
指标的友好名称。 |
value |
string |
指标的名称。 |
PercentileMetric
百分位指标数据
名称 | 类型 | 说明 |
---|---|---|
endTime |
string (date-time) |
指标(ISO-8601 格式)的结束时间。 |
metricValues |
指定时间窗口和时间步骤的百分位指标值。 |
|
name |
指标的名称信息。 |
|
startTime |
string (date-time) |
指标(ISO-8601 格式)的开始时间。 |
timeGrain |
string |
用于汇总指标值的时间粒度。 |
unit |
指标的单位。 |
PercentileMetricListResult
对列表百分位指标请求的响应。
名称 | 类型 | 说明 |
---|---|---|
value |
帐户的百分位指标列表。 |
PercentileMetricValue
表示百分位指标值。
名称 | 类型 | 说明 |
---|---|---|
P10 |
number (double) |
指标的第 10 百分位值。 |
P25 |
number (double) |
指标的第 25 百分位值。 |
P50 |
number (double) |
指标的第 50 百分位值。 |
P75 |
number (double) |
指标的第 75 百分位值。 |
P90 |
number (double) |
指标的第 90 百分位值。 |
P95 |
number (double) |
指标的第 95 百分位值。 |
P99 |
number (double) |
指标的第 99 百分位值。 |
_count |
number (int32) |
指标的值数。 |
average |
number (double) |
指标的平均值。 |
maximum |
number (double) |
指标的最大值。 |
minimum |
number (double) |
指标的最小值。 |
timestamp |
string (date-time) |
指标时间戳(ISO-8601 格式)。 |
total |
number (double) |
指标的总值。 |
UnitType
指标的单位。
值 | 说明 |
---|---|
Bytes | |
BytesPerSecond | |
Count | |
CountPerSecond | |
Milliseconds | |
Percent | |
Seconds |