Memperbarui garis dasar.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineId |
integer |
Yes |
ID garis dasar. Anda dapat memanggil operasi ListBaselines untuk mengkueri ID. |
1000010800007 |
| ProjectId |
integer |
Yes |
ID ruang kerja. Anda dapat memanggil operasi ListBaselines untuk mengkueri ID. |
2043 |
| BaselineName |
string |
No |
Nama garis dasar. |
BaselineName |
| Owner |
string |
No |
ID akun Alibaba Cloud yang digunakan oleh Pemilik garis dasar. |
3726346**** |
| Priority |
integer |
No |
Prioritas garis dasar. Nilai valid: {1,3,5,7,8}. |
7 |
| NodeIds |
string |
No |
Node leluhur dari node dalam garis dasar. Pisahkan node leluhur dengan koma (,). Jika terdapat Tingkat Tinggi node leluhur, kami menyarankan Anda membuat node tanpa beban dan mengonfigurasi node tanpa beban tersebut sebagai node turunan dari node dalam garis dasar untuk memudahkan manajemen node. |
1,2,3 |
| OvertimeSettings |
array<object> |
No |
Pengaturan pengatur waktu penyelesaian yang dijanjikan dari garis dasar. |
|
|
object |
No |
The cycle. |
||
| Cycle |
integer |
No |
The cycle that corresponds to the committed completion time. For a day-level baseline, set this parameter to 1. For an hour-level baseline, set this parameter to a value that is no more than 24. |
1 |
| Time |
string |
No |
The committed completion time in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59]. |
00:00 |
| AlertMarginThreshold |
integer |
No |
Ambang batas margin peringatan dari garis dasar. Unit: menit. |
30 |
| BaselineType |
string |
No |
Tipe garis dasar. Nilai valid: DAILY dan HOURLY. |
DAILY |
| Enabled |
boolean |
No |
Apakah akan mengaktifkan garis dasar. Nilai valid: true dan false. |
true |
| AlertEnabled |
boolean |
No |
Apakah akan mengaktifkan fitur Peringatan. Nilai valid: true dan false. |
true |
| AlertSettings |
array<object> |
No |
Pengaturan peringatan dari garis dasar. |
|
|
array<object> |
No |
The alert setting of the baseline. |
||
| AlertType |
string |
No |
The type of the alert. Valid values: BASELINE and TOPIC. The value BASELINE indicates a baseline alert. The value TOPIC indicates an event alert. |
BASELINE |
| AlertMethods |
array |
No |
The alert notification methods. Valid values: MAIL, SMS, PHONE, DINGROBOTS, and Webhooks. The value MAIL indicates that alert notifications are sent by email. The value SMS indicates that alert notifications are sent by text message. The value PHONE indicates that alert notifications are sent by phone call. You can use this notification method only in DataWorks Professional Edition or a more advanced edition. The value DINGROBOTS indicates that alert notifications are sent by using a DingTalk chatbot. You can use this notification method only if the RobotUrls parameter is configured. The value Webhooks indicates that alert notifications are sent by WeCom or Lark. You can use this notification method only if the Webhooks parameter is configured. |
|
|
string |
No |
The alert notification method. |
SMS |
|
| SilenceStartTime |
string |
No |
The start time of silence. |
00:00:00 |
| SilenceEndTime |
string |
No |
The end time of silence. |
00:00:00 |
| AlertInterval |
integer |
No |
The interval at which an event alert notification is sent. Unit: minutes. Minimum value: 5. Maximum value: 1,440. |
1800 |
| AlertMaximum |
integer |
No |
The maximum number of times an event alert notification is sent. Maximum value: 24. |
1 |
| DingRobots |
array<object> |
No |
The DingTalk chatbots. |
|
|
object |
No |
The configuration of the DingTalk chatbot. |
||
| WebUrl |
string |
No |
The webhook URL of the DingTalk chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| AtAll |
boolean |
No |
Specifies whether to remind all members by using the at sign (@). Valid values: true and false. |
false |
| Webhooks |
array |
No |
The webhook URLs. |
|
|
string |
No |
The webhook URL of the WeCom or Lark chatbot. You can specify multiple webhook URLs. Separate multiple webhook URLs with commas (,). You must specify WEBHOOKS for AlertMethods. If this parameter is set to undefined, the specified webhook URLs are cleared. Only DataWorks Enterprise Edition supports this parameter. The webhook URL-based alerting feature is supported in the following regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), and Singapore. |
https://open.feishu.cn/open-apis/bot/v2/hook/xxx |
|
| TopicTypes |
array |
No |
The types of event alerts, which are event-specific configurations. |
|
|
string |
No |
The type of the event. Valid values: SLOW and ERROR. The value SLOW indicates that the running duration of a specific node in the current scheduling cycle is significantly longer than the average running duration of the node in previous scheduling cycles. The value ERROR indicates that a specific node fails to run. You can specify multiple event types. Separate multiple event types with commas (,). |
SLOW |
|
| BaselineAlertEnabled |
boolean |
No |
Specifies whether to enable the baseline alerting feature. This feature is specific to baselines. Valid values: true and false. |
true |
| AlertRecipientType |
string |
No |
The type of the alert recipient. Valid values: OWNER, OTHER, and SHIFT_SCHEDULE. The value OWNER indicates the node owner. The value OTHER indicates specified personnel. The value SHIFT_SCHEDULE indicates personnel in a shift schedule. |
OWNER |
| AlertRecipient |
string |
No |
The details of the alert recipient. If you set AlertRecipientType to OWNER, leave this parameter empty. If you set AlertRecipientType to SHIFT_SCHEDULE, set this parameter to the name of the shift schedule. If you set AlertRecipientType to OTHER, set this parameter to the employee IDs of specified personnel. |
123123 |
| RemoveNodeIds |
string |
No |
ID node yang ingin Anda lepaskan dari garis dasar. Anda dapat menentukan beberapa ID node. Pisahkan beberapa ID node dengan koma (,). |
123,456 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Success |
boolean |
Indicates whether the request was successful. |
true |
| ErrorCode |
string |
The error code. |
401 |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
boolean |
Indicates whether the baseline was updated. |
true |
| RequestId |
string |
The request ID. |
6E07E90B-D9BC-5D6B-896A-82BA41A34AE1 |
Contoh
Respons sukses
JSONformat
{
"Success": true,
"ErrorCode": "401",
"ErrorMessage": "The specified parameters are invalid.",
"HttpStatusCode": 200,
"Data": true,
"RequestId": "6E07E90B-D9BC-5D6B-896A-82BA41A34AE1"
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.