GetBaselineKeyPath
Queries the key path of a baseline instance.
Operation description
Before you call this operation, prepare a valid BaselineId. You can call ListProjects to obtain the ProjectId, call ListBaselines, and then obtain the BaselineId from Data.Baselines[].BaselineId.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| BaselineId |
integer |
Yes |
The ID of the baseline. |
1234 |
| Bizdate |
string |
Yes |
The business date. The format is yyyy-MM-dd'T'HH:mm:ssZ. The date and time part is yyyy-MM-dd'T'HH:mm:ss, and Z at the end is the time zone offset from UTC. For example, the sample value 2020-07-07T00:00:00+0800 indicates 2020-07-07 00:00:00 in the UTC+8 time zone, which corresponds to 2020-07-06T16:00:00 in UTC. |
2020-07-07T00:00:00+0800 |
| InGroupId |
integer |
Yes |
The cycle number of the baseline instance. The value is 1 for daily baselines. Valid values for hourly baselines: 1 to 24. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response data structure. |
||
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| RequestId |
string |
The unique ID of the request. You can use the ID to troubleshoot issues if an error occurs. |
0000-ABCD-EFG**** |
| ErrorMessage |
string |
The error message. |
The specified parameters are invalid. |
| ErrorCode |
string |
The error code. |
1031203110005 |
| Success |
boolean |
Indicates whether the request was successful. |
true |
| Data |
array<object> |
The key path information. |
|
|
array<object> |
|||
| Owner |
string |
The Alibaba Cloud UID of the node owner. |
9527952**** |
| NodeName |
string |
The name of the node. |
Node name |
| Bizdate |
integer |
The timestamp of the business date for the instance. |
1553443200000 |
| ProjectId |
integer |
The ID of the workspace to which the node belongs. |
1234 |
| InstanceId |
integer |
The ID of the instance. |
123456 |
| PrgType |
integer |
The node type. Common node types include Data Integration (23), MaxCompute SQL (10), Shell (6), and virtual node (99). |
10 |
| NodeId |
integer |
The ID of the node. |
1234 |
| InGroupId |
integer |
The cycle number of the instance. Valid values: 1 to 288. |
1 |
| Runs |
array<object> |
The run records of the instance. |
|
|
object |
|||
| Status |
string |
The status of the instance. Valid values: NOT_RUN (not run), WAIT_TIME (waiting for the scheduled time), WAIT_RESOURCE (waiting for resources), RUNNING (running), CHECKING (checking), CHECKING_CONDITION (checking conditions), FAILURE (failed), and SUCCESS (successful). |
SUCCESS |
| AbsTime |
integer |
The timestamp obtained by adding the historical average running duration to the estimated start time of the instance. |
1553531402000 |
| BeginRunningTime |
integer |
The timestamp when the instance actually started running. |
1553531401000 |
| FinishTime |
integer |
The timestamp when the instance actually finished running. |
1553531401000 |
| BeginCast |
integer |
The estimated start timestamp of the instance. |
1553531686000 |
| EndCast |
integer |
The estimated end timestamp of the instance. |
1553531687000 |
| BeginWaitResTime |
integer |
The timestamp when the instance started waiting for resources. |
1553531401000 |
| BeginWaitTimeTime |
integer |
The timestamp when the instance started waiting for the scheduled time. |
1553531400000 |
| Topics |
array<object> |
The event information associated with the instance. |
|
|
object |
|||
| TopicName |
string |
The name of the event. |
1234 |
| InstanceId |
integer |
The ID of the instance. |
1234 |
| TopicId |
integer |
The ID of the event. |
1234 |
| AddTime |
integer |
The timestamp when the event was detected. |
1553531401000 |
Examples
Success response
JSON format
{
"HttpStatusCode": 200,
"RequestId": "0000-ABCD-EFG****",
"ErrorMessage": "The specified parameters are invalid.",
"ErrorCode": "1031203110005",
"Success": true,
"Data": [
{
"Owner": "9527952****",
"NodeName": "Node name",
"Bizdate": 1553443200000,
"ProjectId": 1234,
"InstanceId": 123456,
"PrgType": 10,
"NodeId": 1234,
"InGroupId": 1,
"Runs": [
{
"Status": "SUCCESS",
"AbsTime": 1553531402000,
"BeginRunningTime": 1553531401000,
"FinishTime": 1553531401000,
"BeginCast": 1553531686000,
"EndCast": 1553531687000,
"BeginWaitResTime": 1553531401000,
"BeginWaitTimeTime": 1553531400000
}
],
"Topics": [
{
"TopicName": "1234",
"InstanceId": 1234,
"TopicId": 1234,
"AddTime": 1553531401000
}
]
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | Forbidden.Not.Server | The dataworksAPI service is not available in this area. Please try it in another area. | |
| 500 | InternalError.System | An internal system error occurred. Try again later. | |
| 403 | Forbidden.Access | Access is forbidden. Please first activate DataWorks Enterprise Edition or Flagship Edition. | |
| 429 | Throttling.Api | The request for this resource has exceeded your available limit. | |
| 429 | Throttling.Api.Risk | The request for this resource has exceeded your daily available limit. | |
| 429 | Throttling.System | The DataWorks system is busy. Try again later. | |
| 429 | Throttling.User | Your request is too frequent. Try again later. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.