Domain name for API request: teo.intl.tencentcloudapi.com.
This API is used to query the L4 time series Data list.
A maximum of 100 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: DescribeTimingL4Data. |
| Version | Yes | String | Common Params. The value used for this API: 2022-09-01. |
| Region | No | String | Common Params. This parameter is not required. |
| StartTime | Yes | Timestamp ISO8601 | Start time. |
| EndTime | Yes | Timestamp ISO8601 | End time. The query time range (EndTime - StartTime) must be up to 31 days. |
| MetricNames.N | Yes | Array of String | Queried metric. Valid values:
|
| ZoneIds.N | Yes | Array of String | Site ID. This parameter will change from selectable to required after May 30, 2024. For details, see the announcement: Tencent Cloud EdgeOne Cloud API Change Notification. Import up to 100 site IDs. To query data of all sites under the Tencent Cloud root account, use * instead. To query account-level data, you must have permissions for all site resources of this interface. |
| ProxyIds.N | No | Array of String | Layer-4 instance list. If not specified, it means select all instances. |
| Interval | No | String | Time granularity of the query. Valid values:
min, 5min, hour, and day respectively when the period is no more than 1 hour, no more than 2 days, no more than 7 days, and over 7 days. |
| Filters.N | No | Array of QueryCondition | Filter criteria. The detailed Key values of filter criteria are as follows:
|
| Parameter Name | Type | Description |
|---|---|---|
| TotalCount | Integer | Total number of entries in the query result. |
| Data | Array of TimingDataRecord | List of L4 time series traffic data.
This interface does not support dimension query. By default, data is aggregated by root account and returned, that is, |
| 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. |
Query the time series data of the number of concurrent connections for all layer-4 instances under the selected site with ZoneId = zone-28kw53cmc6ky from 2025-10-01T08:00:00+08:00 to 2025-10-01T10:00:00+08:00.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTimingL4Data
<Common request parameters>
{
"ZoneIds": [
"zone-28kw53cmc6ky"
],
"StartTime": "2025-10-01T08:00:00+08:00",
"EndTime": "2025-10-01T10:00:00+08:00",
"Interval": "hour",
"MetricNames": [
"l4Flow_connections"
]
}
{
"Response": {
"RequestId": "e12e0659-ae34-4140-9878-4a61db0c3639",
"Data": [
{
"TypeKey": "251227260",
"TypeValue": [
{
"Avg": 16,
"Detail": [
{
"Timestamp": 1759276800,
"Value": 15
},
{
"Timestamp": 1759280400,
"Value": 17
},
{
"Timestamp": 1759284000,
"Value": 0
}
],
"Max": 17,
"MetricName": "l4Flow_connections",
"Sum": 32
}
]
}
],
"TotalCount": 1
}
}
Query the total access traffic time series data of the L4 instance forwarding rule with RuleId = rule-033950bf-6fc4-11ed-8ab2-525400a22580 under the site with ZoneId = zone-28kw53cmc6ky during the period from 2025-10-01T08:00:00+08:00 to 2025-10-01T10:00:00+08:00.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTimingL4Data
<Common request parameters>
{
"ZoneIds": [
"zone-28kw53cmc6ky"
],
"StartTime": "2025-10-01T08:00:00+08:00",
"EndTime": "2025-10-01T10:00:00+08:00",
"Interval": "hour",
"MetricNames": [
"l4Flow_flux"
],
"Filters": [
{
"Key": "ruleId",
"Operator": "equals",
"Value": [
"rule-033950bf-6fc4-11ed-8ab2-525400a22580"
]
}
]
}
{
"Response": {
"RequestId": "962792de-3bfe-483d-99a7-3cfde0467495",
"Data": [
{
"TypeKey": "251227260",
"TypeValue": [
{
"Avg": 5640,
"Detail": [
{
"Timestamp": 1671669600,
"Value": 3900
},
{
"Timestamp": 1671669900,
"Value": 7400
},
{
"Timestamp": 1671670800,
"Value": 5620
}
],
"Max": 7400,
"MetricName": "l4Flow_flux",
"Sum": 16920
}
]
}
],
"TotalCount": 1
}
}
Query the time series data of the number of new connections rate for the layer-4 instance with ProxyId = sid-3kr5me8zidha under the site with ZoneId = zone-28kw53cmc6ky from 2025-10-01T08:00:00+08:00 to 2025-10-01T10:00:00+08:00.
Note: Since the value type of l4Flow_newConnectionsRate in the queried metric MetricNames is Float, the time series data for the l4Flow_newConnectionsRate metric is returned from Data.N.FloatTypeValue.
POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTimingL4Data
<Common request parameters>
{
"ZoneIds": [
"zone-28kw53cmc6ky"
],
"StartTime": "2025-10-01T08:00:00+08:00",
"EndTime": "2025-10-01T10:00:00+08:00",
"Interval": "hour",
"MetricNames": [
"l4Flow_newConnectionsRate"
],
"Filters": [
{
"Key": "proxyId",
"Operator": "equals",
"Value": [
"sid-3kr5me8zidha"
]
}
]
}
{
"Response": {
"RequestId": "962792de-3bfe-483d-99a7-3cfde0467495",
"Data": [
{
"TypeKey": "251227260",
"TypeValue": [],
"FloatTypeValue": [
{
"Avg": 1.56,
"Detail": [
{
"Timestamp": 1671669600,
"Value": 1.08
},
{
"Timestamp": 1671669900,
"Value": 2.05
},
{
"Timestamp": 1671670800,
"Value": 1.56
}
],
"Max": 2.05,
"MetricName": "l4Flow_newConnectionsRate",
"Sum": 4.69
}
]
}
],
"TotalCount": 1
}
}
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 |
|---|---|
| FailedOperation | Operation failed. |
| InternalError.ProxyServer | Unknown error occurs on the real server. |
| InternalError.RouteError | Backend service routing address error. |
| LimitExceeded | The quota limit is exceeded. |
| ResourceNotFound | The resource does not exist. |
| ResourceUnavailable | Resources are unavailable. |
| UnauthorizedOperation.CamUnauthorized | Unauthorized Cam operation. |
Esta página foi útil?
Você também pode entrar em contato com a Equipe de vendas ou Enviar um tíquete em caso de ajuda.
comentários