Membuat tugas injeksi kesalahan.
Deskripsi operasi
Before you use this operation, make sure that you understand the billing methods and pricing of Elastic Algorithm Service (EAS).
Coba sekarang
Test
RAM authorization
Sintaks permintaan
POST /api/v2/services/{ClusterId}/{ServiceName}/instances/{InstanceName}/faults HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
Wilayah tempat gerbang privat berada. |
cn-shanghai |
| ServiceName |
string |
Yes |
Nama layanan. Untuk informasi selengkapnya tentang cara Tampilan nama layanan, lihat ListServices. |
foo |
| InstanceName |
string |
Yes |
Nama instans layanan. Untuk informasi selengkapnya tentang cara Tampilan nama instans, lihat ListServiceInstances. |
foo-69xxxx4f4-5w9r9 |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. Untuk informasi tentang parameter permintaan kunci, lihat Tabel 1. Parameter badan permintaan dan Tabel 2. Parameter metadata di bawah ini. Untuk informasi selengkapnya tentang pengaturan parameter, lihat Deskripsi parameter untuk model layanan. |
|
| FaultType |
string |
No |
The fault type. Device faults: 1. CPU full load fault. 2. Memory load fault. 3. Network fault. 4. Disk read/write fault. 5. Disk fill fault. Valid values:
|
CpuFullloadTask |
| FaultArgs |
any |
No |
The parameters for each fault type are described as follows:
|
{ "FaultType": "DiskFillTask", "FaultArgs": { "FaultAction": "fill", "Percent": 80 } } |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response schema. |
||
| RequestId |
string |
The ID of the request. |
40325405-579C-4D82*** |
| Message |
string |
The message returned for the request. |
Addon prometheus_discovery is successfully reinstalled |
Contoh
Respons sukses
JSONformat
{
"RequestId": "40325405-579C-4D82***",
"Message": "Addon prometheus_discovery is successfully reinstalled"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.