获取云视频空间统计数据-GetVideoSpaceStatus
获取云视频空间统计数据
Request Parameters
Parameter name | Type | Description | Required |
SpaceName.n | string | 需要统计的视频云空间名称,默认统计账户下所有的空间 | No |
BeginTime | int | 查询数据的起始时间,格式:时间戳。如果有EndTime,BeginTime必 须赋值,如没有赋值,则返回缺少参数错误,如果没有EndTime, BeginTime也可以不复值,EndTime默认当前时间,BeginTime 默认前一天的当前时间。 | No |
EndTime | int | 查询数据的结束时间,格式:时间戳。 | No |
Response Elements
Parameter name | Type | Description | Required |
RetCode | int | 操作返回码 | Yes |
Action | string | 操作名称 | Yes |
DataSet | array | 存放数据的列表 参数见 VideoSpaceStatusSet | No |
VideoSpaceStatusSet
Parameter name | Type | Description | Required |
Time | int | 数据的日期。单位:unix时间戳 | No |
Storage | float | 存储量。单位:GB*天 | No |
Flux | float | 流量。单位:GB | No |
FhdCodecTime | int | 蓝光视频转码时长(单位:秒) | No |
ShdCodecTime | int | 超清视频转码时长(单位:秒) | No |
HdCodecTime | int | 高清视频转码时长(单位:秒) | No |
SdCodecTime | int | 普清视频转码时长(单位:秒) | No |
Request Example
https://api.ucloud.cn/?Action=GetVideoSpaceStatus&SpaceName.0=myspace&BeginTime=1399305600&EndTime=1399478400
Response Example
{ "Action": "GetVideoSpaceStatusResponse", "RetCode": 0, "DataSet": [ { "Time": 1399305600, "Storage": 33.5, "Flux": 65, "FhdCodecTime": 235, "ShdCodecTime": 333, "HdCodecTime": 453, "SdCodecTime": 552 } ] }