Domain name for API request: mdc.tencentcloudapi.com.
This API is used to query the media quality of a StreamLink flow.
A maximum of 20 requests can be initiated per second for this API.
The following request parameter list only provides API request parameters and some common parameters. For the complete common parameter list, see Common Request Parameters.
Parameter Name | Required | Type | Description |
---|---|---|---|
Action | Yes | String | Common Params. The value used for this API: DescribeStreamLinkFlowStatistics. |
Version | Yes | String | Common Params. The value used for this API: 2020-08-28. |
Region | No | String | Common Params. This parameter is not required for this API. |
FlowId | Yes | String | The flow ID. |
Type | Yes | String | Whether to query the inputs or outputs. Valid values: input, output. |
InputOutputId | Yes | String | The input or output ID. |
Pipeline | Yes | String | Whether to query the primary or backup pipeline. Valid values: 0, 1. |
Period | Yes | String | The query interval. Valid values: 5s, 1min, 5min, 15min. |
StartTime | Yes | String | The start time for query, which is 1 hour ago by default. You can query statistics in the last 7 days. It must be in UTC format, such as 2020-01-01T12:00:00Z . |
EndTime | Yes | String | The end time for query, which is 1 hour after the start time by default. The longest time range allowed for query is 24 hours. It must be in UTC format, such as 2020-01-01T12:00:00Z . |
Parameter Name | Type | Description |
---|---|---|
Infos | Array of FlowStatisticsArray | A list of the media data. |
RequestId | String | The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. |
POST / HTTP/1.1
Host: mdc.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeStreamLinkFlowStatistics
<Common request parameters>
{
"FlowId": "0175723949ba0956b92d0bf40cfe",
"StartTime": "2020-12-10T11:00:00Z",
"EndTime": "2020-12-10T12:00:00Z",
"Period": "1min",
"Type": "input",
"Pipeline": "0",
"InputOutputId": "0175723949bb0956b92d0bf40cff"
}
{
"Response": {
"Infos": [
{
"Timestamp": 1610953200,
"FlowStatistics": [
{
"SessionId": "562328572",
"ClientIp": "134.175.180.167",
"Network": 1748053,
"Video": [
{
"Fps": 17,
"Rate": 1458950,
"Pid": 256
}
],
"Audio": [
{
"Fps": 28,
"Rate": 114462,
"Pid": 257
},
{
"Fps": 30,
"Rate": 116787,
"Pid": 258
}
]
}
]
}
],
"RequestId": "4d9bcf8e-32c5-49ed-b145-875ad65c3d46"
}
}
TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.
The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.
Error Code | Description |
---|---|
InternalError | Internal error. |
InvalidParameter.EndTime | Invalid EndTime . |
InvalidParameter.Id | Invalid ID. |
InvalidParameter.InputOutputId | Invalid InputOutputId . |
InvalidParameter.NotFound | No information found. |
InvalidParameter.Period | Invalid Period . |
InvalidParameter.Pipeline | Invalid Pipeline . |
InvalidParameter.StartTime | Invalid StartTime . |
InvalidParameter.Type | Invalid Type . |
Was this page helpful?