Obtains a list of baselines.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Owner | string | No | The owner. | 3726346**** |
ProjectId | long | Yes | The DataWorks workspace ID. You can log on to the DataWorks console and go to the Workspace page to query the ID. | 123456 |
Priority | string | No | The priority of the baseline. Valid values: {1,3,5,7,8}. | 1 |
Enable | boolean | No | Specifies whether to enable the baseline. Valid values: true and false. | true |
BaselineTypes | string | No | The type of the baseline. Valid values: DAILY and HOURLY. You can specify multiple types. Separate multiple types with commas (,). | DAILY |
SearchText | string | No | The keyword in the baseline name, which is used to search for the baseline. | baselineName |
PageNumber | integer | Yes | The page number. Pages start from page 1. Default value: 1. Maximum value: 30. | 1 |
PageSize | integer | Yes | The number of entries per page. Default value: 10. Maximum value: 100. | 100 |
Response parameters
Examples
Sample success responses
JSON
format
{
"Success": true,
"ErrorCode": "103630001",
"ErrorMessage": "The user does not exist. 276571706358178756",
"HttpStatusCode": 200,
"Data": {
"PageNumber": "1",
"PageSize": "10",
"TotalCount": "100",
"Baselines": [
{
"BaselineId": 1234,
"ProjectId": 9527,
"BaselineType": "DAILY",
"Priority": 1,
"Owner": "952795****",
"BaselineName": "BaselineName",
"Enabled": true,
"AlertEnabled": true,
"AlertMarginThreshold": 30,
"OverTimeSettings": [
{
"Cycle": 1,
"Time": "00:00"
}
]
}
]
},
"RequestId": "952795279527ab****"
}
Error codes
For a list of error codes, visit the Service error codes.