All Products
Search
Document Center

DataWorks:CreateBaseline

Last Updated:Nov 21, 2024

Creates a baseline.

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
BaselineNamestringYes

The name of the baseline.

BaselineName
ProjectIdlongYes

The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID.

10000
OwnerstringYes

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

1000000000001
PriorityintegerYes

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

1,3,5,7,8
NodeIdsstringNo

The ancestor nodes of nodes in the baseline.

210001233239,210001236482
OvertimeSettingsarray<object>Yes

The settings of the committed completion time of the baseline.

OvertimeSettingobjectYes
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 is no more than 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
BaselineTypestringYes

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

DAILY

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

401
ErrorMessagestring

The error message.

The specified parameters are invalid.
HttpStatusCodeinteger

The HTTP status code.

200
Datalong

The baseline ID.

100003
RequestIdstring

The request ID.

F05080B0-CCE6-5D22-B284-34A51C5D4E28

Examples

Sample success responses

JSONformat

{
  "Success": true,
  "ErrorCode": "401",
  "ErrorMessage": "The specified parameters are invalid.",
  "HttpStatusCode": 200,
  "Data": 100003,
  "RequestId": "F05080B0-CCE6-5D22-B284-34A51C5D4E28"
}

Error codes

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