UpdateBaseline
Updates a baseline.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineId |
integer |
Yes |
The ID of the baseline. You can call the ListBaselines operation to obtain the ID. |
1000010800007 |
| ProjectId |
integer |
Yes |
The ID of the project. You can call the ListBaselines operation to obtain the ID. |
2043 |
| BaselineName |
string |
No |
The name of the baseline. |
BaselineName |
| Owner |
string |
No |
The Alibaba Cloud UID of the baseline owner. |
3726346**** |
| Priority |
integer |
No |
The priority of the baseline. Valid values: 1, 3, 5, 7, and 8. |
7 |
| NodeIds |
string |
No |
The list of upstream nodes of the baseline. Separate multiple node IDs with commas (,). If a large number of nodes are involved, add a virtual node downstream for easier management. |
1,2,3 |
| OvertimeSettings |
array<object> |
No |
The committed completion time configurations of the baseline. |
|
|
object |
No |
The cycle. |
||
| Cycle |
integer |
No |
The cycle corresponding to the committed completion time. The value is 1 for a daily baseline. For an hourly baseline, you can configure up to 24 cycles. |
1 |
| Time |
string |
No |
The committed completion time in the hh:mm format. Valid values for hh: 0 to 47. Valid values for mm: 0 to 59. |
00:00 |
| AlertMarginThreshold |
integer |
No |
The alert margin of the baseline. Unit: minutes. |
30 |
| BaselineType |
string |
No |
The type of the baseline. Valid values: DAILY (daily baseline) and HOURLY (hourly baseline). |
DAILY |
| Enabled |
boolean |
No |
Specifies whether the baseline is enabled. Valid values:
|
true |
| AlertEnabled |
boolean |
No |
Specifies whether alerting is enabled. Valid values:
|
true |
| AlertSettings |
array<object> |
No |
The alert configurations of the baseline. |
|
|
array<object> |
No |
The alert configurations. |
||
| AlertInterval |
integer |
No |
The interval for event alerting. Unit: minutes. Minimum value: 5. Maximum value: 1440. |
30 |
| AlertMaximum |
integer |
No |
The maximum number of event alerts. Maximum value: 288. |
1 |
| AlertMethods |
array |
No |
The alert methods. Valid values: MAIL (email) SMS (text message) PHONE (phone call). Phone calls are supported only in DataWorks Professional Edition and more advanced editions. DINGROBOTS (DingTalk chatbot). This alert method takes effect only after the RobotUrls parameter is configured. Webhooks (WeCom or Lark chatbot). This alert method takes effect only after the Webhooks parameter is configured. |
|
|
string |
No |
The alert method. |
SMS |
|
| AlertRecipient |
string |
No |
The details of the alert recipients. For specified users, specify a list of employee IDs. For a shift schedule, specify the name of the shift schedule. For the owner, leave this parameter empty. |
123123 |
| AlertRecipientType |
string |
No |
The type of the alert recipients. Valid values:
|
OWNER |
| AlertType |
string |
No |
The alert type. Valid values: BASELINE (baseline) and TOPIC (event). |
BASELINE |
| BaselineAlertEnabled |
boolean |
No |
Specifies whether to enable baseline alerting. This is a baseline-specific configuration. Valid values:
|
true |
| DingRobots |
array<object> |
No |
The list of DingTalk chatbots. |
|
|
object |
No |
The configurations of the DingTalk chatbot. |
||
| AtAll |
boolean |
No |
Specifies whether to mention all members. Valid values:
|
false |
| WebUrl |
string |
No |
The webhook URL of the DingTalk group chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| SilenceEndTime |
string |
No |
The end time of the silence period in the HH:mm format, such as 00:00. |
00:00 |
| SilenceStartTime |
string |
No |
The start time of the silence period in the HH:mm format, such as 00:00. |
00:00 |
| TopicSlowConfig |
object |
No |
The threshold configurations for event slowdown alerts. |
|
| MinOver |
integer |
No |
The minimum slowdown threshold. Unit: seconds. Valid values: 300 to 18000. |
3600 |
| OverFactor |
number |
No |
The ratio used to calculate the slowdown threshold based on the historical average running duration of the task. Valid values: 0.1 to 2. |
0.2 |
| TopicTypes |
array |
No |
The event alert type. This is an event-specific configuration. |
|
|
string |
No |
The types of events. Valid values: SLOW (slowdown) and ERROR (error). Separate multiple event types with commas (,). |
SLOW |
|
| Webhooks |
array |
No |
The list of webhooks. |
|
|
string |
No |
The webhook URLs of WeCom (WeChat) or Lark chatbots. Separate multiple webhook URLs with commas (,). The alertMethods parameter must include the WEBHOOKS alerting method. When the parameter settings are set to undefined, the system clears the webhook URLs. This feature is supported only in DataWorks Enterprise Edition. Active regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), and Asia-Pacific Southeast 1 (Singapore). |
https://open.feishu.cn/open-apis/bot/v2/hook/xxx |
|
| RemoveNodeIds |
string |
No |
The IDs of the nodes to be removed from the baseline. Separate multiple IDs with commas (,). |
123,456 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
OpenApiResultModel |
||
| Data |
boolean |
Indicates whether the baseline is updated. |
true |
| ErrorCode |
string |
The error code. |
401 |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The ID of the request. The ID is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot issues. |
6E07E90B-D9BC-5D6B-896A-82BA41A34AE1 |
| Success |
boolean |
Indicates whether the request is successful. |
true |
Examples
Success response
JSON format
{
"Data": true,
"ErrorCode": "401",
"ErrorMessage": "The specified parameters are invalid.",
"HttpStatusCode": 200,
"RequestId": "6E07E90B-D9BC-5D6B-896A-82BA41A34AE1",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.