All Products
Search
Document Center

DataWorks:UpdateBaseline

Last Updated:Nov 21, 2024

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
BaselineIdlongYes

The baseline ID. You can call the ListBaselines operation to query the ID.

1000010800007
ProjectIdlongYes

The workspace ID. You can call the ListBaselines operation to query the ID.

2043
BaselineNamestringNo

The name of the baseline.

BaselineName
OwnerstringNo

The ID of the Alibaba Cloud account used by the baseline owner.

3726346****
PriorityintegerNo

The priority of the baseline. Valid values: {1,3,5,7,8}.

7
NodeIdsstringNo

The ancestor nodes of nodes in the baseline. Separate the ancestor nodes with commas (,). If a large number of ancestor nodes exist, we recommend that you create a zero load node and configure the zero load node as the descendant node of nodes in the baseline to facilitate node management.

1,2,3
OvertimeSettingsarray<object>No

The settings of the committed completion time of the baseline.

OvertimeSettingobjectNo
CycleintegerNo

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 does not exceed 24.

1
TimestringNo

The committed completion time in the hh:mm format. Valid values of hh: [0,47]. Valid values of mm: [0,59].

00:00
AlertMarginThresholdintegerNo

The alert margin threshold of the baseline. Unit: minutes.

30
BaselineTypestringNo

The type of the baseline. Valid values: DAILY and HOURLY.

DAILY
EnabledbooleanNo

Specifies whether to enable the baseline. Valid values: true and false.

true
AlertEnabledbooleanNo

Specifies whether to enable the alerting feature. Valid values: true and false.

true
AlertSettingsarray<object>No

The alert settings of the baseline.

AlertSettingobjectNo
AlertTypestringNo

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
AlertMethodsarrayNo

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.

AlertMethodstringNo

The alert notification method.

SMS
SilenceStartTimestringNo

The start time of silence.

00:00:00
SilenceEndTimestringNo

The end time of silence.

00:00:00
AlertIntervalintegerNo

The interval at which an event alert notification is sent. Unit: seconds. Minimum value: 900.

1800
AlertMaximumintegerNo

The maximum number of times an event alert notification is sent. Maximum value: 24.

1
DingRobotsarray<object>No

The DingTalk chatbots.

DingRobotobjectNo
WebUrlstringNo

The webhook URL of the DingTalk chatbot.

https://oapi.dingtalk.com/robot/send?access_token=xxx
AtAllbooleanNo

Specifies whether to remind all members by using the at sign (@). Valid values: true and false.

false
WebhooksarrayNo

The webhook URLs.

WebhookstringNo

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
TopicTypesarrayNo

The types of event alerts, which are event-specific configurations.

TopicTypestringNo

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
BaselineAlertEnabledbooleanNo

Specifies whether to enable the baseline alerting feature. This feature is specific to baselines. Valid values: true and false.

true
AlertRecipientTypestringNo

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
AlertRecipientstringNo

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
RemoveNodeIdsstringNo

The ID of the node that you want to disassociate from the baseline. You can specify multiple node IDs. Separate multiple node IDs with commas (,).

123,456

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful.

true
ErrorCodestring

The error code.

401
ErrorMessagestring

The error message.

The specified parameters are invalid.
HttpStatusCodeinteger

The HTTP status code.

200
Databoolean

Indicates whether the baseline was updated.

true
RequestIdstring

The request ID.

6E07E90B-D9BC-5D6B-896A-82BA41A34AE1

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "ErrorCode": "401",
  "ErrorMessage": "The specified parameters are invalid.",
  "HttpStatusCode": 200,
  "Data": true,
  "RequestId": "6E07E90B-D9BC-5D6B-896A-82BA41A34AE1"
}

Error codes

For a list of error codes, visit the Service error codes.