Memanggil operasi RunCloudBenchTask untuk menjalankan tugas pengujian beban.
Deskripsi operasi
Database Autonomy Service (DAS) menyediakan fitur pengujian beban cerdas. Fitur ini membantu Anda menentukan apakah tipe instance Anda perlu ditingkatkan untuk menangani lonjakan lalu lintas layanan. Untuk informasi selengkapnya, lihat Pengujian beban cerdas.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
hdm:RunCloudBenchTask |
get |
*全部资源
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| TaskId |
string |
Yes |
ID tugas pengujian beban. Anda dapat memanggil operasi DescribeCloudBenchTasks untuk mendapatkan ID tugas. |
e5cec704-0518-430f-8263-76f4dcds**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| Code |
string |
Kode status yang dikembalikan. |
200 |
| Message |
string |
Pesan yang dikembalikan. Catatan
Jika permintaan berhasil, Successful akan dikembalikan. Jika permintaan gagal, pesan kesalahan seperti kode kesalahan akan dikembalikan. |
Successful |
| RequestId |
string |
ID permintaan. |
B6D17591-B48B-4D31-9CD6-9B9796B2**** |
| Success |
string |
Menunjukkan apakah permintaan berhasil. Nilai yang valid:
|
true |
| Data |
object |
||
| PreCheckItem |
array<object> |
Daftar informasi terperinci, termasuk jumlah total item informasi, kode kesalahan, dan lainnya. |
|
|
object |
|||
| Status |
string |
The status of the task. Valid values:
|
SUCCESS |
| Order |
integer |
The order of the check item. Valid values: 0 to 10. |
0 |
| Code |
integer |
The returned status code. |
200 |
| Message |
string |
The returned message. Catatan
If the request is successful, Successful is returned. If the request fails, an error message such as an error code is returned. |
Successful |
| Name |
string |
The check item. Valid values:
|
BenchTargetChecker |
| Details |
string |
The details of the check item. |
"Data": { "total": 1, "list":[...] }, "Code": 200, "Success": true } |
Contoh
Respons sukses
JSONformat
{
"Code": "200",
"Message": "Successful",
"RequestId": "B6D17591-B48B-4D31-9CD6-9B9796B2****",
"Success": "true",
"Data": {
"PreCheckItem": [
{
"Status": "SUCCESS",
"Order": 0,
"Code": 200,
"Message": "Successful",
"Name": "BenchTargetChecker",
"Details": "\"Data\": { \"total\": 1, \"list\":[...] }, \"Code\": 200, \"Success\": true }"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParams | The request parameters are invalid. | |
| 403 | NoPermission | You are not authorized to do this action. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.