查询指标实时多维度分布
更新时间: 2025/02/14 17:10:56
按照指标维度聚合,获取各个维度值下对应的近 30 分钟指标值、采样数。
请求信息
请求 URI
GET https://data.netease.im/data/v3/nrtc/realtime/quality/distribution
路径参数
参数 | 类型 | 是否必填 | 说明 |
---|---|---|---|
tag | String | 是 | 指标维度。枚举值:
|
metric | String | 是 | 查询的指标名称。枚举值:
|
请求示例
cURLcurl --location 'https://data.netease.im/data/v3/nrtc/realtime/quality/distribution?tag=platform&metric=audio_stuck'
--header 'X-custom-traceid: 91629c975c4f269a6fc67bf9da0609be ' \
--header 'AppKey: b2efc79*******155e7d2' \
--header 'Nonce: 8dfdb33d2840' \
--header 'CurTime: 1443592222' \
--header 'CheckSum: b404199cdb06d20991bc6e7********c61016d' \
--header 'Content-Type: application/json; charset=utf-8'
响应信息
响应参数
参数名称 | 类型 | 说明 |
---|---|---|
code | Integer | 响应码 200 表示成功 |
msg | String | 错误信息 |
- data | List | 响应结果封装 |
tag | String | 维度值 |
metric | Double | 指标值 |
cnt | String | 指标采样数 |
响应示例
JSON{
"code": 200,
"data": [
{
"metric": 0.000589,
"cnt": 1658593,
"tag": "Windows"
},
{
"metric": 0.003937,
"cnt": 1065676,
"tag": "Android"
},
{
"metric": 0.001986,
"cnt": 3877,
"tag": "unknown"
},
{
"metric": 0.002569,
"cnt": 268447,
"tag": "iOS"
}
],
"request_id": "bc460d302ce74f01af575ddc4967****"
}
此文档是否对你有帮助?