Mengubah aturan peringatan kustom.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RemindId |
integer |
Yes |
ID aturan peringatan kustom. |
1234 |
| RemindName |
string |
No |
Nama aturan peringatan kustom. Nama tidak boleh melebihi 128 karakter. |
update_remindname |
| DndEnd |
string |
No |
Akhir periode saat Pemberitahuan peringatan tidak dikirim. Tentukan pengatur waktu dalam format hh:mm. Nilai valid untuk hh: [0,23]. Nilai valid untuk mm: [0,59]. |
08:00 |
| RemindUnit |
string |
No |
Tipe objek tempat aturan peringatan kustom diterapkan. Nilai valid:
|
NODE |
| NodeIds |
string |
No |
ID node tempat aturan peringatan kustom diterapkan. Maksimal 50 node dapat ditentukan untuk satu aturan peringatan kustom. Anda dapat menentukan beberapa ID. Pisahkan beberapa ID dengan koma (,). Parameter ini berlaku saat Anda mengatur parameter RemindUnit ke NODE. |
1,2,3 |
| BaselineIds |
string |
No |
ID garis dasar tempat aturan peringatan kustom diterapkan. Maksimal 5 garis dasar dapat ditentukan untuk satu aturan peringatan kustom. Anda dapat menentukan beberapa ID. Pisahkan beberapa ID dengan koma (,). Parameter ini berlaku saat Anda mengatur parameter RemindUnit ke BASELINE. |
1,2,3 |
| ProjectId |
integer |
No |
ID ruang kerja tempat aturan peringatan kustom diterapkan. Anda hanya dapat menentukan satu ruang kerja untuk satu aturan peringatan kustom. Parameter ini berlaku saat Anda mengatur parameter RemindUnit ke PROJECT. |
1234 |
| BizProcessIds |
string |
No |
ID alur kerja tempat aturan peringatan kustom diterapkan. Maksimal 5 alur kerja dapat ditentukan untuk satu aturan peringatan kustom. Anda dapat menentukan beberapa ID. Pisahkan beberapa ID dengan koma (,). Parameter ini berlaku saat Anda mengatur parameter RemindUnit ke BIZPROCESS. |
1,2,3 |
| RemindType |
string |
No |
Kondisi Pemicu aturan peringatan. Nilai valid:
Untuk informasi selengkapnya, lihat Kelola aturan peringatan kustom. |
FINISHED |
| MaxAlertTimes |
integer |
No |
Jumlah maksimum peringatan. Nilai valid: 1 hingga 10. Nilai default: 3. |
3 |
| AlertInterval |
integer |
No |
Interval pengiriman Pemberitahuan peringatan. Unit: detik. Nilai minimum: 1200. Nilai default: 1800. |
1800 |
| Detail |
string |
No |
Detail kondisi Pemicu peringatan.
|
{"hour":23,"minu":59} |
| AlertUnit |
string |
No |
Penerima Pemberitahuan peringatan. Nilai valid: OWNER dan OTHER. Nilai OWNER menunjukkan bahwa Pemberitahuan peringatan dikirim ke pemilik objek. Nilai OTHER menunjukkan bahwa Pemberitahuan peringatan dikirim ke pengguna yang ditentukan. |
OWNER |
| AlertMethods |
string |
No |
Metode notifikasi. Nilai valid:
Pisahkan beberapa metode notifikasi dengan koma (,). |
SMS,MAIL |
| AlertTargets |
string |
No |
Format nilai yang diperlukan oleh parameter ini bervariasi berdasarkan nilai yang Anda tentukan untuk parameter AlertUnit. Perhatikan hal-hal berikut:
|
9527952795279527 |
| UseFlag |
boolean |
No |
Apakah akan mengaktifkan aturan peringatan. Nilai valid:
|
true |
| RobotUrls |
string |
No |
URL webhook chatbot DingTalk. Anda dapat menentukan beberapa URL webhook. Pisahkan beberapa URL webhook dengan koma (,). Jika parameter ini diatur ke undefined, URL webhook yang ditentukan akan dihapus. |
https://oapi.dingtalk.com/robot/send?access_token=****************************** |
| Webhooks |
string |
No |
URL webhook chatbot WeCom atau Lark. Anda dapat menentukan beberapa URL webhook. Pisahkan beberapa URL webhook dengan koma (,). Nilai AlertMethods harus menyertakan WEBHOOKS. Jika parameter ini diatur ke undefined, URL webhook yang ditentukan akan dihapus. Hanya DataWorks Edisi Perusahaan yang mendukung parameter ini. Fitur peringatan berbasis URL webhook didukung di wilayah berikut: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), dan Singapore. |
https://open.feishu.cn/open-apis/bot/v2/hook/******* |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the modification to the custom alert rule succeeds. |
true |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| RequestId |
string |
The request ID. You can use the ID to troubleshoot issues. |
0000-ABCD-EFG**** |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
1031203110005 |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"Data": true,
"ErrorMessage": "The specified parameters are invalid.",
"RequestId": "0000-ABCD-EFG****",
"Success": true,
"ErrorCode": "1031203110005"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | |
| 500 | Forbidden.Wkbench.BaselineNoPermission | You are not authorized to access the baseline. | |
| 500 | Forbidden.Wkbench.ProjectNoPermission | You are not authorized to access the workspace. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 500 | InternalError.UserId.Missing | An internal system error occurred. Try again later. | |
| 500 | Forbidden.Wkbench.RemindNoPermission | You are not authorized to modify the reminder. | |
| 500 | Invalid.Wkbench.RemindNotExist | The reminder does not exist. | |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.Resource | You have reached the limit for the resource. Please contact us by submitting a ticket. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.