All Products
Search
Document Center

Dynamic Content Delivery Network:DescribeDcdnDomainIspData

Last Updated:Mar 01, 2024

Queries data statistics about accelerated domain names by Internet service provider (ISP). You can query the data that is collected over the last 90 days.

Operation description

Note
  • You can call this operation up to 100 times per second per account.

  • If StartTime is set but EndTime is not set, the data within the hour that starts from StartTime is queried.

  • If EndTime is set but StartTime is not set, the data within the last hour that precedes EndTime is queried.

  • You can query data of a domain name or all domain names that belong to your account.

  • You can view data that is collected over the last seven days. The interval at which data is queried is based on the time range specified by StartTime and EndTime.

    • If the time range is shorter than or equal to one hour, data is queried every minute.
    • If the time range is longer than 1 hour but shorter than or equal to three days, data is queried every five minutes.
    • If the time range is longer than three days but shorter than or equal to seven days, data is queried every hour.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
dcdn:DescribeDcdnDomainIspDataRead
  • Domain
    acs:dcdn:*:{#accountId}:domain/{#domainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringNo

The accelerated domain name. You can specify only one domain name in each request.

If you do not specify an accelerated domain name, the data of all accelerated domain names that belong to your account is queried.

example.com
StartTimestringNo

The beginning of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

2019-12-05T12:00:00Z
EndTimestringNo

The end of the time range to query. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Note The end time must be later than the start time.
2019-12-06T12:00:00Z

Response parameters

ParameterTypeDescriptionExample
object
EndTimestring

The end of the time range during which data was queried.

2019-12-06T12:00:00Z
StartTimestring

The start of the time range during which data was queried.

2019-12-05T12:00:00Z
RequestIdstring

The ID of the request.

2E5AD83F-BD7B-462E-8319-2E30E305519A
DomainNamestring

The accelerated domain name.

example.com
DataIntervalstring

The time interval between the data entries returned. Unit: seconds.

86400
Valueobject []

The access statistics by ISP.

Qpsstring

The number of queries per second (QPS).

5.9523809523809524E-5
TotalQuerystring

The total number of requests that are destined for your website.

3
TotalBytesstring

The total volume of traffic.

2400057
AvgResponseRatestring

The average response speed. Unit: byte/ms.

154.3345765545624
AvgResponseTimestring

The average response time. Unit: milliseconds.

5183.666666666667
Proportionstring

The proportion of the HTTP status code.

0.01155980271270037
AvgObjectSizestring

The average response size. Unit: bytes.

800019.0
IspEnamestring

The name of the ISP.

unicom
Bpsstring

The bandwidth.

380.9614285714286
Ispstring

The information about the ISP.

China Unicom
BytesProportionstring

The proportion of network traffic. For example, a value of 90 indicates that 90% of network traffic was coming from the specified ISP.

0.003544181046236794

Examples

Sample success responses

JSONformat

{
  "EndTime": "2019-12-06T12:00:00Z",
  "StartTime": "2019-12-05T12:00:00Z",
  "RequestId": "2E5AD83F-BD7B-462E-8319-2E30E305519A",
  "DomainName": "example.com",
  "DataInterval": "86400",
  "Value": {
    "IspProportionData": [
      {
        "Qps": "5.9523809523809524E-5",
        "TotalQuery": "3",
        "TotalBytes": "2400057",
        "AvgResponseRate": "154.3345765545624",
        "AvgResponseTime": "5183.666666666667",
        "Proportion": "0.01155980271270037",
        "AvgObjectSize": "800019.0",
        "IspEname": "unicom",
        "Bps": "380.9614285714286",
        "Isp": "China Unicom\n",
        "BytesProportion": "0.003544181046236794"
      }
    ]
  }
}

Error codes

HTTP status codeError codeError messageDescription
400MissingTimeParameterThe StartTime and EndTime must be both specified.You must set both the start time and the end time.
400InvalidStartTime.MalformedThe specified StartTime parameter is invalid.The format of the specified start time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400InvalidEndTime.MalformedThe specified EndTime is invalid.The format of the specified end time is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.
400InvalidEndTime.MismatchThe specified EndTime is earlier than the StartTime.The end time is earlier than the start time.
400InvalidStartTime.ValueNotSupportedThe specified StartTime is invalid.The specified start time is invalid.
404InvalidDomain.NotFoundThe specified domain does not exist.The specified domain name does not exist.

For a list of error codes, visit the Service error codes.