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
    • 导出区域配置
    • 导入区域配置
    • 描述区域配置导入结果
  • Acceleration Domain Management APIs
    • CreateAccelerationDomain
    • DescribeAccelerationDomains
    • ModifyAccelerationDomain
    • ModifyAccelerationDomainStatuses
    • DeleteAccelerationDomains
    • CreateSharedCNAME
    • DescribeSharedCNAME
    • ModifySharedCNAME
    • BindSharedCNAME
    • DeleteSharedCNAME
  • Site Acceleration Configuration APIs
    • CreateL7AccRules
    • DescribeL7AccRules
    • ModifyL7AccRule
    • DeleteL7AccRules
    • DescribeL7AccSetting
    • ModifyL7AccSetting
    • ModifyL7AccRulePriority
  • 边缘函数API
    • 创建函数
    • 描述函数
    • 修改函数
    • 删除函数
    • 创建函数规则
    • 描述函数规则
    • 修改函数规则
    • 修改函数规则优先级
    • 删除函数规则
    • 描述函数运行时环境
    • 处理函数运行时环境
    • ModifyFunctionComponentBindings
    • DescribeFunctionComponentBindings
  • Alias Domain APIs
    • CreateAliasDomain
    • DescribeAliasDomains
    • ModifyAliasDomain
    • ModifyAliasDomainStatus
    • DeleteAliasDomain
  • Security Configuration APIs
    • CreateSecurityIPGroup
    • DescribeSecurityIPGroup
    • ModifySecurityIPGroup
    • DeleteSecurityIPGroup
    • DescribeSecurityTemplateBindings
    • BindSecurityTemplateToEntity
    • DescribeSecurityPolicy
    • ModifySecurityPolicy
    • DescribeSecurityIPGroupInfo
    • DescribeSecurityIPGroupContent
    • CreateSecurityJSInjectionRule
    • DescribeSecurityJSInjectionRule
    • ModifySecurityJSInjectionRule
    • DeleteSecurityJSInjectionRule
    • CreateSecurityClientAttester
    • DescribeSecurityClientAttester
    • ModifySecurityClientAttester
    • DeleteSecurityClientAttester
    • CreateWebSecurityTemplate
    • DeleteWebSecurityTemplate
    • DescribeWebSecurityTemplates
    • ModifyWebSecurityTemplate
    • DescribeDDoSProtection
    • DescribeWebSecurityTemplate
    • ModifyDDoSProtection
  • Layer 4 Application Proxy APIs
    • CreateL4Proxy
    • ModifyL4Proxy
    • ModifyL4ProxyStatus
    • DescribeL4Proxy
    • DeleteL4Proxy
    • CreateL4ProxyRules
    • ModifyL4ProxyRules
    • ModifyL4ProxyRulesStatus
    • DescribeL4ProxyRules
    • DeleteL4ProxyRules
  • Content Management APIs
    • CreatePurgeTask
    • DescribePurgeTasks
    • CreatePrefetchTask
    • DescribePrefetchTasks
    • DescribeContentQuota
    • DescribePrefetchOriginLimit
    • ModifyPrefetchOriginLimit
  • Data Analysis APIs
    • DescribeDDoSAttackData
    • DescribeDDoSAttackEvent
    • DescribeDDoSAttackTopData
    • DescribeOverviewL7Data
    • DescribeTimingL7OriginPullData
    • DescribeTimingL4Data
    • DescribeTimingL7AnalysisData
    • DescribeTopL7AnalysisData
    • DescribeTimingL7CacheData
    • DescribeTopL7CacheData
  • Log Service APIs
    • DownloadL7Logs
    • DownloadL4Logs
    • CreateCLSIndex
    • CreateRealtimeLogDeliveryTask
    • ModifyRealtimeLogDeliveryTask
    • DeleteRealtimeLogDeliveryTask
    • DescribeRealtimeLogDeliveryTasks
  • Billing APIs
    • CreatePlan
    • DescribePlans
    • UpgradePlan
    • RenewPlan
    • ModifyPlan
    • IncreasePlanQuota
    • DestroyPlan
    • CreatePlanForZone
    • BindZoneToPlan
    • DescribeBillingData
    • DescribeAvailablePlans
  • Certificate APIs
    • DescribeDefaultCertificates
    • ModifyHostsCertificate
    • ApplyFreeCertificate
    • CheckFreeCertificateVerification
  • Origin Protection APIs
    • EnableOriginACL
    • ModifyOriginACL
    • DescribeOriginACL
    • ConfirmOriginACLUpdate
    • DisableOriginACL
  • Load Balancing APIs
    • CreateOriginGroup
    • ModifyOriginGroup
    • DeleteOriginGroup
    • DescribeOriginGroup
    • 创建负载均衡器
    • 修改负载均衡器
    • 删除负载均衡器
    • 描述负载均衡器列表
    • 描述源站组健康状态
  • Diagnostic Tool APIs
    • DescribeIPRegion
  • Custom Response Page APIs
    • CreateCustomizeErrorPage
    • DescribeCustomErrorPages
    • ModifyCustomErrorPage
    • DeleteCustomErrorPage
  • Version Management APIs
    • CreateConfigGroupVersion
    • DeployConfigGroupVersion
    • DescribeConfigGroupVersionDetail
    • DescribeConfigGroupVersions
    • DescribeDeployHistory
    • DescribeEnvironments
    • ModifyZoneWorkMode
  • API Security APIs
    • CreateSecurityAPIResource
    • DescribeSecurityAPIResource
    • ModifySecurityAPIResource
    • DeleteSecurityAPIResource
    • CreateSecurityAPIService
    • DescribeSecurityAPIService
    • ModifySecurityAPIService
    • DeleteSecurityAPIService
  • DNS记录API
    • 创建DNS记录
    • 描述DNS记录
    • 修改DNS记录
    • 修改DNS记录状态
    • 删除DNS记录
  • Content Identifier APIs
    • CreateContentIdentifier
    • DescribeContentIdentifiers
    • ModifyContentIdentifier
    • DeleteContentIdentifier
  • Legacy APIs
    • DescribeOriginProtection
    • CreateRule
    • DescribeRules
    • ModifyRule
    • DeleteRules
    • DescribeZoneSetting
    • ModifyZoneSetting
    • DescribeHostsSetting
    • DescribeRulesSetting
    • CreateApplicationProxy
    • DescribeApplicationProxies
    • ModifyApplicationProxy
    • ModifyApplicationProxyStatus
    • DeleteApplicationProxy
    • CreateApplicationProxyRule
    • ModifyApplicationProxyRule
    • ModifyApplicationProxyRuleStatus
    • DeleteApplicationProxyRule
  • Ownership APIs
    • VerifyOwnership
  • Image and Video Processing APIs
    • CreateJustInTimeTranscodeTemplate
    • DescribeJustInTimeTranscodeTemplates
    • DeleteJustInTimeTranscodeTemplates
  • Multi-Channel Security Gateway APIs
    • ConfirmMultiPathGatewayOriginACL
    • DescribeMultiPathGatewayOriginACL
    • CreateMultiPathGateway
    • DescribeMultiPathGateways
    • DescribeMultiPathGateway
    • ModifyMultiPathGateway
    • ModifyMultiPathGatewayStatus
    • DeleteMultiPathGateway
    • DescribeMultiPathGatewayRegions
    • CreateMultiPathGatewaySecretKey
    • DescribeMultiPathGatewaySecretKey
    • ModifyMultiPathGatewaySecretKey
    • RefreshMultiPathGatewaySecretKey
    • CreateMultiPathGatewayLine
    • DescribeMultiPathGatewayLine
    • ModifyMultiPathGatewayLine
    • DeleteMultiPathGatewayLine
  • KV Storage APIs
    • ModifyEdgeKVNamespace
    • EdgeKVPut
    • EdgeKVList
    • EdgeKVGet
    • EdgeKVDelete
    • DescribeEdgeKVNamespaces
    • DeleteEdgeKVNamespace
    • CreateEdgeKVNamespace
  • Data Types
  • Error Codes

DescribeTimingL7AnalysisData

1. 接口描述

接口请求域名: teo.intl.tencentcloudapi.com 。

本接口用于查询七层域名业务的时序数据。
注意:

  1. 本接口查询数据有 10 分钟左右延迟,建议拉取当前时间 10 分钟以前的数据。
  2. 本接口默认返回防护后的流量请求数据,用户可在 Filters.mitigatedByWebSecurity 中自定义查询已防护缓释的数据。

默认接口请求频率限制:30次/秒。

推荐使用 API Explorer
点击调试
API Explorer 提供了在线调用、签名验证、SDK 代码生成和快速检索接口等能力。您可查看每次调用的请求内容和返回结果以及自动生成 SDK 调用示例。

2. 输入参数

以下请求参数列表仅列出了接口请求参数和部分公共参数,完整公共参数列表见 公共请求参数。

参数名称必选类型描述
Action是String公共参数,本接口取值:DescribeTimingL7AnalysisData。
Version是String公共参数,本接口取值:2022-09-01。
Region否String公共参数,此参数为可选参数。
StartTime是Timestamp ISO8601

开始时间。

EndTime是Timestamp ISO8601

结束时间。查询时间范围(EndTime - StartTime)需小于等于 31 天。

MetricNames.N是Array of String

指标列表,取值有:

  • l7Flow_outFlux: L7 EdgeOne 响应流量,单位:Byte;
  • l7Flow_inFlux: L7 客户端请求流量,单位:Byte;
  • l7Flow_flux: L7 访问总流量(EdgeOne 响应+客户端请求),单位:Byte;
  • l7Flow_outBandwidth: L7 EdgeOne 响应带宽,单位:bps;
  • l7Flow_inBandwidth:L7 客户端请求带宽,单位:bps;
  • l7Flow_bandwidth:L7 访问总带宽(EdgeOne 响应+客户端请求),单位:bps;
  • l7Flow_request: L7 访问请求数,单位:次;
  • l7Flow_avgResponseTime: L7 访问平均响应耗时,单位:ms;
  • l7Flow_avgFirstByteResponseTime: L7 访问平均首字节响应耗时,单位:ms;
  • l7Flow_requestRate: L7 访问请求速率,单位:qps。
  • ZoneIds.N否Array of String

    站点 ID 集合,此参数将于2024年05月30日后由可选改为必填,详见公告:【腾讯云 EdgeOne】云 API 变更通知。最多传入 100 个站点 ID。若需查询腾讯云主账号下所有站点数据,请用 * 代替,查询账号级别数据需具备本接口全部站点资源权限。

    Interval否String

    查询时间粒度。

    枚举值:

    • min: 1分钟
    • 5min: 5分钟
    • hour: 1小时
    • day: 1天

    不填将根据开始时间跟结束时间的间距自动推算粒度,具体为:2 小时范围内以 min 粒度查询,2 天范围内以 5min 粒度查询,7 天范围内以 hour 粒度查询,超过 7 天以 day 粒度查询。

    Filters.N否Array of QueryCondition

    筛选数据时使用的过滤条件,取值参考 指标分析筛选条件说明 中针对 L7 访问流量、带宽、请求数的可用筛选项。
    如需限定站点或内容标识符,请在 ZoneIds.N 参数中另行传入对应的值。

    Area否String

    数据归属地区。该参数已废弃。请在 Filters.country 中按客户端地域过滤数据。

    3. 输出参数

    参数名称类型描述
    TotalCountInteger

    查询结果的总条数。

    DataArray of TimingDataRecord

    七层时序流量数据列表。
    对于不同的查询指标,根据指标值类型的不同,会从不同的参数返回时序数据。
    目前存在的值类型有以下两种:

    • Integer:Integer 值类型的指标将从 Data.N.TypeValue 返回对应时序数据。
      对应的查询指标 MetricName 有:
      • l7Flow_outFlux:L7 EdgeOne 响应流量,单位:Byte;
      • l7Flow_inFlux:L7 客户端请求流量,单位:Byte;
      • l7Flow_flux:L7 访问总流量(EdgeOne 响应+客户端请求),单位:Byte;
      • l7Flow_outBandwidth:L7 EdgeOne 响应带宽,单位:bps;
      • l7Flow_inBandwidth:L7 客户端请求带宽,单位:bps;
      • l7Flow_bandwidth:L7 访问总带宽(EdgeOne 响应+客户端请求),单位:bps;
      • l7Flow_request:L7 访问请求数,单位:次;
      • l7Flow_avgResponseTime:L7 访问平均响应耗时,单位:ms;
      • l7Flow_avgFirstByteResponseTime:L7 访问平均首字节响应耗时,单位:ms。
    • Float:Float 值类型的指标将从 Data.N.FloatTypeValue 返回对应时序数据。
      对应的查询指标 MetricName 有:
      • l7Flow_requestRate:L7 访问请求速率,单位:qps。
    RequestIdString唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。

    4. 示例

    示例1 根据 HTTP 协议版本查询时序请求数数据

    根据 HTTP 协议版本筛选条件获取请求数指标数据。

    输入示例

    POST / HTTP/1.1
    Host: teo.intl.tencentcloudapi.com
    Content-Type: application/json
    X-TC-Action: DescribeTimingL7AnalysisData
    <公共请求参数>
    
    {
        "EndTime": "2022-08-29T19:17:59+08:00",
        "Interval": "day",
        "Area": "mainland",
        "StartTime": "2022-07-31T00:00:00+08:00",
        "MetricNames": [
            "l7Flow_request"
        ],
        "Filters": [
            {
                "Key": "protocol",
                "Operator": "equals",
                "Value": [
                    "HTTP/1.0",
                    "HTTP/1.1"
                ]
            }
        ],
        "ZoneIds": [
            "zone-2o7b38ba1hvr"
        ]
    }

    输出示例

    {
        "Response": {
            "RequestId": "141a7ccd-9713-43a2-91d5-1b47692d0609",
            "Data": [
                {
                    "TypeKey": "251227260",
                    "TypeValue": [
                        {
                            "Avg": 803,
                            "Detail": [
                                {
                                    "Timestamp": 1659139200,
                                    "Value": 0
                                },
                                {
                                    "Timestamp": 1661731200,
                                    "Value": 0
                                }
                            ],
                            "Max": 7921,
                            "MetricName": "l7Flow_request",
                            "Sum": 24918
                        }
                    ]
                }
            ],
            "TotalCount": 1
        }
    }

    5. 开发者资源

    SDK

    云 API 3.0 提供了配套的开发工具集(SDK),支持多种编程语言,能更方便的调用 API。

    命令行工具

    6. 错误码

    以下仅列出了接口业务逻辑相关的错误码,其他错误码详见 公共错误码。

    错误码描述
    FailedOperation操作失败。
    InternalError.ProxyServer后端服务器发生未知错误。
    InvalidParameter参数错误。
    InvalidParameterValue参数取值错误。
    LimitExceeded超过配额限制。
    LimitExceeded.QueryTimeLimitExceeded查询时间范围超出限制。
    OperationDenied操作被拒绝。
    ResourceNotFound资源不存在。
    ResourceUnavailable资源不可用。
    UnauthorizedOperation.CamUnauthorizedCam 未授权。