Mengambil aturan peringatan pengguna berdasarkan ID kebijakan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:GetAlertStrategy |
none |
*Semua sumber daya.
|
None | None |
Sintaks permintaan
GET /api/v1/alertPusher/alert/getStrategy HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| id |
integer |
No |
ID kebijakan. |
1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema tanggapan. |
||
| code |
string |
Kode status.
|
Success |
| data |
object |
Data yang dikembalikan. |
|
| createdAt |
integer |
pengatur waktu pembuatan. |
1751520976660 |
| enabled |
boolean |
Apakah kebijakan peringatan diaktifkan. |
false |
| id |
integer |
ID kebijakan peringatan. |
1 |
| k8sLabel |
boolean |
Label Kubernetes. |
|
| name |
string |
Nama kebijakan. |
strategy1 |
| strategy |
object |
Detail kebijakan peringatan. |
|
| clusters |
array |
Kumpulan kluster yang menerima peringatan. |
|
|
string |
Nama kluster. |
Kluster1 |
|
| destinations |
any |
Kontak peringatan. |
|
| items |
any |
Daftar item pengecualian yang menerima peringatan. |
Node CPU utilization check |
| uid |
string |
ID pengguna. |
1222933234714935 |
| updatedAt |
integer |
pengatur waktu pembaruan. |
1751254826285 |
| message |
string |
Paket kesalahan.
|
success |
| requestId |
string |
ID permintaan. |
2D693121-C925-5154-8DF6-C09A8B369822 |
Contoh
Respons sukses
JSONformat
{
"code": "Success",
"data": {
"createdAt": 1751520976660,
"enabled": false,
"id": 1,
"k8sLabel": false,
"name": "strategy1",
"strategy": {
"clusters": [
"Kluster1"
],
"destinations": "",
"items": "Node CPU utilization detection"
},
"uid": "1222933234714935",
"updatedAt": 1751254826285
},
"message": "success",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.