Queries batch data at the stream level for a specified accelerated domain name. This operation supports multiple protocols.
Operation description
You cannot query the number of new connections for the HTTP Live Streaming (HLS) protocol. The number of concurrent connections for HLS is calculated based on requests in the default format. To use a special format, you must submit a ticket for configuration. The default format is as follows:
M3U8 request example: http(s)://example.aliyundoc.com/AppName/StreamName.m3u8
TS request example: http(s)://example.aliyundoc.com/AppName/StreamName/153xxxxxxxx_137xxxxx.ts
Usage notes
Query limit: A single query can return a maximum of 5,000 rows of data.
Domain name limit: You can query data for only one domain name at a time. If you specify multiple domain names, an error is returned.
Time span limit: The maximum time span for a query is 24 hours.
Time granularity limit: The minimum time granularity for a query is 1 minute.
Query range limit: You can query data generated within the last 31 days.
Call frequency limit: A single user can make up to 10 calls per second.
Special parameter combination: If the
DomainNameparameter is specified and both theAppNameandStreamNameparameters are set toall, the operation returns the aggregate data for the accelerated domain name.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveUserStreamMetricData |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
No |
The accelerated domain name to query. Note
You can query data for only one domain name at a time. An error is returned if you specify multiple domain names. If you leave this parameter empty, the aggregate data for all accelerated domain names under your account is queried. If you do not specify |
test.com |
| StartTime |
string |
Yes |
The start of the time range to query. Specify the time in the ISO 8601 format: |
2015-12-10T20:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. The end time must be later than the start time. The time span cannot exceed 24 hours. Specify the time in the ISO 8601 format: |
2015-12-10T21:00:00Z |
| AppName |
string |
No |
The application name. If you specify an application name, the operation queries data for streams in that application. You must specify |
app |
| StreamName |
string |
No |
The stream name. If you specify a |
test.flv |
| Protocol |
string |
No |
The stream protocol. Specify a protocol to query data for that protocol. Supported protocols include Note
The rts option lets you query Real-Time Streaming (RTS) streams that use the Alibaba Real-Time Communication (ARTC) protocol.
|
flv |
| PageNumber |
integer |
Yes |
The current page number. |
1 |
| PageSize |
integer |
Yes |
The number of data entries to return on each page. The maximum value is 5,000. |
10 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| DomainName |
string |
The accelerated domain name. |
test.com |
| EndTime |
string |
The end of the time range. The time is in the YYYY-MM-DDThh:mm:ssZ format. |
2015-12-10T21:00:00Z |
| PageSize |
integer |
The number of entries displayed on each page. |
10 |
| RequestId |
string |
The request ID. |
16A96B9A-F203-4EC5-8E43-CB92E68F**** |
| StartTime |
string |
The start of the time range. The time is in the ISO 8601 standard in the |
2015-12-10T20:00:00Z |
| StreamDetailData |
array<object> |
The traffic data for each time interval. |
|
|
object |
The data group that is returned. |
||
| AppName |
string |
The application name. This value is returned regardless of whether you specify it in the request. |
app |
| Bps |
number |
The total bandwidth of the stream per minute, in bps. |
423304182.66 |
| Count |
integer |
The total number of concurrent connections for the stream per minute. Note
Concurrent Connections: The number of connections to client processes for the same stream within a unit of time. |
423304182 |
| FlvBps |
number |
The bandwidth for the FLV protocol, in bps. This parameter is returned only if the specified protocol is FLV. |
454 |
| FlvCount |
integer |
The number of concurrent connections for the FLV protocol. This parameter is returned only if the specified protocol is FLV. |
32 |
| FlvTraffic |
number |
The traffic for the FLV protocol, in bytes. This parameter is returned only if the specified protocol is FLV. |
1254 |
| HlsBps |
number |
The bandwidth for the HLS protocol, in bps. This parameter is returned only if the specified protocol is HLS. |
4456 |
| HlsCount |
integer |
The number of concurrent connections for the HLS protocol. This parameter is returned only if the specified protocol is HLS. |
56 |
| HlsTraffic |
number |
The traffic for the HLS protocol, in bytes. This parameter is returned only if the specified protocol is HLS. |
568 |
| NewConns |
integer |
The number of new connections to the stream per minute. |
450 |
| P2pBps |
number |
The bandwidth for the P2P protocol, in bps. This parameter is returned only if the specified protocol is P2P. |
6845 |
| P2pCount |
integer |
The number of concurrent connections for the P2P protocol. This parameter is returned only if the specified protocol is P2P. |
78 |
| P2pTraffic |
number |
The traffic for the P2P protocol, in bytes. This parameter is returned only if the specified protocol is P2P. |
4102 |
| RtmpBps |
number |
The bandwidth for the RTMP protocol, in bps. This parameter is returned only if the specified protocol is RTMP. |
3323 |
| RtmpCount |
integer |
The number of concurrent connections for the RTMP protocol. This parameter is returned only if the specified protocol is RTMP. |
63 |
| RtmpTraffic |
number |
The traffic for the RTMP protocol, in bytes. This parameter is returned only if the specified protocol is RTMP. |
5568 |
| RtsBps |
number |
The bandwidth for the RTS protocol, in bps. This parameter is returned only if the specified protocol is RTS. |
2361 |
| RtsCount |
integer |
The number of concurrent connections for the RTS protocol. This parameter is returned only if the specified protocol is RTS. |
89 |
| RtsTraffic |
number |
The traffic for the RTS protocol, in bytes. This parameter is returned only if the specified protocol is RTS. |
2322 |
| StreamName |
string |
The stream name. This value is returned regardless of whether you specify it in the request. |
test.flv |
| TimeStamp |
string |
The start time of the time slice. |
2015-12-10T20:00:00Z |
| Traffic |
number |
The total traffic of the stream per minute, in bytes. |
423304182 |
| TotalCount |
integer |
The total number of entries. |
50 |
| PageNumber |
integer |
The page number. |
1 |
Examples
Success response
JSON format
{
"DomainName": "test.com",
"EndTime": "2015-12-10T21:00:00Z",
"PageSize": 10,
"RequestId": "16A96B9A-F203-4EC5-8E43-CB92E68F****",
"StartTime": "2015-12-10T20:00:00Z",
"StreamDetailData": [
{
"AppName": "app",
"Bps": 423304182.66,
"Count": 423304182,
"FlvBps": 454,
"FlvCount": 32,
"FlvTraffic": 1254,
"HlsBps": 4456,
"HlsCount": 56,
"HlsTraffic": 568,
"NewConns": 450,
"P2pBps": 6845,
"P2pCount": 78,
"P2pTraffic": 4102,
"RtmpBps": 3323,
"RtmpCount": 63,
"RtmpTraffic": 5568,
"RtsBps": 2361,
"RtsCount": 89,
"RtsTraffic": 2322,
"StreamName": "test.flv",
"TimeStamp": "2015-12-10T20:00:00Z",
"Traffic": 423304182
}
],
"TotalCount": 50,
"PageNumber": 1
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Meter.ParamError | Param Error:%s,Please Check Again. | |
| 500 | Meter.ServerInternalError | The Request Processing Has Failed Due To Some Unknown Error. | |
| 500 | Meter.DataSourceQueryError | Data Source Error:%s,Please Try Again. | |
| 403 | Meter.AuthError | Authentication Failed,Please Try Again. | |
| 502 | Meter.ReadyTsError | Get ReadyTs Failed,Please Try Again. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.