All Products
Search
Document Center

DataWorks:GetBaseline

Last Updated:Jun 11, 2026

Menanyakan informasi tentang baseline berdasarkan ID-nya.

Coba sekarang

Coba API ini di OpenAPI Explorer tanpa perlu penandatanganan manual. Panggilan yang berhasil akan secara otomatis menghasilkan contoh kode SDK sesuai dengan parameter Anda. Unduh kode tersebut dengan kredensial bawaan yang aman untuk penggunaan lokal.

Test

RAM authorization

Tidak ada otorisasi untuk operasi ini. Jika Anda mengalami masalah saat menjalankan operasi ini, hubungi dukungan teknis.

Parameter permintaan

Parameter

Type

Required

Description

Example

BaselineId

integer

Yes

ID baseline. Anda dapat memanggil operasi ListBaselines untuk menanyakan ID.

123456

ProjectId

integer

Yes

ID workspace tempat baseline berada. Anda dapat memanggil operasi ListBaselines untuk menanyakan ID.

10000

Elemen respons

Element

Type

Description

Example

object

OpenApiResultModel

Success

boolean

Menunjukkan apakah permintaan berhasil. Nilai yang valid:

  • true

  • false

true

ErrorCode

string

Kode error.

1031203110005

ErrorMessage

string

Pesan error.

The specified parameters are invalid

HttpStatusCode

integer

Kode status HTTP.

200

Data

object

Data yang dikembalikan.

BaselineId

integer

ID baseline.

1001

BaselineName

string

Nama baseline.

Test baseline

ProjectId

integer

ID workspace.

10000

Owner

string

Pemilik.

9527952****

Priority

integer

Prioritas baseline. Nilai yang valid: 1, 3, 5, 7, dan 8.

1

BaselineType

string

Jenis baseline. Nilai yang valid:

  • DAILY

  • HOURLY

DAILY

OverTimeSettings

array<object>

Pengaturan waktu penyelesaian yang dijanjikan dari baseline.

object

Cycle

integer

The period corresponding to the commitment time. The space-based line is 1, and the hourly baseline can be configured for up to 24 cycles.

1

Time

string

Commitment time, hh:mm format, hh value range is [0,47],mm value range is [0,59].

00:00

Enabled

boolean

Menunjukkan apakah baseline diaktifkan.

true

NodeIds

array

ID node.

integer

ID node.

700003****

AlertEnabled

boolean

Menunjukkan apakah fitur peringatan diaktifkan. Nilai yang valid:

  • true

  • false

true

AlertMarginThreshold

integer

Ambang batas margin peringatan. Satuan: menit.

60

AlertSettings

array<object>

Pengaturan peringatan.

array<object>

Konfigurasi peringatan baseline.

AlertType

string

Alert type

  • BASELINE: baseline

  • TOPIC: event

BASELINE

AlertMethods

array

Alert method list

string

The alert method. The values are as follows:

  • MAIL: MAIL

  • SMS: SMS

  • PHONE: voice

  • DINGROBOTS: DingTalk robot

  • WEBHOOKS: Webhook

MAIL

SilenceStartTime

string

The start time of the silence. Format: HH:mm:ss

00:00:00

SilenceEndTime

string

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

00:00:00

AlertInterval

integer

The event alert interval, in seconds.

900

AlertMaximum

integer

The maximum number of event alerts.

1

DingRobots

array<object>

DingTalk robot list.

object

DingTalk robot configuration.

WebUrl

string

DingTalk robot address

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

AtAll

boolean

Whether @ everyone.

true

Webhooks

array

webhook list.

string

The webhook addresses of the Enterprise WeChat or flying book Robot. Separate multiple webhook addresses with commas (,). alertMethods must include WEBHOOKS alert methods. Only DataWorks Enterprise Edition is supported.

Available regions: China(Shanghai), China(Chengdu), China(Zhangjiakou), China(Beijing), China(Hangzhou), China(Shenzhen), China (Hong Kong), Central Europe 1 (Frankfurt), and Southeast Asia Pacific 1 (Singapore).

https://open.feishu.cn/open-apis/bot/v2/hook/xxx

TopicTypes

array

The list of Event Alert types.

string

The type of the event alert.

  • SLOW

  • ERROR

SLOW

BaselineAlertEnabled

boolean

The baseline alarm switch.

  • true

  • false

false

AlertRecipientType

string

The type of alert recipient.

  • OWNER: task owner

  • OTHER: designated person

  • SHIFT: SCHEDULE-duty table

OWNER

AlertRecipient

string

Alert recipient details.

AlertRecipientType is OWNER: empty AlertRecipientType is SHIFT_SCHEDULE: duty table uid AlertRecipientType is OTHER: uid list, multiple UIDs are in English, split

123123

RequestId

string

ID permintaan.

ecb967ec-c137-48a5-860****

Contoh

Respons sukses

JSONformat

{
  "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,
    "NodeIds": [
      0
    ],
    "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****"
}

Kode kesalahan

Lihat Error Codes untuk daftar lengkap.

Catatan rilis

Lihat Release Notes untuk daftar lengkap.