tencent cloud

Tencent Cloud EdgeOne

DescribeTimingL7OriginPullData

ダウンロード
フォーカスモード
フォントサイズ
最終更新日: 2026-11-25 16:59:48

1. API Description

Domain name for API request: teo.intl.tencentcloudapi.com.

This API is used to query the origin-pull time series data of an L7 domain.
You can choose to group queries by specifying the query dimension DimensionName, which returns multiple groups of time series data. For detailed directions and usage limits, see How to Use APIs to Implement Group Query in a Single Call.

A maximum of 20 requests can be initiated per second for this API.

We recommend you to use API Explorer
Try it
API Explorer provides a range of capabilities, including online call, signature authentication, SDK code generation, and API quick search. It enables you to view the request, response, and auto-generated examples.

2. Input Parameters

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: DescribeTimingL7OriginPullData.
Version Yes String Common Params. The value used for this API: 2022-09-01.
Region No String Common Params. This parameter is not required.
ZoneIds.N Yes Array of String Site ID set. This parameter is required. You can input 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 need permissions for all site resources of this interface.
MetricNames.N Yes Array of String Metric list. Valid values:
  • l7Flow_outFlux_hy: Request traffic from EdgeOne node to origin server direction, unit: Byte;
  • l7Flow_outBandwidth_hy: Request bandwidth from EdgeOne node to origin server direction, unit: bps;
  • l7Flow_request_hy: request count from EdgeOne node to origin server direction, unit: count.
  • l7Flow_inFlux_hy: Response traffic from the origin server to the EdgeOne node, measurement unit: Byte;
  • l7Flow_inBandwidth_hy: Response bandwidth from the origin to the EdgeOne node, unit: bps.
StartTime Yes Timestamp ISO8601 Start time.
EndTime Yes Timestamp ISO8601 End time. The query time range (EndTime - StartTime) must be less than or equal to 31 days.
Interval No String Time granularity of the query. Valid values:
  • min: 1 minute;
  • 5min: 5 minutes;
  • hour: 1 hour;
  • day: 1 day.
If this parameter is not input, the granularity will be automatically calculated based on the interval between the start time and end time. Specifically, data will be queried with a granularity of min, 5min, hour, and day respectively when the period is no more than 2 hours, no more than 2 days, no more than 7 days, and over 7 days.
Filters.N No Array of QueryCondition Filter criteria. The detailed filter criteria are as follows:
  • domain: domain name requested by the client. If EdgeOne is connected via wildcard domain access, the data records the wildcard domain name rather than the specific domain name.
  • originStatusCode: Origin status code. This filter item is supported only when MetricNames = ["l7Flow_request_hy"].
    Options for the corresponding Value are as follows:
    • 1xx: Status codes of type 1xx;
    • 2xx: Status codes of type 2xx;
    • 3xx: Status codes of type 3xx;
    • 4xx: Status codes of type 4xx;
    • 5xx: Status codes of type 5xx;
    • Integers within the range [0, 600) (excluding 600).

Note: When DimensionName is not empty, only the equals operator is supported.
DimensionName No String

Query dimension name. Valid values:

  • domain: Domain name requested by the client. If the domain is connected to EdgeOne as a wildcard domain, it is recorded as a wildcard domain in the data.
    When using the domain dimension, you must include the domain filter item in Filters, and specify no more than 100 domain names to be queried in the list.
  • origin-status-code: Origin-pull status codes, such as 200 and 404.
    This dimension is supported only when MetricNames = ["l7Flow_request_hy"].
  • origin-status-code-category: Origin-pull status code categories, such as 2xx and 4xx.
    This dimension is supported only when MetricNames =["l7Flow_request_hy"].

If DimensionName is empty, data is aggregated by the AppId dimension by default, and only one set of data is returned.

If DimensionName is not empty, data is grouped by the specified query dimension and the corresponding time series data is returned. For example:

    When DimensionName = origin-status-code:
    • In the returned data, TimingDataRecords.TypeKey is the specific origin-pull status code, such as 200.
    • In the returned data, TimingDataRecords.TypeValue is the time series data for this status code.

Note: Concurrent calls are forbidden when specifying DimensionName for queries. If the query frequency limit is exceeded, an error InvalidParameter.ActionInProgress will be returned.

3. Output Parameters

Parameter Name Type Description
TotalCount Integer Total number of entries in the query result.
TimingDataRecords Array of TimingDataRecord List of origin-pull time series 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.

4. Example

Example1 Query Origin-Pull Data of All Layer-7 Sites

Query aggregated data of the l7Flow_outFlux_hy metric for all domain names under all sites from 2025-12-01T00:00:00Z to 2025-12-02T00:00:00Z.

Input Example

POST / HTTP/1.1
Host: teo.intl.tencentcloudapi.com
Content-Type: application/json
X-TC-Action: DescribeTimingL7OriginPullData
<Common request parameters>

{
    "ZoneIds": [
        "*"
    ],
    "MetricNames": [
        "l7Flow_outFlux_hy"
    ],
    "StartTime": "2025-12-01T00:00:00Z",
    "EndTime": "2025-12-02T00:00:00Z"
}

Output Example

{
    "Response": {
        "TimingDataRecords": [
            {
                "TypeKey": "1300224863",
                "TypeValue": [
                    {
                        "Avg": 157,
                        "Detail": [
                            {
                                "Timestamp": 1764547200,
                                "Value": 0
                            }
                        ],
                        "Max": 4643,
                        "MetricName": "l7Flow_outFlux_hy",
                        "Sum": 45461
                    }
                ]
            }
        ],
        "TotalCount": 1,
        "RequestId": "853e9004-b4b0-4ae8-8a8f-510fe42f01e2"
    }
}

5. Developer Resources

SDK

TencentCloud API 3.0 integrates SDKs that support various programming languages to make it easier for you to call APIs.

Command Line Interface

6. Error Code

The following only lists the error codes related to the API business logic. For other error codes, see Common Error Codes.

Error Code Description
InvalidParameter.ActionInProgress Operations are too frequent. Please try again later.
InvalidParameterValue.FiltersMustIncludeDimensionName When specifying the DimensionName parameter, the Filters field must contain filter criteria corresponding to DimensionName.
LimitExceeded.QueryTimeLimitExceeded Query time range exceeds the limit.
LimitExceeded.TimingDataItemLimitExceeded The time series data items queried this time exceed the limit.
OperationDenied.OriginPullDataNotSupported The current root account does not have permission to use the origin-pull data query interface. Contact after-sales service.

ヘルプとサポート

この記事はお役に立ちましたか?

フィードバック