You need to enable JavaScript to run this app.
WebRTC 传输网络

WebRTC 传输网络

复制全文
指标监控
获取实时公共流订阅数据 ListRealTimePublicStreamInfo
复制全文
获取实时公共流订阅数据 ListRealTimePublicStreamInfo

你可以使用此接口查询一段时间内,某个应用的公共流订阅数据。

注意事项

指标聚合时间为 30s,若查询间隔包含第 0s 或 30s,会返回对应时间点的数据,否则为空。

请求说明

  • 请求方式:POST
  • 请求地址:https://rtc.volcengineapi.com?Action=ListRealTimePublicStreamInfo&Version=2023-11-01

调试

请求参数

Query

参数类型是否必选示例值描述
ActionStringListRealTimePublicStreamInfo接口名称。当前 API 的名称为 ListRealTimePublicStreamInfo
VersionString2023-11-01接口版本。当前 API 的版本为 2023-11-01

Body

参数类型是否必选示例值描述
AppIdString661****543cf应用 ID。在 WTN 控制台上获取。

StreamId

String

stream1

要查询的公共流 ID,多个用户流 ID 用逗号隔开。
若不填则查询当前 AppId 下所有公共流。

StartTimeString2024-11-07T00:00:00+08:00查询起始时间戳,格式为 RFC3339,单位为秒。
EndTimeString2024-11-08T00:00:00+08:00查询结束时间戳,格式为 RFC3339,单位为秒。
IndicatorArray of String["pull_num"]查询的指标名称,目前仅支持 pull_num(订阅数)。

返回参数

参数类型示例值描述
IndicatorsArray of Indicator-公共流指标详细信息

Indicator

参数类型示例值描述
NameStringpull_num查询指标名称
UnitString-查询指标单位
DataArray of IndicatorData-查询指标详细信息

IndicatorData

参数类型示例值描述
ValueDouble99.99指标值,浮点数,保留两位小数。
TimeStampString2021-07-24T00:00:00+08:00指标聚合时间,即指标值对应时间段的开始时刻(每 30s 一聚合)。格式为 RFC3339 规范。指标聚合时间,即指标值对应时间段的开始时刻(每 30s 一聚合)。格式为 RFC3339 规范。
StreamIdStringstream1查询公共流 ID

请求示例

POST https://rtc.volcengineapi.com?Action=ListRealTimePublicStreamInfo&Version=2023-11-01
{
    "AppId": "661****543cf",
    "StartTime": "2024-11-11T10:00:00+08:00",
    "EndTime": "2024-11-11T12:00:00+08:00",
    "Indicator": [
        "pull_num"
    ],
    "StreamId": "steam1"
}

返回示例

{
    "ResponseMetadata": {
        "RequestId": "021*****7ee00f6f",
        "Action": "ListRealTimePublicStreamInfo",
        "Version": "2023-11-01",
        "Service": "wtn",
        "Region": "cn-north-1"
    },
    "Result": {
        "Indicators": [
            {
                "Name": "pull_num",
                "Unit": "",
                "Data": [
                    {
                        "TimeStamp": "2024-11-11T10:00:00+08:00",
                        "Value": 1,
                        "StreamId": "AC22010021123"
                    },
                    {
                        "TimeStamp": "2024-11-11T10:00:30+08:00",
                        "Value": 1,
                        "StreamId": "AC22010021123"
                    }
                ]
            }
        ]
    }
}
最近更新时间:2025.08.05 15:29:51
这个页面对您有帮助吗?
有用
有用
无用
无用