Mengkueri data pemantauan trafik real-pengatur waktu untuk nama domain streaming langsung.
Deskripsi operasi
-
Call this operation to query the real-time traffic and bandwidth of a streaming domain name for a specific region, carrier, and time period.
-
If you do not specify the StartTime and EndTime parameters, data from the last hour is queried by default. To query data for a specific time range, you must specify both the StartTime and EndTime parameters.
-
This operation returns monitoring data. This data is collected and processed differently from the data used for billing. Therefore, you cannot use the returned data for billing reconciliation.
-
You can query data from the last 90 days.
QPS limits
This operation has no queries per second (QPS) limit for a single user. You can call this operation as needed.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
live:DescribeLiveDomainRealTimeTrafficData |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah. |
cn-shanghai |
| DomainName |
string |
Yes |
Nama domain streaming. Untuk menentukan beberapa nama domain, pisahkan dengan koma (,). |
example.com,example.aliyundoc.com |
| StartTime |
string |
No |
Awal rentang pengatur waktu yang akan dikueri. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu harus dalam UTC. Catatan
Jika Anda tidak menentukan parameter ini, data dalam satu jam terakhir akan dikueri. |
2015-12-10T15:00:00Z |
| IspNameEn |
string |
No |
Nama penyedia layanan. Anda dapat memanggil operasi DescribeCdnRegionAndIsp untuk memperoleh nama penyedia layanan. |
alibaba |
| LocationNameEn |
string |
No |
Nama wilayah. Anda dapat memanggil operasi DescribeCdnRegionAndIsp untuk memperoleh nama wilayah. |
tianjin |
| EndTime |
string |
No |
Akhir rentang pengatur waktu yang akan dikueri. Pengatur waktu akhir harus lebih lambat dari pengatur waktu mulai. Tentukan pengatur waktu dalam format yyyy-MM-ddTHH:mm:ssZ. Pengatur waktu harus dalam UTC. |
2015-12-10T15:01:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| EndTime |
string |
The end of the time range. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC. |
2015-12-10T15:01:00Z |
| StartTime |
string |
The start of the time range. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC. |
2015-12-10T15:00:00Z |
| RequestId |
string |
The request ID. |
A666D44F-19D6-490E-97CF-1A64AB962C57 |
| DomainName |
string |
The streaming domain name. |
example.com,example.aliyundoc.com |
| DataInterval |
string |
The time interval between data points. Unit: second. |
60 |
| RealTimeTrafficDataPerInterval |
object |
||
| DataModule |
array<object> |
The traffic data returned for each time interval. |
|
|
object |
|||
| Value |
string |
The traffic. Unit: byte. |
0 |
| TimeStamp |
string |
The start of the time segment. The time is in the yyyy-MM-ddTHH:mm:ssZ format. The time is in UTC. |
2015-12-10T15:01:00Z |
Contoh
Respons sukses
JSONformat
{
"EndTime": "2015-12-10T15:01:00Z",
"StartTime": "2015-12-10T15:00:00Z",
"RequestId": "A666D44F-19D6-490E-97CF-1A64AB962C57",
"DomainName": "example.com,example.aliyundoc.com",
"DataInterval": "60",
"RealTimeTrafficDataPerInterval": {
"DataModule": [
{
"Value": "0",
"TimeStamp": "2015-12-10T15: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. | |
| 400 | InvalidEndTime.Malformed | Specified EndTime is malformed. | |
| 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. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.