全部产品
存储与CDN 数据库 域名与网站(万网) 应用服务 数加·人工智能 数加·大数据基础服务 互联网中间件 视频服务 开发者工具 解决方案 物联网 钉钉智能硬件
CDN

查询域名的天粒度监控统计数据

更新时间:2017-12-25 10:51:15

DescribeDomainsUsageByDay

描述

获取加速域名天粒度监控统计数据

不指定StartTime和EndTime时,默认读取过去7的数据,同时支持按指定的起止时间查询,两者需要同时指定。

  • 只支持一个域名,或当前用户下所有域名
  • 最多可获取最近90天的数据

请求参数

参数 类型 必要 描述
Action String 操作接口名,系统规定参数
取值:DescribeDomainsUsageByDay
DomainName String 需要查询的加速域名,只支持一个域名,不写代表当前用户下所有域名
StartTime String 获取数据起始时间点,使用北京时间。
格式为:YYYY-MM-DD
EndTime String 结束时间需大于起始时间;使用北京时间。
格式为:YYYY-MM-DD

返回参数

名称 类型 描述
RequestId String 请求ID
DomainName String 加速域名信息
DataInterval String 每条记录的时间间隔,固定值1天
StartTime DateTime 开始时间
EndTime DateTime 结束时间
UsageByDays UsageByDay[] 每个时间间隔统计数据
UsageTotal UsageTotal 汇总数据

UsageByDay

名称 类型 描述
TimeStamp String 时间片起始时刻
Qps String 每秒访问量
BytesHitRate String 命中率
RequestHitRate String 请求命中率
MaxBps String 带宽峰值
MaxBpsTime String 带宽峰值时刻
MaxSrcBps String 回源带宽峰值
MaxSrcBpsTime String 回源带宽峰值时刻
TotalAccess String 总访问量
TotalTraffic String 总流量

UsageTotal

名称 类型 描述
BytesHitRate String 命中率
RequestHitRate String 请求命中率
MaxBps String 带宽峰值
MaxBpsTime String 带宽峰值时刻
MaxSrcBps String 回源带宽峰值
maxSrcBpsTime String 回源带宽峰值时刻
TotalAccess String 总访问量
TotalTraffic String 总流量

特殊错误码

错误代码 描述 Http 状态码 语义
Throttling Request was denied due to request throttling. 503 请求被流量控制限制
IllegalOperation Illegal domain, operation is not permitted. 403 非法域名, 无法操作
OperationDenied Your account does not open CDN service yet. 403 未开通CDN服务
OperationDenied Your CDN service is suspended. 403 CDN服务已被停止
InvalidDomain.NotFound The domain provided does not belong to you. 404 域名不存在或不属于当前用户
InvalidDomain.Offline The domain provided is offline. 404 域名已下线
ServiceBusy The specified Domain is configuring, please retry later. 403 域名正在配置中, 请稍后再试
InvalidDomain.Configure_failed Failed to configure the provided domain. 500 域名配置失败
MissingParameter StartTime and EndTime can not be single. 400 StartTime和EndTime不能单独设置
InvalidStartTime.Malformed Specified StartTime is malformed. 400 StartTime格式错误
InvalidEndTime.Malformed Specified EndTime is malformed. 400 EndTime格式错误
InvalidEndTime.Mismatch Specified end time does not math the specified start time. 400 EndTime小于StartTime
InvalidStartTime.ValueNotSupported 90 days data can be queried at most. 400 EndTime和StartTime差值超过90天
InvalidDomainName.ValueNotSupported The specified value of parameter DomainName only support one or empty value. 400 DomainName只支持一个值或者不填

示例

请求示例:

  1. http://cdn.aliyuncs.com?Action=DescribeDomainsUsageByDay&DomainName=test.com
  2. &StartTime=2015-11-29
  3. &EndTime=2015-11-30
  4. &<公共请求参数>

返回示例:

JSON格式

  1. {
  2. "UsageTotal": {
  3. "RequestHitRate": "69.92610837438424",
  4. "MaxSrcBpsTime": "2015-12-02 17:20",
  5. "MaxBps": "1.0747912780000001E8",
  6. "MaxSrcBps": "2108177.5",
  7. "TotalTraffic": "1117711832100",
  8. "TotalAccess": "1319500",
  9. "MaxBpsTime": "2015-12-02 23:55",
  10. "BytesHitRate": "97.03110726801242"
  11. },
  12. "DataInterval": "86400",
  13. "UsageByDays": {
  14. "UsageByDay": [
  15. {
  16. "TimeStamp": "2015-12-01",
  17. "RequestHitRate": "70.24770071912111",
  18. "MaxSrcBpsTime": "2015-12-01 22:30",
  19. "MaxSrcBps": "1044521.5000000001",
  20. "MaxBps": "1.050307709E8",
  21. "TotalTraffic": "564300099309",
  22. "TotalAccess": "645093",
  23. "MaxBpsTime": "2015-12-01 01:20",
  24. "Qps": "7.466354166666667",
  25. "BytesHitRate": "97.46250599529726"
  26. },
  27. {
  28. "TimeStamp": "2015-12-02",
  29. "RequestHitRate": "69.61849446995657",
  30. "MaxSrcBpsTime": "2015-12-02 17:20",
  31. "MaxSrcBps": "2108177.5",
  32. "MaxBps": "1.0747912780000001E8",
  33. "TotalTraffic": "553411732791",
  34. "TotalAccess": "674407",
  35. "MaxBpsTime": "2015-12-02 23:55",
  36. "Qps": "7.805636574074074",
  37. "BytesHitRate": "96.59122077803737"
  38. }
  39. ]
  40. },
  41. "RequestId": "C88EF8ED-72F0-45EA-9E86-95114E224FC5",
  42. "DomainName": "test.com"
  43. "EndTime": "2015-12-02",
  44. "StartTime": "2015-12-01"
  45. }

XML格式:

  1. <DescribeDomainsUsageByDayResponse>
  2. <UsageTotal>
  3. <RequestHitRate>69.92610837438424</RequestHitRate>
  4. <MaxSrcBpsTime>2015-12-02 17:20</MaxSrcBpsTime>
  5. <MaxBps>1.0747912780000001E8</MaxBps>
  6. <MaxSrcBps>2108177.5</MaxSrcBps>
  7. <TotalTraffic>1117711832100</TotalTraffic>
  8. <TotalAccess>1319500</TotalAccess>
  9. <MaxBpsTime>2015-12-02 23:55</MaxBpsTime>
  10. <BytesHitRate>97.03110726801242</BytesHitRate>
  11. </UsageTotal>
  12. <DataInterval>86400</DataInterval>
  13. <UsageByDays>
  14. <UsageByDay>
  15. <TimeStamp>2015-12-01</TimeStamp>
  16. <RequestHitRate>70.24770071912111</RequestHitRate>
  17. <MaxSrcBpsTime>2015-12-01 22:30</MaxSrcBpsTime>
  18. <MaxSrcBps>1044521.5000000001</MaxSrcBps>
  19. <MaxBps>1.050307709E8</MaxBps>
  20. <TotalTraffic>564300099309</TotalTraffic>
  21. <TotalAccess>645093</TotalAccess>
  22. <MaxBpsTime>2015-12-01 01:20</MaxBpsTime>
  23. <Qps>7.466354166666667</Qps>
  24. <BytesHitRate>97.46250599529726</BytesHitRate>
  25. </UsageByDay>
  26. <UsageByDay>
  27. <TimeStamp>2015-12-02</TimeStamp>
  28. <RequestHitRate>69.61849446995657</RequestHitRate>
  29. <MaxSrcBpsTime>2015-12-02 17:20</MaxSrcBpsTime>
  30. <MaxSrcBps>2108177.5</MaxSrcBps>
  31. <MaxBps>1.0747912780000001E8</MaxBps>
  32. <TotalTraffic>553411732791</TotalTraffic>
  33. <TotalAccess>674407</TotalAccess>
  34. <MaxBpsTime>2015-12-02 23:55</MaxBpsTime>
  35. <Qps>7.805636574074074</Qps>
  36. <BytesHitRate>96.59122077803737</BytesHitRate>
  37. </UsageByDay>
  38. </UsageByDays>
  39. <RequestId>C9AA00F5-C194-4A84-B11E-C7B6D442E613</RequestId>
  40. <DomainName>test.com</DomainName>
  41. <EndTime>2015-12-02</EndTime>
  42. <StartTime>2015-12-01</StartTime>
  43. </DescribeDomainsUsageByDayResponse>
本文导读目录