All Products
Search
Document Center

Alibaba Cloud CDN:DescribeDomainRealTimeDetailData

Last Updated:Feb 22, 2023

Queries real-time monitoring data of multiple domain names. The maximum time range to query for this operation is 10 minutes.

Description

  • You can query data within the last seven days. Data is collected every minute.
  • The maximum number of times that each user can call this operation per second is 10.

Authorization information

The following table is the authorization information corresponding to the API, which can be found in the RAM permission policy statement.Action Used in the element to grant the RAM user or RAM role permission to call this API. The specific instructions are as follows:

  • 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 keyword: refers to the condition keyword defined by the cloud product itself.
  • 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.
OperateAccess levelResource typeCondition keywordAssociation operation
cdn:DescribeDomainRealTimeDetailDataREAD
  • CDN
    acs:cdn:*:{#accountId}:domain/{#DomainName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
DomainNamestringYes

The accelerated domain name for which you want to query data. You can specify multiple accelerated domain names and separate them with commas (,).

example.com
StartTimestringYes

The beginning of the time range to query.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Example: 2019-11-30T05:33:00Z.

2019-11-30T05:33:00Z
EndTimestringYes

The end of the time range to query.

Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Example: 2019-11-30T05:40:00Z.

NoteThe end time must be later than the start time. The time range between the end time and the start time cannot exceed 10 minutes.
2019-11-30T05:40:00Z
FieldstringYes

The metrics that you want to query. You can specify multiple metrics and separate them with commas (,). Valid values:

  • qps: the number of queries per second
  • bps: bandwidth values
  • http_code: HTTP status codes
qps
LocationNameEnstringNo

The name of the region. You can call the DescribeCdnRegionAndIsp operation to query the most recent region list.

Guangdong
IspNameEnstringNo

The name of the Internet service provider. You can call the DescribeCdnRegionAndIsp operation to query ISPs.

telecom
MergestringNo

Specifies whether to merge the results. Valid values:

  • true: merges the results.
  • false: does not merge the results. This is the default value.

Default value: false.

false
MergeLocIspstringNo

Specifies whether to merge the results. Valid values:

  • true: groups the results by domain name and merges the results by region and ISP.
  • false: groups the results by domain name.

Default value: false.

false

Response parameters

ParameterTypeDescriptionExample
object
Datastring

The data usage of each ISP and the number of visits in each region.

{ "2019-11-30T05:40:00Z": { "example.com": { "Guangdong": { "telecom": { "qps": 10.0, "http_code": {"200": 1, "304": 2} } }, "Jiangsu": { "unicom": { "qps": 11.1, "http_code": {"200": 1, "304": 2, "403": 3} } } } } }
RequestIdstring

The ID of the request.

B49E6DDA-F413-422B-B58E-2FA23F286726

Example

Normal return example

JSONFormat

{
  "Data": "{         \"2019-11-30T05:40:00Z\": {             \"example.com\": {                 \"Guangdong\": {                     \"telecom\": {                         \"qps\": 10.0,                         \"http_code\": {\"200\": 1, \"304\": 2}                     }                 },                 \"Jiangsu\": {                     \"unicom\": {                         \"qps\": 11.1,                         \"http_code\": {\"200\": 1, \"304\": 2, \"403\": 3}                     }                 }             }         }    }",
  "RequestId": "B49E6DDA-F413-422B-B58E-2FA23F286726"
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidTime.MalformedSpecified StartTime or EndTime is malformed.The specified start or end time is invalid.
400InvalidDomainName.MalformedSpecified domain name is malformed.-

For a list of error codes, visit the API error center.