Queries network traffic data per minute for domain names that are added to Dynamic Route for Content Delivery Network (DCDN).
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeDcdnDomainRealTimeTrafficData |
The operation that you want to perform. Set the value to DescribeDcdnDomainRealTimeTrafficData. |
DomainName | String | Yes | example.com |
The accelerated domain name. You can specify one or more domain names and separate them with commas (,). |
StartTime | String | No | 2015-12-10T20:00:00Z |
The start 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. Note If you do not specify StartTime or EndTime, data within the last hour is queried.
If you specify both StartTime and EndTime, data within the specified time range is
queried.
|
EndTime | String | No | 2015-12-10T20:01:00Z |
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. The end time must be later than the start time. Note If you do not specify StartTime or EndTime, data within the last hour is queried.
If you specify both StartTime and EndTime, data within the specified time range is
queried.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
DomainName | String | example.com |
The accelerated domain name. |
DataInterval | String | 60 |
The time interval between the data entries. Unit: second. |
StartTime | String | 2015-12-10T20:00:00Z |
The start of the time range. |
EndTime | String | 2015-12-10T20:01:00Z |
The end of the time range. |
RequestId | String | A666D44F-19D6-490E-97CF-1A64AB962C57 |
The ID of the request. |
RealTimeTrafficDataPerInterval | Array of DataModule |
The back-to-origin network traffic returned at each interval. |
|
DataModule | |||
TimeStamp | String | 2015-12-10T20:00:00Z |
The start time of the interval. |
Value | String | 0 |
Details of the consumed network traffic. Note The network traffic is measured in bytes.
|
Examples
Sample requests
http://dcdn.aliyuncs.com?Action=DescribeDcdnDomainRealTimeTrafficData&DomainName=example.com
&StartTime=2015-12-10T20:00:00Z
&EndTime=2015-12-10T20:01:00Z
&<Common request parameters>
Sample success responses
XML
format
<DescribeDcdnDomainRealTimeTrafficDataResponse>
<DomainName>example.com</DomainName>
<DataInterval>60</DataInterval>
<RealTimeTrafficDataPerInterval>
<DataModule>
<TimeStamp>2015-12-10T20:00:00Z</TimeStamp>
<Value>0</Value>
</DataModule>
<DataModule>
<TimeStamp>2015-12-10T20:01:00Z</TimeStamp>
<Value>0</Value>
</DataModule>
</RealTimeTrafficDataPerInterval>
<RequestId>A666D44F-19D6-490E-97CF-1A64AB962C57</RequestId>
<StartTime>2015-12-10T20:00:00Z</StartTime>
<EndTime>2015-12-10T20:01:00Z</EndTime>
</DescribeDcdnDomainRealTimeTrafficDataResponse>
JSON
format
{
"DomainName": "example.com",
"DataInterval": "60",
"RealTimeTrafficDataPerInterval": {
"DataModule": [
{
"TimeStamp": "2015-12-10T20:00:00Z",
"Value": "0"
},
{
"TimeStamp": "2015-12-10T20:01:00Z",
"Value": "0"
}
]
},
"RequestId": "A666D44F-19D6-490E-97CF-1A64AB962C57",
"StartTime": "2015-12-10T20:00:00Z",
"EndTime": "2015-12-10T20:01:00Z"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | MissingTimeParameter | The StartTime and EndTime must be both specified. | The error message returned because the StartTime and EndTime parameters must be specified together. |
400 | InvalidStartTime.Malformed | The specified StartTime parameter is invalid. | The error message returned because 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. |
400 | InvalidEndTime.Malformed | The specified EndTime is invalid. | The error message returned because the specified EndTime parameter is invalid. Specify the time in the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. |
400 | InvalidEndTime.Mismatch | The specified EndTime is earlier than the StartTime. | The error message returned because the specified EndTime parameter is earlier than the specified StartTime parameter. |
400 | InvalidStartTime.ValueNotSupported | The specified StartTime is invalid. | The error message returned because the specified start time is not supported. Specify a valid value. |
For a list of error codes, visit the API Error Center.