CreateBaseline
Creates a baseline.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineName |
string |
Yes |
The name of the baseline. |
BaselineName |
| ProjectId |
integer |
Yes |
The ID of the DataWorks workspace. You can log on to the DataWorks console and navigate to the Workspace Management page to view the ID. |
10000 |
| Owner |
string |
Yes |
The Alibaba Cloud UID of the baseline owner. |
1000000000001 |
| Priority |
integer |
Yes |
The priority of the baseline. Valid values: 1, 3, 5, 7, and 8. |
1 |
| NodeIds |
string |
No |
The list of upstream nodes for the baseline. |
210001233239,210001236482 |
| OvertimeSettings |
array<object> |
Yes |
The committed time configurations for the baseline. |
|
|
object |
No |
The cycle. |
||
| Cycle |
integer |
No |
The cycle corresponding to the committed time. Set this parameter to 1 for a daily baseline. For an hourly baseline, you can configure up to 24 cycles. |
1 |
| Time |
string |
No |
The committed time in the hh:mm format. The value range for hh is [0,47], and the value range for mm is [0,59]. |
00:00 |
| AlertMarginThreshold |
integer |
No |
The alert margin for the baseline, in minutes. |
30 |
| BaselineType |
string |
Yes |
The type of the baseline. Valid values: DAILY (daily baseline) and HOURLY (hourly baseline). |
DAILY |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
OpenApiResultModel |
||
| Data |
integer |
The ID of the baseline. |
100003 |
| 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 and locate issues. |
F05080B0-CCE6-5D22-B284-34A51C5D4E28 |
| Success |
boolean |
Indicates whether the call was successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Data": 100003,
"ErrorCode": "401",
"ErrorMessage": "The specified parameters are invalid.",
"HttpStatusCode": 200,
"RequestId": "F05080B0-CCE6-5D22-B284-34A51C5D4E28",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.