Queries stream ingest data at the app and stream granularity for a specified domain name.
Operation description
Only a single domain name can be queried. An error is returned if you specify multiple domain names.
Maximum query time range per request: 24 hours.
Minimum query granularity: 1 minute.
Maximum query period: 31 days.
This is a monitoring data API. The data collection and processing method differs from that used for billing. Do not use this API to calculate usage for billing reconciliation.
QPS limit
The maximum number of queries per second (QPS) per user for this operation is 10. If the number of calls per second exceeds the limit, throttling is triggered. This may affect your business. Call this operation as appropriate.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveStreamPushMetricDetailData |
get |
*Domain
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. |
cn-shanghai |
| DomainName |
string |
Yes |
|
example.com |
| StartTime |
string |
Yes |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the UTC time zone. Format: YYYY-MM-DDThh:mm:ssZ. |
2022-09-10T20:00:00Z |
| EndTime |
string |
Yes |
The end of the time range to query. Specify the time in the ISO 8601 standard in the UTC time zone. The end time must be later than the start time, and the difference cannot exceed 1 day. Format: YYYY-MM-DDThh:mm:ssZ. |
2022-09-10T21:00:00Z |
| AppName |
string |
No |
The name of the application to which the live stream belongs. Specify the application name to query data at the stream granularity for the corresponding application. |
liveApp**** |
| StreamName |
string |
No |
The name of the live stream. If you specify StreamName, data at the stream granularity is returned for the specified StreamName under the specified AppName. You must specify AppName when you specify StreamName. |
liveStream**** |
| NextPageToken |
string |
No |
The paging query token. Each query returns a maximum of 5,000 rows of data. If the data to be queried exceeds 5,000 rows, the response includes the start index for the next query. Pass this token in the request to continue querying data from the row after the last row returned in the previous query. |
UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0= |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| DomainName |
string |
The accelerated domain name. |
example.com |
| EndTime |
string |
The end of the time range for the returned data. The time follows the ISO 8601 standard in the UTC time zone. Format: YYYY-MM-DDThh:mm:ssZ. |
2022-09-10T21:00:00Z |
| NextPageToken |
string |
The paging query token. Each query returns a maximum of 5,000 rows of data. If the data to be queried exceeds 5,000 rows, the response includes the start index for the next query. Pass this token in the request to continue querying data from the row after the last row returned in the previous query. |
UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0= |
| PageSize |
integer |
The number of returned data rows. |
5000 |
| RequestId |
string |
The request ID. |
5EBF2AC3-4B73-40A5-8B32-83F49D5F035E |
| StartTime |
string |
The beginning of the time range to query. Specify the time in the ISO 8601 standard in the UTC time zone. Format: YYYY-MM-DDThh:mm:ssZ. |
2022-09-10T20:00:00Z |
| StreamDetailData |
object |
||
| StreamData |
array<object> |
The returned data entries. |
|
|
object |
The returned data entries. |
||
| AppName |
string |
The application name. |
liveApp**** |
| ReqBps |
number |
The average bandwidth. Unit: Bps. |
133.33 |
| ReqTraffic |
integer |
The total traffic. Unit: byte. |
1000 |
| StreamName |
string |
The stream name. |
liveStream**** |
| TimeStamp |
string |
The start time of the time slice. |
2022-09-10T20:00:00Z |
Examples
Success response
JSON format
{
"DomainName": "example.com",
"EndTime": "2022-09-10T21:00:00Z",
"NextPageToken": "UjsM9x3aVcJi9a0-ArwJUTTC67C***37C0=",
"PageSize": 5000,
"RequestId": "5EBF2AC3-4B73-40A5-8B32-83F49D5F035E",
"StartTime": "2022-09-10T20:00:00Z",
"StreamDetailData": {
"StreamData": [
{
"AppName": "liveApp****",
"ReqBps": 133.33,
"ReqTraffic": 1000,
"StreamName": "liveStream****",
"TimeStamp": "2022-09-10T20:00:00Z"
}
]
}
}
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 | InvalidPageToken | The token of page is invalid. | The specified paging token is incorrect. Specify the correct token returned by the last query and confirm that your request parameters are not modified. |
| 400 | InvalidAppName.Mismatch | The AppName param must be passed. | The AppName parameter does not match. Make sure that you specify the correct AppName. |
| 400 | InvalidStreamProtocol.NotSupport | The specified stream protocol is not support. | |
| 400 | InvalidStreamName.LengthTooLong | The specified stream name is too long. | |
| 400 | InvalidAppName.LengthTooLong | The specified app name is too long. | |
| 400 | InvalidTime.ValueNotSupported | Specified Time is malformed. | The specified time is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.