Domain name for API request: mdc.tencentcloudapi.com.
This API is used to query the SRT streaming performance 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: DescribeStreamLinkFlowSRTStatistics. |
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. |
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 . |
Period | Yes | String | The query interval. Valid values: 5s, 1min, 5min, 15min. |
Parameter Name | Type | Description |
---|---|---|
Infos | Array of FlowSRTInfo | A list of the SRT streaming performance 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: DescribeStreamLinkFlowSRTStatistics
<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": [
{
"SendRetransmissionRate": 0,
"RecvPacketLossRate": 0,
"Timestamp": 1607606280,
"SendPacketDropNumber": 0,
"RecvPacketDropNumber": 0,
"RTT": 17,
"SessionId": "xx",
"SendPacketLossRate": 0,
"RecvRetransmissionRate": 0
}
],
"RequestId": "137253816"
}
}
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?