GetBaseline
Retrieves the baseline configuration based on the baseline ID.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineId |
integer |
Yes |
The ID of the baseline. You can obtain the ID by calling ListBaselines. |
123456 |
| ProjectId |
integer |
Yes |
The ID of the workspace monitored by the baseline. You can obtain the ID by calling ListBaselines. |
10000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
OpenApiResultModel |
||
| Data |
object |
The response data. |
|
| AlertEnabled |
boolean |
Specifies whether alerting is enabled. Valid values:
|
true |
| AlertMarginThreshold |
integer |
The alert margin threshold, in minutes. |
60 |
| AlertSettings |
array<object> |
The alert settings. |
|
|
array<object> |
The alert configuration for the baseline. |
||
| AlertInterval |
integer |
The event alerting interval, in seconds. |
900 |
| AlertMaximum |
integer |
The maximum number of event alerts. |
1 |
| AlertMethods |
array |
The list of alert methods. |
|
|
string |
The alert method. Valid values:
|
|
|
| AlertRecipient |
string |
The details of the alert recipient.
|
123123 |
| AlertRecipientType |
string |
The type of the alert recipient. Valid values:
|
OWNER |
| AlertType |
string |
The alerting type. Valid values:
|
BASELINE |
| BaselineAlertEnabled |
boolean |
Specifies whether baseline alerting is enabled. This is a baseline-specific configuration. Valid values:
|
false |
| DingRobots |
array<object> |
The list of DingTalk chatbots. |
|
|
object |
The DingTalk chatbot configuration. |
||
| AtAll |
boolean |
Specifies whether to mention all members. |
true |
| WebUrl |
string |
The webhook URL of the DingTalk chatbot. |
https://oapi.dingtalk.com/robot/send?access_token=xxx |
| SilenceEndTime |
string |
The end time of the silence period, in the HH:mm:ss format. |
00:00:00 |
| SilenceStartTime |
string |
The start time of the silence period, in the HH:mm:ss format. |
00:00:00 |
| TopicSlowConfig |
object |
The threshold configuration for slow event alerts. |
|
| MinOver |
integer |
The minimum threshold for slow events, in seconds. Valid values: 300 to 18000. |
3600 |
| OverFactor |
number |
The ratio used to calculate the slow event threshold based on the historical average execution duration of the node. Valid values: 0.1 to 2. |
0.2 |
| TopicTypes |
array |
The list of event alerting types. This is an event-specific configuration. |
|
|
string |
The event alerting type. Valid values:
|
SLOW |
|
| Webhooks |
array |
The list of webhooks. |
|
|
string |
The webhook URL of the WeCom or Feishu chatbot. Multiple webhook URLs are separated by commas (,). The alertMethods parameter must include WEBHOOKS. This feature is supported only by DataWorks Enterprise Edition. Supported regions: China (Shanghai), China (Chengdu), China (Zhangjiakou), China (Beijing), China (Hangzhou), China (Shenzhen), China (Hong Kong), Germany (Frankfurt), and Singapore. |
https://open.feishu.cn/open-apis/bot/v2/hook/xxx |
|
| BaselineId |
integer |
The ID of the baseline. |
1001 |
| BaselineName |
string |
The name of the baseline. |
Test baseline |
| BaselineType |
string |
The baseline type. Valid values:
|
DAILY |
| Enabled |
boolean |
Specifies whether the baseline is enabled. |
true |
| NodeIds |
array |
The list of upstream nodes for the baseline. |
|
|
integer |
The ID of the node. |
700003**** |
|
| OverTimeSettings |
array<object> |
The committed time settings for the baseline. |
|
|
object |
The monitoring period. |
||
| Cycle |
integer |
The period corresponding to the committed time. The value is 1 for a daily baseline. For an hourly baseline, you can configure up to 24 periods. |
1 |
| Time |
string |
The committed time, in the hh:mm format. Valid values for hh: 0 to 47. Valid values for mm: 0 to 59. |
00:00 |
| Owner |
string |
The owner. |
9527952**** |
| Priority |
integer |
The priority of the baseline. Valid values: 1, 3, 5, 7, and 8. |
1 |
| ProjectId |
integer |
The ID of the project. |
10000 |
| ErrorCode |
string |
The error code. |
1031203110005 |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The request ID. |
ecb967ec-c137-48a5-860**** |
| Success |
boolean |
Indicates whether the request is successful. Valid values:
|
true |
Examples
Success response
JSON format
{
"Data": {
"AlertEnabled": true,
"AlertMarginThreshold": 60,
"AlertSettings": [
{
"AlertInterval": 900,
"AlertMaximum": 1,
"AlertMethods": [
"MAIL"
],
"AlertRecipient": "123123",
"AlertRecipientType": "OWNER",
"AlertType": "BASELINE",
"BaselineAlertEnabled": false,
"DingRobots": [
{
"AtAll": true,
"WebUrl": "https://oapi.dingtalk.com/robot/send?access_token=xxx"
}
],
"SilenceEndTime": "00:00:00",
"SilenceStartTime": "00:00:00",
"TopicSlowConfig": {
"MinOver": 3600,
"OverFactor": 0.2
},
"TopicTypes": [
"SLOW"
],
"Webhooks": [
"https://open.feishu.cn/open-apis/bot/v2/hook/xxx"
]
}
],
"BaselineId": 1001,
"BaselineName": "Test baseline",
"BaselineType": "DAILY",
"Enabled": true,
"NodeIds": [
0
],
"OverTimeSettings": [
{
"Cycle": 1,
"Time": "00:00"
}
],
"Owner": "9527952****",
"Priority": 1,
"ProjectId": 10000
},
"ErrorCode": "1031203110005",
"ErrorMessage": "The specified parameters are invalid",
"HttpStatusCode": 200,
"RequestId": "ecb967ec-c137-48a5-860****",
"Success": true
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.