开发者社区> 问答> 正文

天粒度按流量域名排名



描述


获取用户按流量排名的域名
不指定StartTime和EndTime时,默认读取当月的数据,同时支持按指定的起止时间查询,两者需要同时指定。

  • 最多可获取最近90天的数据


请求参数

参数类型必要描述
ActionString操作接口名,系统规定参数取值:DescribeTopDomainsByFlow
StartTimeString获取数据起始时间点,日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ最小数据粒度为5分钟不写默认读取当月数据
EndTimeString结束时间需大于起始时间;获日期格式按照ISO8601表示法,并使用UTC时间。格式为:YYYY-MM-DDThh:mmZ
LimitString域名获取数量限制,默认为20,取值支持1~100


返回参数

名称类型描述
RequestIdString请求ID
StartTimeString开始时间
EndTimeString结束时间
TopDomainsTopDomain[]排名域名列表
DomainCountLong账户下域名总数
DomainOnlineCountLong账户下“正在运行”域名总数


TopDomain

名称类型描述
DomainNameString域名
RankLong排名
TotalTrafficDouble总流量
TrafficPercentDouble流量占比
MaxBpsLong带宽峰值
MaxBpsTimeLong带宽峰值时刻
TotalAccessLong访问次数


特殊错误码

错误代码描述Http 状态码语义
ThrottlingRequest was denied due to request throttling.503请求被流量控制限制
IllegalOperationIllegal domain, operation is not permitted.403非法域名, 无法操作
OperationDeniedYour account does not open CDN service yet.403未开通CDN服务
OperationDeniedYour CDN service is suspended.403CDN服务已被停止
InvalidDomain.NotFoundThe domain provided does not belong to you.404域名不存在或不属于当前用户
InvalidDomain.OfflineThe domain provided is offline.404域名已下线
ServiceBusyThe specified Domain is configuring, please retry later.403域名正在配置中, 请稍后再试
InvalidDomain.Configure_failedFailed to configure the provided domain.500域名配置失败
MissingParameterStartTime and EndTime can not be single.400StartTime和EndTime不能单独设置
InvalidStartTime.MalformedSpecified StartTime is malformed.400StartTime格式错误
InvalidEndTime.MalformedSpecified EndTime is malformed.400EndTime格式错误
InvalidEndTime.MismatchSpecified end time does not math the specified start time.400EndTime小于StartTime
InvalidStartTime.ValueNotSupported90 days data can be queried at most.400EndTime和StartTime差值超过90天
InvalidLimit.ValueNotSupportedThe number of domainNames limit between 1 and 100.400DomainName只支持一个值或者不填


示例


请求示例: http://cdn.aliyuncs.com?Action=DescribeTopDomainsByFlow
&StartTime=2015-11-29
&EndTime=2015-11-30
&Limit=5
&<公共请求参数>


返回示例:
JSON格式 {
  "DomainCount": 68,
  "DomainOnlineCount": 68,
  "RequestId": "4E09C5D7-E1CF-4CAA-A45E-8727F4C8FD70",
  "EndTime": "2016-03-14T07:34Z",
  "TopDomains": {
    "TopDomain": [
      {
        "MaxBps": 22139626,
        "Rank": 1,
        "TrafficPercent": 30.64191989360235,
        "TotalTraffic": 2043859876683.9001,
        "TotalAccess": 107784230,
        "DomainName": "cedexis.j0zz.com",
        "MaxBpsTime": 1457111400
      },
      {
        "MaxBps": 1008772351,
        "Rank": 2,
        "TrafficPercent": 25.936032624725815,
        "TotalTraffic": 1729970466149.2002,
        "TotalAccess": 3843128,
        "DomainName": "wj.cdnpe.com",
        "MaxBpsTime": 1457505600
      },
      {
        "MaxBps": 16046911,
        "Rank": 3,
        "TrafficPercent": 21.686305274906182,
        "TotalTraffic": 1446507574551.6,
        "TotalAccess": 547567,
        "DomainName": "imgtest.cdnpe.com",
        "MaxBpsTime": 1456897200
      },
      {
        "MaxBps": 15990893,
        "Rank": 4,
        "TrafficPercent": 21.261081185428147,
        "TotalTraffic": 1418144519687.5,
        "TotalAccess": 548380,
        "DomainName": "downtest.cdnpe.com",
        "MaxBpsTime": 1457567700
      },
      {
        "MaxBps": 473599,
        "Rank": 5,
        "TrafficPercent": 0.4308743788055894,
        "TotalTraffic": 28739937242.500004,
        "TotalAccess": 152150,
        "DomainName": "ali.ddimg.cn",
        "MaxBpsTime": 1457845800
      }
    ]
  },
  "StartTime": "2016-03-01T04:00Z"
}


XML格式: <?xml version="1.0" encoding="utf-8"?>

<DescribeTopDomainsByFlowResponse>
  <DomainCount>68</DomainCount>
  <DomainOnlineCount>68</DomainOnlineCount>
  <RequestId>800C3EA7-C022-4F99-81CC-0FB5038B1D8E</RequestId>
  <EndTime>2016-03-14T07:35Z</EndTime>
  <TopDomains>
    <TopDomain>
      <MaxBps>22139626</MaxBps>
      <Rank>1</Rank>
      <TrafficPercent>30.64191989360235</TrafficPercent>
      <TotalTraffic>2.0438598766839001E12</TotalTraffic>
      <TotalAccess>107784230</TotalAccess>
      <DomainName>cedexis.j0zz.com</DomainName>
      <MaxBpsTime>1457111400</MaxBpsTime>
    </TopDomain>
    <TopDomain>
      <MaxBps>1008772351</MaxBps>
      <Rank>2</Rank>
      <TrafficPercent>25.936032624725815</TrafficPercent>
      <TotalTraffic>1.7299704661492002E12</TotalTraffic>
      <TotalAccess>3843128</TotalAccess>
      <DomainName>wj.cdnpe.com</DomainName>
      <MaxBpsTime>1457505600</MaxBpsTime>
    </TopDomain>
    <TopDomain>
      <MaxBps>16046911</MaxBps>
      <Rank>3</Rank>
      <TrafficPercent>21.686305274906182</TrafficPercent>
      <TotalTraffic>1.4465075745516E12</TotalTraffic>
      <TotalAccess>547567</TotalAccess>
      <DomainName>imgtest.cdnpe.com</DomainName>
      <MaxBpsTime>1456897200</MaxBpsTime>
    </TopDomain>
    <TopDomain>
      <MaxBps>15990893</MaxBps>
      <Rank>4</Rank>
      <TrafficPercent>21.261081185428147</TrafficPercent>
      <TotalTraffic>1.4181445196875E12</TotalTraffic>
      <TotalAccess>548380</TotalAccess>
      <DomainName>downtest.cdnpe.com</DomainName>
      <MaxBpsTime>1457567700</MaxBpsTime>
    </TopDomain>
    <TopDomain>
      <MaxBps>473599</MaxBps>
      <Rank>5</Rank>
      <TrafficPercent>0.4308743788055894</TrafficPercent>
      <TotalTraffic>2.8739937242500004E10</TotalTraffic>
      <TotalAccess>152150</TotalAccess>
      <DomainName>ali.ddimg.cn</DomainName>
      <MaxBpsTime>1457845800</MaxBpsTime>
    </TopDomain>
  </TopDomains>
  <StartTime>2016-03-01T04:00Z</StartTime>
</DescribeTopDomainsByFlowResponse>

展开
收起
青衫无名 2017-10-24 11:12:45 2451 0
0 条回答
写回答
取消 提交回答
问答排行榜
最热
最新

相关电子书

更多
创业公司的域名想象 立即下载
“域”见更美好的未来——域名筑梦互联网+ 立即下载
“域”感——《域名投资从入门到精通》 立即下载