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.
Operate | Access level | Resource type | Condition keyword | Association operation |
---|---|---|---|---|
cdn:DescribeDomainRealTimeDetailData | READ |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DomainName | string | Yes | 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 |
StartTime | string | Yes | 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 |
EndTime | string | Yes | 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 |
Field | string | Yes | The metrics that you want to query. You can specify multiple metrics and separate them with commas (,). Valid values:
| qps |
LocationNameEn | string | No | The name of the region. You can call the DescribeCdnRegionAndIsp operation to query the most recent region list. | Guangdong |
IspNameEn | string | No | The name of the Internet service provider. You can call the DescribeCdnRegionAndIsp operation to query ISPs. | telecom |
Merge | string | No | Specifies whether to merge the results. Valid values:
Default value: false. | false |
MergeLocIsp | string | No | Specifies whether to merge the results. Valid values:
Default value: false. | false |
Response parameters
Example
Normal return example
JSON
Format
{
"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 code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidTime.Malformed | Specified StartTime or EndTime is malformed. | The specified start or end time is invalid. |
400 | InvalidDomainName.Malformed | Specified domain name is malformed. | - |
For a list of error codes, visit the API error center.