CreateBaseline

Updated at:

Creates a baseline.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

BaselineName

string

Yes

The name of the baseline.

BaselineName

ProjectId

integer

Yes

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

10000

Owner

string

Yes

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

1000000000001

Priority

integer

Yes

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

1,3,5,7,8

NodeIds

string

No

The list of upstream nodes of the baseline.

210001233239,210001236482

OvertimeSettings

array<object>

Yes

The settings of the committed completion time of the baseline.

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, you can configure up to 24 cycles.

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

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

30

BaselineType

string

Yes

The type of the baseline. Valid values: DAILY (day-level baseline) and HOURLY (hour-level baseline).

DAILY

Response elements

Element

Type

Description

Example

object

The response parameters.

Success

boolean

Indicates whether the request was successful. Valid values:

  • true

  • false

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

integer

The baseline ID.

100003

RequestId

string

The request ID.

F05080B0-CCE6-5D22-B284-34A51C5D4E28

Examples

Success response

JSON format

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

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.