API 文档
  • History
  • Introduction
  • API Category
  • Making API Requests
    • Request Structure
    • Common Params
    • Signature v3
    • Signature
    • Responses
  • Site APIs
    • CreateZone
    • DescribeIdentifications
    • ModifyZone
    • DeleteZone
    • ModifyZoneStatus
    • CheckCnameStatus
    • IdentifyZone
    • DescribeZones
    • VerifyOwnership
    • 导出区域配置
    • 导入区域配置
    • 描述区域配置导入结果
  • Acceleration Domain Management APIs
    • CreateAccelerationDomain
    • DescribeAccelerationDomains
    • ModifyAccelerationDomain
    • ModifyAccelerationDomainStatuses
    • DeleteAccelerationDomains
    • CreateSharedCNAME
    • BindSharedCNAME
    • DeleteSharedCNAME
  • Site Acceleration Configuration APIs
    • CreateRule
    • DeleteRules
    • DescribeHostsSetting
    • DescribeRules
    • DescribeRulesSetting
    • DescribeZoneSetting
    • ModifyRule
    • ModifyZoneSetting
  • 边缘函数API
    • 创建函数
    • 描述函数
    • 修改函数
    • 创建函数规则
    • 删除函数
    • 描述函数规则
    • 修改函数规则
    • 修改函数规则优先级
    • 删除函数规则
    • 描述函数运行时环境
    • 处理函数运行时环境
  • Alias Domain APIs
    • CreateAliasDomain
    • DescribeAliasDomains
    • ModifyAliasDomain
    • ModifyAliasDomainStatus
    • DeleteAliasDomain
  • Security Configuration APIs
    • CreateSecurityIPGroup
    • DescribeSecurityIPGroup
    • ModifySecurityIPGroup
    • DeleteSecurityIPGroup
    • DescribeOriginProtection
    • DescribeSecurityTemplateBindings
    • ModifySecurityPolicy
    • BindSecurityTemplateToEntity
    • DescribeSecurityIPGroupInfo
  • Layer 4 Application Proxy APIs
    • CreateL4Proxy
    • ModifyL4Proxy
    • ModifyL4ProxyStatus
    • DescribeL4Proxy
    • DeleteL4Proxy
    • CreateL4ProxyRules
    • ModifyL4ProxyRules
    • ModifyL4ProxyRulesStatus
    • DescribeL4ProxyRules
    • DeleteL4ProxyRules
    • CreateApplicationProxy
    • ModifyApplicationProxy
    • ModifyApplicationProxyStatus
    • DescribeApplicationProxies
    • DeleteApplicationProxy
    • CreateApplicationProxyRule
    • ModifyApplicationProxyRule
    • ModifyApplicationProxyRuleStatus
    • DeleteApplicationProxyRule
  • Content Management APIs
    • CreatePurgeTask
    • DescribePurgeTasks
    • CreatePrefetchTask
    • DescribePrefetchTasks
    • DescribeContentQuota
  • Data Analysis APIs
    • DescribeDDoSAttackData
    • DescribeDDoSAttackEvent
    • DescribeDDoSAttackTopData
    • DescribeOverviewL7Data
    • DescribeTimingL4Data
    • DescribeTimingL7AnalysisData
    • DescribeTopL7AnalysisData
    • DescribeTimingL7CacheData
    • DescribeTopL7CacheData
  • Log Service APIs
    • DownloadL7Logs
    • DownloadL4Logs
    • CreateCLSIndex
    • CreateRealtimeLogDeliveryTask
    • ModifyRealtimeLogDeliveryTask
    • DeleteRealtimeLogDeliveryTask
    • DescribeRealtimeLogDeliveryTasks
  • Billing APIs
    • CreatePlan
    • UpgradePlan
    • RenewPlan
    • ModifyPlan
    • IncreasePlanQuota
    • DestroyPlan
    • CreatePlanForZone
    • BindZoneToPlan
    • DescribeBillingData
    • DescribeAvailablePlans
  • Certificate APIs
    • DescribeDefaultCertificates
    • ModifyHostsCertificate
  • Load Balancing APIs
    • CreateOriginGroup
    • ModifyOriginGroup
    • DeleteOriginGroup
    • DescribeOriginGroup
    • 创建负载均衡器
    • 修改负载均衡器
    • 删除负载均衡器
    • 描述负载均衡器列表
    • 描述源站组健康状态
  • Custom Response Page APIs
    • CreateCustomizeErrorPage
    • DescribeCustomErrorPages
    • ModifyCustomErrorPage
    • DeleteCustomErrorPage
  • DNS记录API
    • 创建DNS记录
    • 删除DNS记录
    • 描述DNS记录
    • 修改DNS记录状态
    • 修改DNS记录
  • Diagnostic Tool APIs
    • DescribeIPRegion
  • Version Management APIs
    • CreateConfigGroupVersion
    • DeployConfigGroupVersion
    • DescribeConfigGroupVersionDetail
    • DescribeConfigGroupVersions
    • DescribeDeployHistory
    • DescribeEnvironments
  • Data Types
  • Error Codes
当前内容仅提供英语版本,中文版我们将尽快补充,感谢您的理解。

DescribeTopL7AnalysisData

1. API Description

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

This API is used to query the top N data of the L7 domain services by a specified dimension.
Notes:

  1. There is a delay of about 10 minutes for this API. It is recommended to query data from 10 minutes before the current time.
  2. By default, the API returns traffic and request data after Web Security mitigation (that is, the clean traffic). Users can set Filters.mitigatedByWebSecurity to query data that has been mitigated by Web Security.

A maximum of 100 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 NameRequiredTypeDescription
ActionYesStringCommon Params. The value used for this API: DescribeTopL7AnalysisData.
VersionYesStringCommon Params. The value used for this API: 2022-09-01.
RegionNoStringCommon Params. This parameter is not required.
StartTimeYesTimestamp ISO8601The start time.
EndTimeYesTimestamp ISO8601End time. The query time range (EndTime - StartTime) must be less than or equal to 31 days.
MetricNameYesStringQueried metric. Valid values:
  • l7Flow_outFlux_country: L7 EdgeOne response traffic aggregated by the country/region dimension;
  • l7Flow_outFlux_province: L7 EdgeOne response traffic aggregated by the dimension of provinces in chinese mainland;
  • l7Flow_outFlux_statusCode: L7 EdgeOne response traffic aggregated by the status code dimension;
  • l7Flow_outFlux_domain: L7 EdgeOne response traffic aggregated by the domain name dimension;
  • l7Flow_outFlux_url: L7 EdgeOne response traffic aggregated by url path dimension.
  • l7Flow_outFlux_resourceType: L7 EdgeOne response traffic aggregated by the resource type dimension;
  • l7Flow_outFlux_sip: L7 EdgeOne response traffic aggregated by the client IP dimension;
  • l7Flow_outFlux_referers: L7 EdgeOne response traffic aggregated by referer dimension.
  • l7Flow_outFlux_ua_device: L7 EdgeOne response traffic aggregated by the device type dimension;
  • l7Flow_outFlux_ua_browser: L7 EdgeOne response traffic aggregated by the browser type dimension;
  • l7Flow_outFlux_ua_os: L7 EdgeOne response traffic aggregated by the operating system type dimension;
  • l7Flow_outFlux_ua: L7 EdgeOne response traffic aggregated by the User-Agent dimension;
  • l7Flow_request_country: L7 request count aggregated by the country/region dimension;
  • l7Flow_request_province: L7 request count aggregated by the dimension of provinces in the chinese mainland;
  • l7Flow_request_statusCode: L7 request count aggregated by the status code dimension;
  • l7Flow_request_domain: L7 request count aggregated by the domain name dimension;
  • l7Flow_request_url: L7 request count aggregated by url Path dimension.
  • l7Flow_request_resourceType: L7 request count aggregated by resource type dimension;
  • l7Flow_request_sip: L7 request count aggregated by the client IP dimension;
  • l7Flow_request_referer: L7 request count aggregated by referer dimension.
  • l7Flow_request_ua_device: L7 request count aggregated by the device type dimension;
  • l7Flow_request_ua_browser: L7 request count aggregated by the browser type dimension;
  • l7Flow_request_ua_os: L7 request count aggregated by the operating system type dimension.
  • l7Flow_request_ua: L7 request count aggregated by the User-Agent dimension.
  • ZoneIds.NNoArray of StringSite ID list. This parameter is required. A maximum of 100 site IDs can be imported. Use * to query data for all sites under the Tencent Cloud root account. To query account-level data, you must have resource permissions for all sites in this API.
    LimitNoIntegerIndicates the top N data to be queried. The maximum value is 1000. If this parameter is not input, the default value is 10, indicating querying the top 10 data.
    Filters.NNoArray of QueryConditionFiltering conditions used when querying data. Refer to the Filtering Conditions for Analytics document for the available filters applicable to L7 client traffic, bandwidth and requests.
    IntervalNoStringQuery time granularity. This parameter is deprecated.
    AreaNoStringData region. This parameter is deprecated. Please filter data by client region in Filters.country.

    3. Output Parameters

    Parameter NameTypeDescription
    TotalCountIntegerTotal number of query results.
    DataArray of TopDataRecordThe top N data list obtained from the statistics of L7 access data by a specified dimension MetricName.
    Note: This field may return null, which indicates a failure to obtain a valid value.
    RequestIdStringThe 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 Querying the Traffic Data of the Top URL Path Under a Specific HTTP Protocol Version

    This example shows you how to query the traffic data of the top URL path under a specific HTTP protocol version (HTTP/1.0 or HTTP/1.1).

    Input Example

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeTopL7AnalysisData
    <Common request parameters>
    
    {
        "Area": "mainland",
        "Interval": "day",
        "Limit": "1",
        "StartTime": "2022-07-31T00:00:00+08:00",
        "EndTime": "2022-08-29T19:17:59+08:00",
        "MetricName": "l7Flow_outFlux_url",
        "Filters": [
            {
                "Key": "protocol",
                "Operator": "equals",
                "Value": [
                    "HTTP/1.0",
                    "HTTP/1.1"
                ]
            }
        ],
        "ZoneIds": [
            "zone-2mzegj4vln5f"
        ]
    }

    Output Example

    {
        "Response": {
            "RequestId": "7c499897-8ad9-4a2d-884e-6154f283d723",
            "Data": [
                {
                    "DetailData": [
                        {
                            "Key": "path",
                            "Value": 1210001
                        }
                    ],
                    "TypeKey": "251227260"
                }
            ],
            "TotalCount": 1
        }
    }

    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 CodeDescription
    FailedOperationOperation failed.
    InternalError.ProxyServerAn unknown error occurred in the backend server.
    InvalidParameterParameter error.
    InvalidParameterValueInvalid parameter value.
    LimitExceededThe quota limit has been reached.
    LimitExceeded.QueryTimeLimitExceededQuery time limit exceeded.
    OperationDeniedOperation denied.
    ResourceNotFoundThe resource doesn’t exist.
    ResourceUnavailableThe resource is unavailable.
    UnauthorizedOperation.CamUnauthorizedCAM is not authorized.
    UnauthorizedOperation.NoPermissionThe sub-account is not authorized for the operation. Please get permissions first.