Docs 菜单
Docs 主页
/
MongoDB Cloud Manager
/ / / /

返回指标名称

在此页面上

  • Resource
  • 请求路径参数
  • 请求查询参数
  • 请求正文参数
  • 响应
  • 请求示例
  • 响应示例
  • 响应标头
  • 响应体

返回请求时指定项目的所有可用查询延迟指标名称及其各自的单位。

基本 URL: https://cloud.mongodb.com/api/public/v 1.0

GET /groups/{PROJECT-ID}/collStats/metrics
Parameter
类型
说明
PROJECT-ID
字符串
(必需。) 用于标识项目的唯一 24-十六进制数字string 。

所有参数都是可选的。

名称
类型
说明
默认
pretty
布尔
false
envelope
布尔
指示是否要将响应封装在信封中。
false

此端点不使用 HTTP 请求正文参数。

名称
类型
说明
groupId
字符串
用于标识项目的唯一的 24 位十六进制数字字符串。
衡量标准
阵列
列表,其中包含请求时指定项目的所有可用查询延迟指标名称及其各自的单位。
curl --user '{PUBLIC-KEY}:{PRIVATE-KEY}' --digest \
--header 'Accept: application/json' \
--include \
--request GET 'https://{CLOUD-MANAGER-HOST}:{PORT}/api/public/v1.0/groups/{PROJECT-ID}/collStats/metrics?pretty=true'
HTTP/1.1 200 OK
Vary: Accept-Encoding
Content-Type: application/json
Strict-Transport-Security: max-age=300
Date: {dateInUnixFormat}
Connection: keep-alive
Content-Length: {requestLengthInBytes}
X-MongoDB-Service-Version: gitHash={gitHash}; versionString={ApplicationVersion}
{
"groupId": "{PROJECT-ID}",
"metrics": [
{
"metricName": "READS_OPS",
"units": "SCALAR_PER_SECOND"
},
{
"metricName": "READS_LATENCY",
"units": "MICROSECONDS_PER_SECOND"
},
{
"metricName": "AVERAGE_READS_LATENCY",
"units": "MICROSECONDS"
},
{
"metricName": "READS_P50_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "READS_P95_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "READS_P99_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "WRITES_OPS",
"units": "SCALAR_PER_SECOND"
},
{
"metricName": "WRITES_LATENCY",
"units": "MICROSECONDS_PER_SECOND"
},
{
"metricName": "AVERAGE_WRITES_LATENCY",
"units": "MICROSECONDS"
},
{
"metricName": "WRITES_P50_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "WRITES_P95_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "WRITES_P99_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "COMMANDS_OPS",
"units": "SCALAR_PER_SECOND"
},
{
"metricName": "COMMANDS_LATENCY",
"units": "MICROSECONDS_PER_SECOND"
},
{
"metricName": "AVERAGE_COMMANDS_LATENCY",
"units": "MICROSECONDS"
},
{
"metricName": "COMMANDS_P50_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "COMMANDS_P95_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "COMMANDS_P99_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "TOTAL_OPS",
"units": "SCALAR_PER_SECOND"
},
{
"metricName": "TOTAL_LATENCY",
"units": "MICROSECONDS_PER_SECOND"
},
{
"metricName": "AVERAGE_TOTAL_OPS_LATENCY",
"units": "MICROSECONDS"
},
{
"metricName": "TOTAL_OPS_P50_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "TOTAL_OPS_P95_VALUE",
"units": "MICROSECONDS"
},
{
"metricName": "TOTAL_OPS_P99_VALUE",
"units": "MICROSECONDS"
}
]
}

后退

查询延迟