Memanggil DescribeUserBandWidthData untuk membuat kueri informasi bandwidth yang digunakan oleh pengguna dalam rentang waktu yang ditentukan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:DescribeUserBandWidthData |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| EnsRegionId |
string |
No |
ID node. Hanya satu ID yang didukung. Secara default, semua node dikueri. |
cn-taiyuan-telecom |
| InstanceId |
string |
No |
ID instance dari data tertentu yang akan diperoleh. Hanya satu ID yang didukung. Secara default, semua instance dikueri. |
i-5inkeimcipxk26yqtzm4q**** |
| StartTime |
string |
Yes |
Awal rentang waktu yang akan dikueri.
|
2019-05-21T10:22:00Z |
| EndTime |
string |
Yes |
Akhir rentang waktu yang akan dikueri.
|
2019-05-21T12:22:00Z |
| Period |
string |
Yes |
Presisi data pemantauan yang akan diperoleh. Nilai yang valid: 300 (default), 1200, 3600, dan 14400. Satuan: detik. |
300 |
| Isp |
string |
No |
Penyedia layanan Internet (ISP). Nilai yang valid:
|
cmcc |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode pengembalian bisnis. Nilai 0 menunjukkan keberhasilan. |
0 |
| MonitorData |
object |
Informasi data pemantauan. |
|
| BandWidthMonitorData |
array<object> |
Data pemantauan bandwidth. |
|
|
object |
Data pemantauan bandwidth. |
||
| DownBandWidth |
integer |
The outbound bandwidth. Unit: bit/s. |
0 |
| InternetRX |
integer |
The Internet traffic to the instance. Unit: bytes. |
0 |
| InternetTX |
integer |
The Internet traffic from the instance. Unit: bytes. |
0 |
| TimeStamp |
string |
The timestamp when the monitoring data was queried. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2019-10-12T05:45:00Z |
| UpBandWidth |
integer |
The inbound bandwidth. Unit: bit/s. |
0 |
| MaxDownBandWidth |
string |
Bandwidth masuk maksimum dalam rentang waktu yang dikueri. Satuan: bit/dtk. |
16817468 |
| MaxUpBandWidth |
string |
Bandwidth keluar maksimum dalam rentang waktu yang dikueri. Satuan: bit/dtk. |
231008 |
| RequestId |
string |
ID permintaan. |
50373E71-7710-4620-8AAB-133CCE49451C |
Contoh
Respons sukses
JSONformat
{
"Code": 0,
"MonitorData": {
"BandWidthMonitorData": [
{
"DownBandWidth": 0,
"InternetRX": 0,
"InternetTX": 0,
"TimeStamp": "2019-10-12T05:45:00Z",
"UpBandWidth": 0
}
],
"MaxDownBandWidth": "16817468",
"MaxUpBandWidth": "231008"
},
"RequestId": "50373E71-7710-4620-8AAB-133CCE49451C"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | MissingParameter | The input parameters that is mandatory for processing this request is not supplied. | |
| 400 | USERNOTFOUND | The user is not in ens-controller. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.