Queries the composition of the first-frame latency within a specified time period.
Operation description
This operation queries the composition of the first-frame latency within a specified time range. The queries per second (QPS) limit for a single user is 10 calls per second. If you exceed this limit, API calls are throttled, which can affect your business. To prevent throttling, call this operation only as often as needed. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeRTSNativeSDKFirstFrameCost |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
No |
The start of the time range to query. The date is in ISO 8601 format and in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2021-12-10T20:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. The date is in ISO 8601 format and in UTC. The format is yyyy-MM-ddTHH:mm:ssZ. |
2021-12-10T21:00:00Z |
| DataInterval |
string |
No |
The time granularity in seconds. Valid values: 300, 3600, 14400, 28800, and 86400. If you do not specify this parameter or specify an invalid value, the default value 300 is used. |
300 |
| DomainNameList |
array |
No |
A list of domain names to query. Separate multiple domain names with a comma (,). You can specify up to 500 domain names. If you do not specify this parameter, data for all domain names is returned. This parameter is supported in software development kit (SDK) v2.1.0 and later. |
|
|
string |
No |
A domain name. |
a.example.com |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| DataInterval |
string |
The time granularity. |
300 |
| EndTime |
string |
The end of the time range. |
2021-12-10T21:00:00Z |
| FirstFrameCostData |
array<object> |
The composition of the average first-frame latency for each time interval. Unit: milliseconds. |
|
|
object |
|||
| Connected |
string |
The time from successful initialization to a successful connection. |
100 |
| FinishGetStreamInfo |
string |
The time from a successful connection to a successful subscription. |
89 |
| FirstFrameComplete |
string |
The time from receiving the first packet to rendering the first frame. |
32 |
| FirstPacket |
string |
The time from a successful subscription to receiving the first packet. |
132 |
| Initialized |
string |
The initialization time. |
1100 |
| TimeStamp |
string |
The start time of the time interval. |
2021-12-10T20:00:00Z |
| RequestId |
string |
The request ID. |
BC858082-736F-4A25-867B-E5B67C85ACF7 |
| StartTime |
string |
The start of the time range. |
2021-12-10T20:00:00Z |
Examples
Success response
JSON format
{
"DataInterval": "300",
"EndTime": "2021-12-10T21:00:00Z",
"FirstFrameCostData": [
{
"Connected": "100",
"FinishGetStreamInfo": "89",
"FirstFrameComplete": "32",
"FirstPacket": "132",
"Initialized": "1100",
"TimeStamp": "2021-12-10T20:00:00Z"
}
],
"RequestId": "BC858082-736F-4A25-867B-E5B67C85ACF7",
"StartTime": "2021-12-10T20:00:00Z"
}
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.