Mengkueri data trafik untuk satu atau beberapa nama domain yang dipercepat. Granularitas waktu minimum adalah 1 menit. Latensi data minimum adalah 5 menit. Anda dapat mengkueri data dalam 186 hari terakhir. Dibandingkan dengan operasi DescribeVodDomainTrafficData, operasi ini menyediakan granularitas waktu yang lebih kecil, latensi data yang lebih rendah, dan memungkinkan Anda mengkueri data historis dalam periode pengatur waktu yang lebih singkat.
Deskripsi operasi
This operation is supported only in the China (Shanghai) region.
You can specify a maximum of 100 accelerated domain names.
If you specify neither
StartTimenorEndTime, the data of the last 1 hour is queried. You can specify bothStartTimeandEndTimeparameters to query data of a specified time range.
Time granularity
The time granularity varies with the time range specified by the StartTime and EndTime parameters. The following table describes the time period within which historical data is available and the data delay.
| Time granularity | Time range per query | Historical data available | Data delay |
| 1 minute | Time range per query ≤ 1 hour | 7 days | 5 minutes |
| 5 minutes | 1 Hour < Time range per query ≤ 3 days | 93 days | 15 minutes |
| 1 hour | 3 days < Time range per query ≤ 31 days | 186 days | 3 to 4 hours |
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vod:DescribeVodDomainRealTimeTrafficData |
get |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DomainName |
string |
Yes |
Nama domain yang dipercepat. Anda dapat menentukan beberapa nama domain dan memisahkannya dengan koma (,). Anda dapat menentukan maksimum 500 nama domain dalam setiap panggilan. |
example.com |
| StartTime |
string |
No |
Awal rentang pengatur waktu yang akan dikueri. Tentukan pengatur waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu harus dalam UTC. |
2019-12-10T20:00:00Z |
| EndTime |
string |
No |
Akhir rentang pengatur waktu yang akan dikueri. Tentukan pengatur waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu harus dalam UTC. Catatan
Pengatur waktu akhir harus lebih lambat dari pengatur waktu mulai. |
2019-12-10T20:01:00Z |
| IspNameEn |
string |
No |
Nama ISP. Jika Anda tidak mengatur parameter ini, semua ISP akan dikueri. |
telecom |
| LocationNameEn |
string |
No |
Nama wilayah. Jika Anda tidak mengatur parameter ini, data di semua wilayah akan dikueri. |
shanghai |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end of the time range. |
2019-12-10T20:01:00Z |
| StartTime |
string |
The beginning of the time range. |
2019-12-10T20:00:00Z |
| RequestId |
string |
The ID of the request. |
A666D44F-19D6-490E-97CF-1A64AB962C57 |
| DomainName |
string |
The accelerated domain name. |
example.com |
| DataInterval |
string |
The time interval at which data is returned. Unit: seconds. The returned value varies based on the time range per query. Valid values: 60 (1 minute), 300 (5 minutes), and 3600 (1 hour). For more information, see the Time granularity section in the API documentation. |
60 |
| RealTimeTrafficDataPerInterval |
object |
||
| DataModule |
array<object> |
The details of traffic data in each time interval. |
|
|
object |
|||
| Value |
string |
The traffic data. Unit: bytes. |
0 |
| TimeStamp |
string |
The timestamp of the data returned. The time follows the ISO 8601 standard. The time is displayed in UTC. |
2019-12-10T20:01:00Z |
Contoh
Respons sukses
JSONformat
{
"EndTime": "2019-12-10T20:01:00Z",
"StartTime": "2019-12-10T20:00:00Z",
"RequestId": "A666D44F-19D6-490E-97CF-1A64AB962C57",
"DomainName": "example.com",
"DataInterval": "60",
"RealTimeTrafficDataPerInterval": {
"DataModule": [
{
"Value": "0",
"TimeStamp": "2019-12-10T20:01:00Z"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | StartTime and EndTime can not be single. | |
| 400 | InvalidStartTime.Malformed | Specified StartTime is malformed. | The start time is in an invalid format. |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | The end time is in an invalid format. |
| 400 | InvalidEndTime.Mismatch | Specified end time does not math the specified start time. | |
| 400 | InvalidStartTime.ValueNotSupported | The specified value of parameter StartTime is not supported. | |
| 400 | Abs.DomainName.Malformed | The size of DomainName is too big. | |
| 400 | InvalidInterval.Malformed | Specified Interval is malformed. | |
| 400 | InvalidIspParameter | The specified Isp is invalid. | |
| 400 | InvalidLocName | The specified LocName is not supported. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.