按设备列表获取取流详情
接口描述
获取指定设备集合的取流详情,其中包括如下信息:
- 当前正在取流的设备列表
- 当前取流所占用的总带宽
- 当前取流的总画面数
- 每台设备占用的总带宽
- 每台设备取流的总画面数
请求说明
接口ID |
协议 |
方法 |
PATH |
14 |
HTTPS |
POST |
/openapi/v1/stp/user/devices/video/detail |
PATH参数
无
URL参数
参数 |
类型 |
必填 |
说明 |
accesskey_id |
string |
是 |
参见签名认证 |
expires |
int |
是 |
参见签名认证 |
signature |
string |
是 |
参见签名认证 |
HTTP请求头
字段 |
值 |
Content-Type |
application/json |
请求参数
请求参数以Json格式放置于Body中,此接口请求参数是一个Json对象数组,对象字段如下:
参数 |
类型 |
必填 |
说明 |
+ sn |
string |
是 |
设备SN |
请求示例
POST https:
Host: open.vzicloud.com
Content-Length: 56
Content-Type: application/json
[{"sn":"12345678-87654321"},{"sn":"12345678-87654322"}]
注意:您无法将请求示例的链接地址贴入浏览器直接运行,此示例仅展示URL格式,由于AccessKey具备有效期,您访问时此链接已过期。
返回说明
返回参数
参数 |
类型 |
说明 |
bandwidth |
float |
当前取流所占用的总带宽,单位:Mbps |
concurrency |
int |
当前取流的总画面数,单位:个 |
items |
array |
当前正在取流的设备列表 |
+ sn |
string |
设备序列号 |
+ user_tag |
string |
用户标识 |
+ bandwidth |
float |
当前设备所占用的总带宽,单位:Mbps |
+ concurrency |
int |
当前设备取流的总画面数,单位:个 |
返回示例
{
"bandwidth": 0.5,
"concurrency": 1,
"items": [
{
"sn": "12345678-87654321",
"user_tag": "",
"bandwidth": 0.5,
"concurrency": 1
},
{
"sn": "12345678-87654322",
"user_tag": "",
"bandwidth": 0,
"concurrency": 0
}
]
}