Queries 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. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

ParameterTypeRequiredExampleDescription
ActionStringYesListBaselines

The operation that you want to perform. Set the value to ListBaselines.

OwnerStringNo3726346****

The owner.

ProjectIdLongYes123456

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

PriorityStringNo1

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

EnableBooleanNotrue

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

BaselineTypesStringNoDAILY

The type of the baseline. Valid values: DAILY and HOURLY. The value DAILY indicates that the baseline is a day-level baseline. The value HOURLY indicates that the baseline is an hour-level baseline. You can specify multiple types. Separate multiple types with commas (,).

SearchTextStringNobaselineName

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

PageNumberIntegerYes1

The page number. Pages start from page 1. Valid values: 1 to 30. Default value: 1.

PageSizeIntegerYes100

The number of entries per page. Valid values: 1 to 100. Default value: 10.

Response parameters

ParameterTypeExampleDescription
SuccessBooleantrue

Indicates whether the request was successful. Valid values:

  • true
  • false
ErrorCodeString103630001

The error code.

ErrorMessageStringThe user does not exist. 276571706358178756

The error message returned if the call failed.

HttpStatusCodeInteger200

The HTTP status code.

DataObject

The data returned.

PageNumberString1

The page number.

PageSizeString10

The number of entries per page.

TotalCountString100

The total number of baselines returned.

BaselinesArray of baselines

The baselines.

BaselineIdLong1234

The ID of the baseline.

ProjectIdLong9527

The ID of the workspace to which the baseline belongs.

BaselineTypeStringDAILY

The type of the baseline. Valid values: DAILY and HOURLY. The value DAILY indicates that the baseline is a day-level baseline. The value HOURLY indicates that the baseline is an hour-level baseline.

PriorityInteger1

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

OwnerString952795****

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

BaselineNameStringBaselineName

The name of the baseline.

EnabledBooleantrue

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

AlertEnabledBooleantrue

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

AlertMarginThresholdInteger30

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

OverTimeSettingsArray of overTimeSettings

The settings of the committed completion time of the baseline.

CycleInteger1

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.

TimeString00:00

The committed completion time. The time is in the hh:mm format. Valid values of hh: 0 to 47. Valid values of mm: 0 to 59.

RequestIdString952795279527ab****

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListBaselines
&Owner=3726346****
&ProjectId=123456
&Priority=1
&Enable=true
&BaselineTypes=DAILY
&SearchText=baselineName
&PageNumber=1
&PageSize=100
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ListBaselinesResponse>
    <Success>true</Success>
    <ErrorCode>103630001</ErrorCode>
    <ErrorMessage>The user does not exist. 276571706358178756</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>
        <PageNumber>1</PageNumber>
        <PageSize>10</PageSize>
        <TotalCount>100</TotalCount>
        <Baselines>
            <BaselineId>1234</BaselineId>
            <ProjectId>9527</ProjectId>
            <BaselineType>DAILY</BaselineType>
            <Priority>1</Priority>
            <Owner>952795****</Owner>
            <BaselineName>BaselineName</BaselineName>
            <Enabled>true</Enabled>
            <AlertEnabled>true</AlertEnabled>
            <AlertMarginThreshold>30</AlertMarginThreshold>
            <OverTimeSettings>
                <Cycle>1</Cycle>
                <Time>00:00</Time>
            </OverTimeSettings>
        </Baselines>
    </Data>
    <RequestId>952795279527ab****</RequestId>
</ListBaselinesResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "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, see Service error codes.