开发者社区> 问答> 正文

天粒度资源使用概览



描述


获取加速域名天粒度监控统计数据
不指定StartTime和EndTime时,默认读取过去7的数据,同时支持按指定的起止时间查询,两者需要同时指定。

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


请求参数

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


返回参数

名称类型描述
RequestIdString请求ID
DomainNameString加速域名信息
DataIntervalString每条记录的时间间隔,固定值1天
StartTimeDateTime开始时间
EndTimeDateTime结束时间
UsageByDaysUsageByDay[]每个时间间隔统计数据
UsageTotalUsageTotal汇总数据


UsageByDay

名称类型描述
TimeStampString时间片起始时刻
QpsString每秒访问量
BytesHitRateString命中率
RequestHitRateString请求命中率
MaxBpsString带宽峰值
MaxBpsTimeString带宽峰值时刻
MaxSrcBpsString回源带宽峰值
MaxSrcBpsTimeString回源带宽峰值时刻
TotalAccessString总访问量
TotalTrafficString总流量


UsageTotal

名称类型描述
BytesHitRateString命中率
RequestHitRateString请求命中率
MaxBpsString带宽峰值
MaxBpsTimeString带宽峰值时刻
MaxSrcBpsString回源带宽峰值
maxSrcBpsTimeString回源带宽峰值时刻
TotalAccessString总访问量
TotalTrafficString总流量


特殊错误码

错误代码描述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天
InvalidDomainName.ValueNotSupportedThe specified value of parameter DomainName only support one or empty value.400DomainName只支持一个值或者不填


示例


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


返回示例:
JSON格式 {
  "UsageTotal": {
    "RequestHitRate": "69.92610837438424",
    "MaxSrcBpsTime": "2015-12-02 17:20",
    "MaxBps": "1.0747912780000001E8",
    "MaxSrcBps": "2108177.5",
    "TotalTraffic": "1117711832100",
    "TotalAccess": "1319500",
    "MaxBpsTime": "2015-12-02 23:55",
    "BytesHitRate": "97.03110726801242"
  },
  "DataInterval": "86400",
  "UsageByDays": {
    "UsageByDay": [
      {
        "TimeStamp": "2015-12-01",
        "RequestHitRate": "70.24770071912111",
        "MaxSrcBpsTime": "2015-12-01 22:30",
        "MaxSrcBps": "1044521.5000000001",
        "MaxBps": "1.050307709E8",
        "TotalTraffic": "564300099309",
        "TotalAccess": "645093",
        "MaxBpsTime": "2015-12-01 01:20",
        "Qps": "7.466354166666667",
        "BytesHitRate": "97.46250599529726"
      },
      {
        "TimeStamp": "2015-12-02",
        "RequestHitRate": "69.61849446995657",
        "MaxSrcBpsTime": "2015-12-02 17:20",
        "MaxSrcBps": "2108177.5",
        "MaxBps": "1.0747912780000001E8",
        "TotalTraffic": "553411732791",
        "TotalAccess": "674407",
        "MaxBpsTime": "2015-12-02 23:55",
        "Qps": "7.805636574074074",
        "BytesHitRate": "96.59122077803737"
      }
    ]
  },
  "RequestId": "C88EF8ED-72F0-45EA-9E86-95114E224FC5",
  "DomainName": "test.com"
  "EndTime": "2015-12-02",
  "StartTime": "2015-12-01"
}


XML格式: <DescribeDomainsUsageByDayResponse>
  <UsageTotal>
    <RequestHitRate>69.92610837438424</RequestHitRate>
    <MaxSrcBpsTime>2015-12-02 17:20</MaxSrcBpsTime>
    <MaxBps>1.0747912780000001E8</MaxBps>
    <MaxSrcBps>2108177.5</MaxSrcBps>
    <TotalTraffic>1117711832100</TotalTraffic>
    <TotalAccess>1319500</TotalAccess>
    <MaxBpsTime>2015-12-02 23:55</MaxBpsTime>
    <BytesHitRate>97.03110726801242</BytesHitRate>
  </UsageTotal>
  <DataInterval>86400</DataInterval>
  <UsageByDays>
    <UsageByDay>
      <TimeStamp>2015-12-01</TimeStamp>
      <RequestHitRate>70.24770071912111</RequestHitRate>
      <MaxSrcBpsTime>2015-12-01 22:30</MaxSrcBpsTime>
      <MaxSrcBps>1044521.5000000001</MaxSrcBps>
      <MaxBps>1.050307709E8</MaxBps>
      <TotalTraffic>564300099309</TotalTraffic>
      <TotalAccess>645093</TotalAccess>
      <MaxBpsTime>2015-12-01 01:20</MaxBpsTime>
      <Qps>7.466354166666667</Qps>
      <BytesHitRate>97.46250599529726</BytesHitRate>
    </UsageByDay>
    <UsageByDay>
      <TimeStamp>2015-12-02</TimeStamp>
      <RequestHitRate>69.61849446995657</RequestHitRate>
      <MaxSrcBpsTime>2015-12-02 17:20</MaxSrcBpsTime>
      <MaxSrcBps>2108177.5</MaxSrcBps>
      <MaxBps>1.0747912780000001E8</MaxBps>
      <TotalTraffic>553411732791</TotalTraffic>
      <TotalAccess>674407</TotalAccess>
      <MaxBpsTime>2015-12-02 23:55</MaxBpsTime>
      <Qps>7.805636574074074</Qps>
      <BytesHitRate>96.59122077803737</BytesHitRate>
    </UsageByDay>
  </UsageByDays>
  <RequestId>C9AA00F5-C194-4A84-B11E-C7B6D442E613</RequestId>
  <DomainName>test.com</DomainName>
  <EndTime>2015-12-02</EndTime>
  <StartTime>2015-12-01</StartTime>
</DescribeDomainsUsageByDayResponse>

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

相关电子书

更多
《阿里云资源保障服务,让您从容应对资源波峰》 立即下载
《用管控策略设定多账号组织全局访问边界》 立即下载
低代码开发师(初级)实战教程 立即下载