你可以使用此接口查询一段时间内,某个应用的音视频通话离线质量指标数据。
若要查询地域分布、设备平台、网络类型等维度的离线质量数据,建议调用 ListQualityDistribution 接口。

使用说明
接口行为

你可以调用 ListQuality 接口,指定你所属的 AppId,指标类型和查询时间段,查询该时间段内指标的数据。

调用接口

关于调用接口的服务地址、通信协议、字符编码和签名机制,参看调用OpenAPI。

注意事项
请求说明
请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。

Query
参数类型是否必选示例值描述
ActionString是ListQuality接口名称。当前 API 的名称为 ListQuality。
VersionString是2020-12-01接口版本。当前 API 的版本为 2020-12-01。
Body
参数类型是否必选示例值描述
AppIdString是Your_AppId你的音视频应用的唯一标志。
StartTimeString是2021-07-24T00:00:00+08:00查询起始时间戳,格式为 RFC3339,单位为秒。
EndTimeString是2021-07-28T00:00:00+08:00查询结束时间戳,格式为 RFC3339,单位为秒。
IndicatorArray of String是["stall_rate","join_room_success_rate"]查询的指标名称。可同时查询多个指标。Indicator 可选值,参看质量数据相关 indicator。

AggregateGranularity

String

是

1d

返回聚合时间的粒度,支持设为以下值:

  • 1d:粒度为 1 天
  • 5min:粒度为 5 分钟

OS

Array of String

否

["ios","linux"]

枚举值为:android、iOS、linux、mac、windows
ProductType = web 时该参数不生效

Access

Array of String

否

["2g","3g"]

网络类型,枚举值为:2g、3g、4g、5g、wifi

ProductType = web 时该参数不生效

RoomIdString否Your_RoomId房间 ID。如果不填,代表查询该 AppId 的整体离线指标。
UserIdArray of String否Your_UserId查询的用户 ID 列表,最多可以指定 20 个。值不合法时默认剔除。此字段仅在 RoomId 不为空时生效。

ProductType

String

否

native

要查询的产品类型,枚举值为 native 和 web。

  • native:指 android、iOS、linux、mac或 windows 平台的 veRTC SDK。
  • web:指 Web 平台的veRTC SDK。
    默认值为native
返回参数

下表仅列出本接口特有的返回参数,公共返回参数请参见返回结构。

参数类型示例值描述
AggregateGranularityString1d返回数据的粒度
IndicatorsArray of IndicatorsAudioStallDuration具体指标数据
Indicators
参数类型示例值描述
NameString5s_join_room_success_rate指标名称
UnitString%指标单位
DataArray of Data-具体的指标值以及对应时间
Data
参数类型示例值描述
TimeStampString2021-07-25T00:00:00+08:00指标聚合时间,即指标值对应时间段的开始时刻。可通过设置AggregateGranularity选择返回聚合时间的粒度。格式为 RFC3339 规范。
ValueDouble99.99指标值,浮点数,保留两位小数。
请求示例
POST https://rtc.volcengineapi.com?Action=ListQuality&Version=2020-12-01

{
    "AppId" : "Your_AppId",
    "StartTime" : "2021-07-24T00:00:00+08:00",
    "EndTime" : "2021-07-28T00:00:00+08:00",
    "Indicator":["stall_rate","join_room_success_rate"],
    "ProductType":"native",
    "AggregateGranularity":"1d",
    "OS":["ios","linux"],
    "Access":["2g","3g"],
    "RoomId":"Your_RoomId",
    "UserId":"Your_UserId"     
}
json
返回示例
{
    "ResponseMetadata": {
        "RequestId": "Your_RequestId",
        "Action": "ListQuality",
        "Version": "2020-12-01",
        "Service": "rtc",
        "Region": "cn-north-1"
    },
    "Result": {
        "AggregateGranularity": "1d",
        "Indicators": [
            {
                "Name": "5s_join_room_success_rate",
                "Unit": "%",
                "Data": [
                    {
                        "TimeStamp": "2021-07-24T00:00:00+08:00",
                        "Value": 98.68
                    },
                    {
                        "TimeStamp": "2021-07-25T00:00:00+08:00",
                        "Value": 98.2
                    }
                ]
            },
            {
                "Name": "10s_join_room_success_rate",
                "Unit": "%",
                "Data": [
                    {
                        "TimeStamp": "2021-07-24T00:00:00+08:00",
                        "Value": 99.68
                    },
                    {
                        "TimeStamp": "2021-07-25T00:00:00+08:00",
                        "Value": 99.2
                    }
                ]
            }
        ]
    }
}
json
错误码

您可访问公共错误码,获取更多错误码信息。