Call the DescribeLiveDomainRecordUsageData operation to query the number of concurrent recordings and the container format conversion usage.
Operation description
This operation queries the number of concurrent recordings per day and returns data points at specified intervals. You can use this data to determine the peak number of concurrent recordings for a day or a month.
Time-shifted streams are not included in the recording count to avoid double counting.
You can query data for one or more domain names. To query multiple domain names, separate them with a comma (,).
For data with a 1 minute granularity, the maximum query span is 24 hours, and the maximum retention period is 60 days.
For data with a 1 hour granularity, the maximum query span is 31 days, and the maximum retention period is 180 days.
For data with a 1 day granularity, the maximum query span is 90 days, and the maximum retention period is 366 days.
QPS limit
The queries per second (QPS) limit for each user is 10. If you exceed this limit, your API calls are throttled, which may affect your business. We recommend that you call this operation within the limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveDomainRecordUsageData |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
No |
The streaming domain name that you want to query.
|
example.com |
| StartTime |
string |
No |
The start of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time is in Coordinated Universal Time (UTC).
Note
The earliest start time you can set is 90 days before the current time. The time must be accurate to the second. |
2021-05-10T20:00:00Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC. The following limits apply:
|
2021-05-10T21:00:00Z |
| Region |
string |
No |
The region. Valid values:
|
cn-shanghai |
| SplitBy |
string |
No |
The key to group data by. Valid values:
Note
You can specify one or more keys. Separate multiple keys with a comma (,). The default value is |
domain,record_fmt |
| Interval |
string |
No |
The time granularity of the data to query. Unit: seconds. Valid values:
Note
If you do not set this parameter or specify an invalid value, the default value is 300 seconds when the time span is 31 days or less, and 86400 seconds when the time span is more than 31 days. |
300 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end of the time range. |
2021-05-10T21:00:00Z |
| StartTime |
string |
The start of the time range. |
2021-05-10T20:00:00Z |
| RequestId |
string |
The request ID. |
4B460F8B-993C-4F48-B98A-910811DEBFEB |
| RecordUsageData |
object |
||
| DataModule |
array<object> |
The recording usage data for each time interval. |
|
|
object |
|||
| Type |
string |
The recording file format. This parameter is returned only if the SplitBy parameter in the request includes |
MP4 |
| Domain |
string |
The streaming domain name. This parameter is returned only if the SplitBy parameter in the request includes |
example.com |
| Region |
string |
The region. |
cn-shanghai |
| TimeStamp |
string |
The start of the time interval. |
2021-05-10T20:00:00Z |
| Duration |
integer |
The total recording duration. Unit: seconds. |
3560 |
| Count |
integer |
The peak number of concurrent recordings. |
1 |
Examples
Success response
JSON format
{
"EndTime": "2021-05-10T21:00:00Z",
"StartTime": "2021-05-10T20:00:00Z",
"RequestId": "4B460F8B-993C-4F48-B98A-910811DEBFEB",
"RecordUsageData": {
"DataModule": [
{
"Type": "MP4",
"Domain": "example.com",
"Region": "cn-shanghai",
"TimeStamp": "2021-05-10T20:00:00Z",
"Duration": 3560,
"Count": 1
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 400 | InvalidTime.Malformed | Specified StartTime or EndTime is malformed. | |
| 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 | 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. |
| 400 | InvalidRecordFmt.NotSupported | The RecordFmt parameter is not supported. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | The value specified for the StartTime parameter is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.