All Products
Search
Document Center

DataWorks:ListBaselines

Last Updated:Jul 18, 2024

Obtains a list of baselines.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
OwnerstringNo

The owner.

3726346****
ProjectIdlongYes

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

123456
PrioritystringNo

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

1
EnablebooleanNo

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

true
BaselineTypesstringNo

The type of the baseline. Valid values: DAILY and HOURLY. You can specify multiple types. Separate multiple types with commas (,).

DAILY
SearchTextstringNo

The keyword in the baseline name, which is used to search for the baseline.

baselineName
PageNumberintegerYes

The page number. Pages start from page 1. Default value: 1. Maximum value: 30.

1
PageSizeintegerYes

The number of entries per page. Default value: 10. Maximum value: 100.

100

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

Successboolean

Indicates whether the request was successful. Valid values:

  • true
  • false
true
ErrorCodestring

The error code.

103630001
ErrorMessagestring

The error message returned if the request failed.

The user does not exist. 276571706358178756
HttpStatusCodeinteger

The HTTP status code.

200
Dataobject

The data returned.

PageNumberstring

The page number.

1
PageSizestring

The number of entries per page.

10
TotalCountstring

The total number of baselines returned.

100
Baselinesarray<object>

The baselines.

object
BaselineIdlong

The baseline ID.

1234
ProjectIdlong

The ID of the workspace to which the baseline belongs.

9527
BaselineTypestring

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

DAILY
Priorityinteger

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

1
Ownerstring

The ID of the Alibaba Cloud account used by the baseline owner. Multiple IDs can be specified. The IDs are separated by commas (,).

952795****
BaselineNamestring

The name of the baseline.

BaselineName
Enabledboolean

Indicates whether the baseline is enabled. Valid values: true and false.

true
AlertEnabledboolean

Indicates whether the alerting feature is enabled. Valid values: true and false.

true
AlertMarginThresholdinteger

The alert margin threshold for the baseline instance. Unit: minutes.

30
OverTimeSettingsarray<object>

The settings of the committed completion time of the baseline.

object
Cycleinteger

The cycle that corresponds to the committed completion time. For a day-level baseline, the value of this parameter is 1. For an hour-level baseline, the value of this parameter cannot exceed 24.

1
Timestring

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

00:00
RequestIdstring

The request ID.

952795279527ab****

Examples

Sample success responses

JSONformat

{
  "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.