Membuat aturan peringatan kustom.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RemindName |
string |
Yes |
Nama aturan kustom. Panjang nama dapat mencapai 128 karakter. |
test_error_remind |
| DndEnd |
string |
No |
Pengatur waktu akhir periode jangan ganggu, dalam format hh:mm. Nilai valid untuk hh: [0,23]. Nilai valid untuk mm: [0,59]. |
08:00 |
| RemindUnit |
string |
Yes |
Tipe objek. Nilai valid: NODE (node), BASELINE (garis dasar), PROJECT (ruang kerja), dan BIZPROCESS (proses bisnis). Valid values:
|
NODE |
| NodeIds |
string |
No |
ID node yang akan dipantau ketika RemindUnit (tipe objek) diatur ke NODE (node). Pisahkan beberapa ID dengan koma (,). Satu aturan dapat memantau maksimal 50 node. |
1,2,3 |
| BaselineIds |
string |
No |
ID garis dasar yang akan dipantau ketika RemindUnit (tipe objek) diatur ke BASELINE (garis dasar). Pisahkan beberapa ID dengan koma (,). Satu aturan dapat memantau maksimal 5 garis dasar. |
1,2,3 |
| ProjectId |
integer |
No |
ID ruang kerja yang akan dipantau ketika RemindUnit (tipe objek) diatur ke PROJECT (ruang kerja). Satu aturan hanya dapat memantau satu ruang kerja. |
9527 |
| BizProcessIds |
string |
No |
ID proses bisnis yang akan dipantau ketika RemindUnit (tipe objek) diatur ke BIZPROCESS (proses bisnis). Pisahkan beberapa ID proses bisnis dengan koma (,). Satu aturan dapat memantau maksimal 5 proses bisnis. |
1,2,3 |
| RemindType |
string |
Yes |
Kondisi pemicu. Nilai valid: FINISHED (selesai), UNFINISHED (belum selesai), ERROR (kesalahan), CYCLE_UNFINISHED (siklus belum selesai), dan TIMEOUT (waktu eksekusi Berjalan habis). |
FINISHED |
| MaxAlertTimes |
integer |
No |
Jumlah maksimum peringatan. Nilai minimum: 1. Nilai maksimum: 10. Nilai default: 3. |
2 |
| AlertInterval |
integer |
No |
Interval peringatan minimum, dalam detik. Nilai minimum: 1200. Nilai default: 1800. |
1800 |
| Detail |
string |
No |
Deskripsi untuk berbagai kondisi pemicu adalah sebagai berikut:
|
{"hour":"23","minu":"59"} |
| AlertUnit |
string |
Yes |
Granularitas penerima peringatan. Nilai valid: OWNER (pemilik node) dan OTHER (pengguna tertentu). Valid values:
|
OWNER |
| AlertMethods |
string |
Yes |
Metode peringatan. Nilai valid:
Pisahkan beberapa metode peringatan dengan koma (,). |
SMS,MAIL |
| AlertTargets |
string |
No |
|
9527952795279527 |
| RobotUrls |
string |
No |
URL webhook dari chatbot DingTalk. Pisahkan beberapa URL webhook dengan koma (,). |
https://oapi.dingtalk.com/robot/send?access_token=****************************** |
| Webhooks |
string |
No |
URL webhook dari chatbot WeCom atau Lark. Pisahkan beberapa URL webhook dengan koma (,). Parameter alertMethods harus menyertakan metode peringatan WEBHOOKS. Hanya didukung oleh DataWorks Edisi Perusahaan. Wilayah yang tersedia: Tiongkok (Shanghai), Tiongkok (Chengdu), Tiongkok (Zhangjiakou), Tiongkok (Beijing), Tiongkok (Hangzhou), Tiongkok (Shenzhen), Hong Kong (Tiongkok), Jerman (Frankfurt), dan Singapura. |
https://open.feishu.cn/open-apis/bot/v2/hook/******* |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter tanggapan. |
||
| HttpStatusCode |
integer |
Kode status HTTP. |
200 |
| Data |
integer |
ID aturan kustom yang dikembalikan setelah aturan Pemantauan kustom dibuat. |
1234 |
| ErrorMessage |
string |
Pesan kesalahan. |
The specified parameters are invalid |
| RequestId |
string |
ID unik permintaan. Anda dapat menggunakan ID ini untuk memecahkan masalah. |
0000-ABCD-EFG**** |
| Success |
boolean |
Apakah permintaan berhasil. |
true |
| ErrorCode |
string |
Kode kesalahan. |
1031203110005 |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"Data": 1234,
"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.NoProject | You have not joined any project. | |
| 500 | Invalid.Wkbench.NodeNotExist | The node does not exist. | |
| 500 | Invalid.Wkbench.BaselineNotExist | The baseline does not exist. | |
| 500 | Forbidden.Wkbench.RemindOverlimit | The maximum number of reminders is exceeded. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 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.