Membuat atau memodifikasi aturan peringatan untuk secara dinamis menambahkan instance yang memenuhi aturan ke grup aplikasi.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cms:PutMonitorGroupDynamicRule |
create |
*MonitorGroup
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| GroupId |
integer |
Yes |
ID grup aplikasi. |
123456 |
| GroupRules |
array<object> |
Yes |
Tidak ada. |
|
|
array<object> |
No |
Tidak ada. |
||
| FilterRelation |
string |
Yes |
Operator logis yang digunakan antara ekspresi kondisional dalam aturan peringatan. Nilai valid N: 1 hingga 3. Nilai valid:
|
and |
| Filters |
array<object> |
Yes |
Tidak ada. |
|
|
object |
No |
Tidak ada. |
||
| Value |
string |
Yes |
Nilai yang akan dicocokkan dengan bidang yang ditentukan. Nilai valid N: 1 hingga 3. |
nginx |
| Name |
string |
Yes |
Nama bidang yang menjadi dasar penyaringan instance. Nilai valid N: 1 hingga 3. Hanya nama host yang didukung. Contoh: hostName. |
hostName |
| Function |
string |
Yes |
Metode yang digunakan untuk memfilter instance. Nilai valid N: 1 hingga 3. Nilai valid:
|
contains |
| Category |
string |
Yes |
Layanan cloud tempat aturan peringatan diterapkan. Nilai valid N: 1 hingga 3. Nilai valid:
|
ecs |
| IsAsync |
boolean |
No |
Mode untuk membuat aturan peringatan. Nilai valid:
|
false |
Untuk informasi lebih lanjut tentang parameter permintaan umum, lihat Parameter umum.
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
integer |
Kode status. Catatan
Kode status 200 menunjukkan bahwa permintaan berhasil. |
200 |
| Message |
string |
Pesan kesalahan. |
The specified resource is not found. |
| RequestId |
string |
ID permintaan. |
3E73F1AB-D195-438A-BCA7-2F4355789C58 |
| Success |
boolean |
Menunjukkan apakah permintaan berhasil. Nilai valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"Code": 200,
"Message": "The specified resource is not found.",
"RequestId": "3E73F1AB-D195-438A-BCA7-2F4355789C58",
"Success": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ParameterInvalid | %s | |
| 401 | AccessDeniedException | You donot have sufficient access to perform this action. | |
| 412 | OverLimit | Matched instances count was over limit | |
| 500 | InternalError | The request processing has failed due to some unknown error. | |
| 402 | LimitExceeded | The quota for this customer had been reached. | |
| 403 | AccessForbidden | %s | |
| 206 | %s | %s | |
| 404 | ResourceNotFound | The specified resource is not found. | |
| 503 | %s | %s | |
| 406 | %s | %s | |
| 429 | Throttli∂ngException | The request was denied due to request throttling. | |
| 409 | %s | %s |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.