Queries the information about a baseline based on its ID.

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
ActionStringYesGetBaseline

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

BaselineIdLongYes123456

The baseline ID. You can call the ListBaselines operation to obtain the ID.

ProjectIdLongYes10000

The ID of the workspace to which the baseline belongs. You can call the ListBaselines operation to obtain the ID.

Response parameters

ParameterTypeExampleDescription
SuccessBooleantrue

Indicates whether the request was successful. Valid values:

  • true
  • false
ErrorCodeString1031203110005

The error code.

ErrorMessageStringThe specified parameters are invalid

The error message.

HttpStatusCodeInteger200

The HTTP status code.

DataObject

The data returned.

BaselineIdLong1001

The ID of the baseline.

BaselineNameStringTest baseline

The name of the baseline.

ProjectIdLong10000

The workspace ID.

OwnerString9527952****

The owner.

PriorityInteger1

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

BaselineTypeStringDAILY

The type of the baseline. Valid values:

  • DAILY
  • HOURLY
OverTimeSettingsArray of OverTimeSetting

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.

EnabledBooleantrue

Indicates whether the baseline is enabled.

NodeIdsArray of Long700003559814

The node IDs.

AlertEnabledBooleantrue

Indicates whether the alerting feature is enabled. Valid values:

  • true
  • false
AlertMarginThresholdInteger60

The alert margin threshold. Unit: minutes.

AlertSettingsArray of AlertSetting

The alert settings.

AlertTypeStringBASELINE

The type of the alert. Valid values:

  • BASELINE
    • Indicates a baseline alert.
  • TOPIC
    • Indicates an event alert.
AlertMethodsArray of StringMAIL

The alert notification methods. Valid values:

  • MAIL
  • SMS
  • PHONE
  • DINGROBOTS
  • WEBHOOKS
SilenceStartTimeString00:00:00

The beginning of the time range for silence. The time is in the HH:mm:ss format.

SilenceEndTimeString00:00:00

The end of the time range for silence. The time is in the HH:mm:ss format.

AlertIntervalInteger900

The interval at which an event alert notification is sent. Unit: seconds.

AlertMaximumInteger1

The maximum number of times an event alert notification is sent.

DingRobotsArray of DingRobot

The DingTalk chatbots.

WebUrlStringhttps://oapi.dingtalk.com/robot/send?access_token=xxx

The webhook URL of the DingTalk chatbot.

AtAllBooleantrue

Indicates whether all members were reminded by using the at sign (@).

WebhooksArray of Stringhttps://open.feishu.cn/open-apis/bot/v2/hook/xxx

The webhook URL of the WeCom or Lark chatbot. If multiple webhook URLs are involved, the webhook URLs are separated by commas (,). The value of AlertMethods must include WEBHOOKS. Only DataWorks Enterprise Edition supports this parameter.

The webhook URL-based alerting feature is supported in the following regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), and Singapore.

TopicTypesArray of StringSLOW

The type of the event alert. Valid values:

  • SLOW
  • ERROR
BaselineAlertEnabledBooleanfalse

Indicates whether the baseline alerting feature is enabled. The feature is specific to baselines. Valid values:

  • true
  • false
AlertRecipientTypeStringOWNER

The type of the alert recipient. Valid values:

  • OWNER
    • Indicates the node owner.
  • OTHER
    • Indicates specified personnel.
  • SHIFT_SCHEDULE
    • Indicates personnel in a shift schedule.
AlertRecipientString123123

The details of the alert recipient.

  • If the value of AlertRecipientType is OWNER, this parameter is left empty.
  • If the value of AlertRecipientType is SHIFT_SCHEDULE, the value of this parameter is the ID of a shift schedule.
  • If the value of AlertRecipientType is OTHER, the value of this parameter is the UIDs of specified personnel. Multiple UIDs are separated by commas (,).
RequestIdStringecb967ec-c137-48a5-860****

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=GetBaseline
&BaselineId=123456
&ProjectId=123456
&<Common request parameters>

Sample success responses

XML format

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

<GetBaselineResponse>
    <Success>true</Success>
    <ErrorCode>1031203110005</ErrorCode>
    <ErrorMessage>The specified parameters are invalid</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>
        <BaselineId>1001</BaselineId>
        <BaselineName>Test baseline</BaselineName>
        <ProjectId>10000</ProjectId>
        <Owner>9527952****</Owner>
        <Priority>1</Priority>
        <BaselineType>DAILY</BaselineType>
        <OverTimeSettings>
            <Cycle>1</Cycle>
            <Time>00:00</Time>
        </OverTimeSettings>
        <Enabled>true</Enabled>
        <TaskIds>123123</TaskIds>
        <AlertEnabled>true</AlertEnabled>
        <AlertMarginThreshold>60</AlertMarginThreshold>
        <AlertSettings>
            <AlertType>BASELINE</AlertType>
            <AlertMethods>MAIL</AlertMethods>
            <SilenceStartTime>00:00:00</SilenceStartTime>
            <SilenceEndTime>00:00:00</SilenceEndTime>
            <AlertInterval>900</AlertInterval>
            <AlertMaximum>1</AlertMaximum>
            <DingRobots>
                <WebUrl>https://oapi.dingtalk.com/robot/send?access_token=xxx</WebUrl>
                <AtAll>true</AtAll>
            </DingRobots>
            <Webhooks>https://open.feishu.cn/open-apis/bot/v2/hook/xxx</Webhooks>
            <TopicTypes>SLOW</TopicTypes>
            <BaselineAlertEnabled>false</BaselineAlertEnabled>
            <AlertRecipientType>OWNER</AlertRecipientType>
            <AlertRecipient>123123</AlertRecipient>
        </AlertSettings>
    </Data>
    <RequestId>ecb967ec-c137-48a5-860****</RequestId>
</GetBaselineResponse>

JSON format

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

{
  "Success" : true,
  "ErrorCode" : "1031203110005",
  "ErrorMessage" : "The specified parameters are invalid",
  "HttpStatusCode" : 200,
  "Data" : {
    "BaselineId" : 1001,
    "BaselineName" : "Test baseline",
    "ProjectId" : 10000,
    "Owner" : "9527952****",
    "Priority" : 1,
    "BaselineType" : "DAILY",
    "OverTimeSettings" : [ {
      "Cycle" : 1,
      "Time" : "00:00"
    } ],
    "Enabled" : true,
    "TaskIds" : [ 123123 ],
    "AlertEnabled" : true,
    "AlertMarginThreshold" : 60,
    "AlertSettings" : [ {
      "AlertType" : "BASELINE",
      "AlertMethods" : [ "MAIL" ],
      "SilenceStartTime" : "00:00:00",
      "SilenceEndTime" : "00:00:00",
      "AlertInterval" : 900,
      "AlertMaximum" : 1,
      "DingRobots" : [ {
        "WebUrl" : "https://oapi.dingtalk.com/robot/send?access_token=xxx",
        "AtAll" : true
      } ],
      "Webhooks" : [ "https://open.feishu.cn/open-apis/bot/v2/hook/xxx" ],
      "TopicTypes" : [ "SLOW" ],
      "BaselineAlertEnabled" : false,
      "AlertRecipientType" : "OWNER",
      "AlertRecipient" : "123123"
    } ]
  },
  "RequestId" : "ecb967ec-c137-48a5-860****"
}

Error codes

For a list of error codes, see Service error codes.