Membuat kontak untuk notifikasi peringatan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sysom:CreateAlertDestination |
create |
*Semua sumber daya.
|
None | None |
Sintaks permintaan
POST /api/v1/alertPusher/alert/createDestination HTTP/1.1
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
Badan permintaan. |
|
| app_id |
string |
No |
||
| app_secret |
string |
No |
||
| group_id |
array |
No |
||
|
string |
No |
|||
| imbot |
boolean |
No |
||
| name |
string |
No |
Nama kontak peringatan. |
test_name |
| params |
object |
No |
Parameter konfigurasi kontak peringatan. |
|
|
string |
No |
Alamat email. |
xxx@email.com |
|
| phone |
string |
No |
Nomor telepon. |
1xxx |
| sec |
string |
No |
Kunci rahasia chatbot. |
SECxxx |
| webhook |
string |
No |
URL webhook chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| source |
string |
No |
Sumber konfigurasi. |
console |
| target |
string |
No |
Target notifikasi. Saat ini, hanya chatbot DingTalk yang didukung. |
dingtalk |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| code |
string |
Kode kesalahan. |
Success |
| data |
object |
Data yang dikembalikan. |
|
| createdAt |
integer |
Pengatur waktu kontak dibuat. |
1753669116286 |
| id |
integer |
ID kebijakan. |
1 |
| name |
string |
Nama kebijakan. |
SysOM |
| params |
object |
Parameter konfigurasi kontak peringatan. |
|
|
string |
Alamat email. |
xxx@email.com |
|
| phone |
string |
Nomor telepon. |
1xxx |
| sec |
string |
Kunci rahasia chatbot. |
SECxxx |
| webhook |
string |
URL webhook chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| source |
string |
Sumber konfigurasi. |
console |
| target |
string |
Target notifikasi. Saat ini, hanya chatbot DingTalk yang didukung. |
dingtalk |
| uid |
string |
ID pengguna. |
1222933234714935 |
| updatedAt |
integer |
Pengatur waktu kontak terakhir diperbarui. |
1751254826285 |
| message |
string |
Paket kesalahan.
|
SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict |
| requestId |
string |
ID permintaan. |
2D693121-C925-5154-8DF6-C09A8B369822 |
Contoh
Respons sukses
JSONformat
{
"code": "Success",
"data": {
"createdAt": 1753669116286,
"id": 1,
"name": "SysOM",
"params": {
"email": "xxx@email.com",
"phone": "1xxx",
"sec": "SECxxx",
"webhook": "https://oapi.dingtalk.com/robot/send?access_token=xxx"
},
"source": "console",
"target": "dingtalk",
"uid": "1222933234714935",
"updatedAt": 1751254826285
},
"message": "SysomOpenAPIException: SysomOpenAPI.InvalidParameter Invalid params, should be json string or dict",
"requestId": "2D693121-C925-5154-8DF6-C09A8B369822\n"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Sysom.ServerError | Server error, please correct the code according to the error message. %s. | |
| 400 | SysomOpenAPI.ServerError | Server error, please correct the code according to the error message. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.