Queries the cloud recording usage of ApsaraVideo Real-time Communication.
Operation description
-
Queries the recording length for each specification of cloud recording on a daily basis.
-
Supports queries at the ApsaraVideo Real-time Communication application granularity.
QPS limit
The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API calls are throttled, which may affect your business. Call this operation as needed.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveRtcRecordUsageData |
none |
*All Resource
|
None | None |
Request syntax
GET HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
The start time for the query. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2017-12-21T08:00:00Z |
| EndTime |
string |
Yes |
The end time for the query. The query granularity must be ≥ 5 minutes and ≤ 31 days. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2022-10-10T21:00:00Z |
| AppId |
string |
Yes |
The ID of the ApsaraVideo Real-time Communication application. You can view the ID in ApsaraVideo Real-time Communication application management. Navigate to ApsaraVideo Live > Live+ > Real-time Communication > Application Management to view your application IDs. |
intl7f92-a5a8*************7ce4eb44a6 |
| RecordMode |
string |
Yes |
The recording mode. Valid values:
|
0 |
| Interval |
string |
No |
The time granularity for the query data. Unit: seconds. Valid values:
|
3600 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
Id of the request |
16A96B9A-F2*************B92E68F4CD8 |
| RecordMode |
string |
The recording mode. Valid values:
|
0 |
| AppId |
string |
The ID of the ApsaraVideo Real-time Communication application that was queried. |
7fd341b3-c6fa-43e1-96b8-7295a1dd**** |
| TotalSummaryDuration |
number |
The total summary duration. Unit: seconds. |
150 |
| AudioSummaryDuration |
number |
The audio-only summary duration. Unit: seconds. |
20 |
| V480SummaryDuration |
number |
The summary duration of video at 480p or lower. Unit: seconds. |
30 |
| V720SummaryDuration |
number |
The summary duration of video at 720p or lower. Unit: seconds. |
40 |
| V1080SummaryDuration |
number |
The summary duration of video above 720p (including 1080p). Unit: seconds. |
10 |
| Data |
array<object> |
The usage statistics information. |
|
|
object |
The usage statistics information. |
||
| Timestamp |
string |
The timestamp of the data point. Format: yyyy-MM-ddTHH:mm:ssZ (UTC time). |
2022-10-10T20:00:00Z |
| TotalDuration |
number |
The total duration. Unit: seconds. |
150 |
| AudioDuration |
number |
The audio-only duration. Unit: seconds. |
20 |
| V480Duration |
number |
The duration of video at 480p or lower. Unit: seconds. |
30 |
| V720Duration |
number |
The duration of video at 720p or lower. Unit: seconds. |
40 |
| V1080Duration |
number |
The duration of video above 720p. Unit: seconds. |
10 |
Examples
Success response
JSON format
{
"RequestId": "16A96B9A-F2*************B92E68F4CD8",
"RecordMode": "0",
"AppId": "7fd341b3-c6fa-43e1-96b8-7295a1dd****",
"TotalSummaryDuration": 150,
"AudioSummaryDuration": 20,
"V480SummaryDuration": 30,
"V720SummaryDuration": 40,
"V1080SummaryDuration": 10,
"Data": [
{
"Timestamp": "2022-10-10T20:00:00Z",
"TotalDuration": 150,
"AudioDuration": 20,
"V480Duration": 30,
"V720Duration": 40,
"V1080Duration": 10
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
| 400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | The end time does not match the start time. Make sure that the start and end times match. |
| 400 | InvalidRecordModeParameter | RecordMode parameter error. | RecordMode parameter error |
| 400 | InvalidAppIdParameter | AppId parameter error. | AppId parameter error |
| 400 | InvalidTimeSpan | The time span exceeds the limit. | The time span exceeds the limit. Please refer to the API documentation to specify a reasonable time span. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.