Queries the monitoring data of an accelerated domain name. The data is collected every day.

Note
  • If you do not set the StartTime or EndTime parameter, data collected within the last 24 hours is queried. If you specify both the StartTime and EndTime parameters, data collected within the specified time range is queried.
  • You can specify only one domain name. If you do not specify a domain name, all domain names that belong to your Alibaba Cloud account are queried.
  • You can query data collected within the last 90 days.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDomainsUsageByDay

The operation that you want to perform. Set the value to DescribeDomainsUsageByDay.

DomainName String No example.com

The accelerated domain name for which you want to query data. You can specify only one domain name. If you do not specify this parameter, data for all the accelerated domains that belong to your Alibaba Cloud account is returned.

StartTime String No 2017-12-21

The start of the time range to query.

  • The time must be in UTC+8.
  • Specify the time in the yyyy-MM-dd format.
EndTime String No 2017-12-22

The end of the time range to query.

  • The end time must be later than the start time.
  • The time must be in UTC+8.
  • Specify the time in the yyyy-MM-dd format.

Response parameters

Parameter Type Example Description
RequestId String C88EF8ED-72F0-45EA-9E86-95114E224FC5

The ID of the request.

DomainName String example.com

The accelerated domain name.

DataInterval String 86400

The time interval between the data entries. The time interval must be 86,400 seconds (1 day).

StartTime String 2015-12-01

The start of the time range that was queried.

EndTime String 2015-12-02

The end of the time range that was queried.

UsageByDays Array of UsageByDay

The monitoring data collected at each time interval.

UsageByDay
BytesHitRate String 97.46250599529726

The cache hit ratio.

TimeStamp String 2017-12-22

The timestamp of the data returned.

Qps String 7.466354166666667

The number of queries per second.

RequestHitRate String 70.24770071912111

The request hit rate.

MaxBps String 1.050307709E8

The peak bandwidth value.

MaxBpsTime String 2015-12-01 01:20

The time when the bandwidth reached the peak value.

MaxSrcBps String 2015-12-01 22:30

The peak bandwidth of back-to-origin requests.

TotalAccess String 645093

The total number of back-to-origin requests.

MaxSrcBpsTime String 2015-12-01 22:30

The time when the bandwidth of back-to-origin requests reached the peak value.

TotalTraffic String 564300099309

The total amount of network traffic.

UsageTotal Struct

The summarized monitoring data.

BytesHitRate String 97.03110726801242

The cache hit rate.

RequestHitRate String 69.92610837438424

The request hit rate.

MaxBps String 1.0747912780000001E8

The peak bandwidth value.

MaxBpsTime String 2015-12-02 23:55

The time when the bandwidth reached the peak value.

MaxSrcBps String 2015-12-02 17:20

The peak bandwidth of back-to-origin requests.

TotalAccess String 1319500

The total number of back-to-origin requests.

MaxSrcBpsTime String 2015-12-02 17:20

The time when the bandwidth of back-to-origin requests reached the peak value.

TotalTraffic String 1117711832100

The total amount of network traffic.

Examples

Sample requests

http://cdn.aliyuncs.com/?Action=DescribeDomainsUsageByDay
&DomainName=example.com
&StartTime=2015-11-29
&EndTime=2015-11-30
&<Common request parameters>

Sample success responses

XML format

<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>C88EF8ED-72F0-45EA-9E86-95114E224FC5</RequestId>
      <DomainName>example.com</DomainName>
      <EndTime>2015-12-02</EndTime>
      <StartTime>2015-12-01</StartTime>
</DescribeDomainsUsageByDayResponse>

JSON format

{
  "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": "example.com",
  "EndTime": "2015-12-02",
  "StartTime": "2015-12-01"
}

Error codes

HttpCode Error code Error message Description
400 InvalidStartTime.Malformed Specified StartTime is malformed. The error message returned because the format of the specified start time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidEndTime.Malformed Specified EndTime is malformed. The error message returned because the format of the specified end time is invalid. For more information about the time format, see the Request parameters section.
400 InvalidStartTime.ValueNotSupported The specified value of parameter StartTime is not supported. The error message returned because the specified start time is invalid. Rectify the start time and try again.
404 InvalidDomain.NotFound The domain provided does not exist in our records. The error message returned because the specified domain name does not exist or does not belong to the current account. Check whether the domain name is correctly specified, whether the domain name is under the current Alibaba Cloud account, and whether the domain name is expired.

For a list of error codes, visit the API Error Center.