Mengkueri daftar instans.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:* |
list |
*All Resource
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectEnv |
string |
Yes |
Lingkungan tempat node dijalankan. Nilai yang valid: DEV dan PROD. |
PROD |
| NodeId |
integer |
No |
Menunjukkan apakah instans dikaitkan dengan aturan pemantauan di Data Quality. Nilai yang valid:
|
100000000000 |
| NodeName |
string |
No |
Menunjukkan apakah node dapat dijalankan ulang. |
openmr_8**** |
| Owner |
string |
No |
String koneksi. |
193379**** |
| ProjectId |
integer |
Yes |
ID baseline. |
12345 |
| BizName |
string |
No |
ID instans. |
test_bizName |
| ProgramType |
string |
No |
Kode kesalahan yang dikembalikan. |
ODPS_SQL |
| PageNumber |
integer |
No |
Operasi yang ingin Anda lakukan. |
1 |
| PageSize |
integer |
No |
ID node. |
10 |
| DagId |
integer |
No |
Lingkungan workspace. Nilai yang valid: PROD dan DEV. Nilai PROD menunjukkan lingkungan produksi. Nilai DEV menunjukkan lingkungan pengembangan. |
11111 |
| Bizdate |
string |
No |
Jumlah entri yang dikembalikan per halaman. Nilai default: 10. Nilai maksimum: 100. |
2020-02-02 00:00:00 |
| BeginBizdate |
string |
No |
Parameter yang terkait dengan node. |
2020-02-02 00:00:00 |
| EndBizdate |
string |
No |
ID alur kerja. |
2020-02-03 00:00:00 |
| Status |
string |
No |
Status node. Nilai yang valid:
|
NOT_RUN |
| OrderBy |
string |
No |
Aturan pengurutan instans yang akan dikembalikan. Nilai yang valid:
|
INSTANCE_ID_DESC |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Instans yang dikembalikan. |
||
| HttpStatusCode |
integer |
Pesan kesalahan yang dikembalikan untuk instans. Parameter ini sudah tidak digunakan lagi. Anda dapat memanggil operasi GetInstanceLog untuk mengkueri informasi kesalahan yang terkait dengan node. |
200 |
| RequestId |
string |
Nama node. |
E6F0DBDD-5AD**** |
| ErrorMessage |
string |
Nomor halaman dari halaman yang dikembalikan. |
The project does not exist. |
| ErrorCode |
string |
Kode status HTTP yang dikembalikan. |
Invalid.Tenant.ProjectNotExists |
| Success |
boolean |
Awal rentang waktu yang akan dikueri. Tentukan waktu dalam format yyyy-MM-dd HH:mm:ss. |
true |
| Data |
object |
ID node. Anda dapat memanggil operasi ListNodes untuk mengkueri ID node. |
|
| PageNumber |
integer |
Waktu ketika node dijadwalkan untuk dijalankan. |
1 |
| PageSize |
integer |
Akhir rentang waktu yang akan dikueri. Tentukan waktu dalam format yyyy-MM-dd HH:mm:ss. |
10 |
| TotalCount |
integer |
Prioritas instans. Nilai yang valid: 1, 3, 5, 7, dan 8. Nilai yang lebih besar menunjukkan prioritas yang lebih tinggi. Nilai default: 1. |
66 |
| Instances |
array<object> |
Nama node. Anda dapat memanggil operasi ListNodes untuk mengkueri nama node. |
|
|
object |
Waktu ketika instans dibuat. |
||
| Status |
string |
The data timestamp of the instances that you want to query. Specify the timestamp in the yyyy-MM-dd HH:mm:ss format. |
NOT_RUN |
| CycTime |
integer |
The error message returned. |
1590422400000 |
| BeginRunningTime |
integer |
The time when the instance started to run. |
1590416703313 |
| FinishTime |
integer |
The ID of the Alibaba Cloud account used by the workspace administrator. You can log on to the Alibaba Cloud Management Console and view the ID on the Security Settings page of the Account Center console. |
1590416703313 |
| ErrorMessage |
string |
The name of the account that is used to run the instance. For example, if an account named Test was used to run the instance to backfill data, the value of this parameter is Test. |
error message |
| CreateTime |
integer |
The interval at which the node is rerun after the node fails to run. Unit: milliseconds. |
1590416703313 |
| DagId |
integer |
The time when the instance started to wait for resources. |
33845 |
| Priority |
integer |
The total number of instances. |
1 |
| TaskType |
string |
The information about the instances. |
NORMAL(0) |
| ParamValues |
string |
The table and partition filter expression in Data Quality that are associated with the node. |
bizdate=$bizdate tbods=$tbods |
| Connection |
string |
The number of times the node can be rerun. The value of this parameter can be empty or an integer that is greater than or equal to 0.
|
odps_first |
| BaselineId |
integer |
The type of the workflow. Valid values:
|
123123 |
| DqcType |
integer |
The status of the node. Valid values:
|
1 |
| DagType |
string |
The data timestamp of the instance. In most cases, the value is one day before the time when the instance was run. |
DAILY |
| BusinessId |
integer |
The ID of the workflow to which the node belongs. |
123 |
| TaskRerunTime |
integer |
The ID of the workspace. You can call the ListProjects operation to query the ID of the workspace. |
0 |
| ModifyTime |
integer |
The name of the workflow. You can call the ListBusiness operation to query the name of the workflow. |
1590416703313 |
| Repeatability |
boolean |
The status of the node. Valid values:
|
true |
| RepeatInterval |
integer |
The scheduling type of the node. Valid values:
|
60000 |
| InstanceId |
integer |
The number of the page to return. Minimum value:1. Maximum value: 100. |
1234 |
| BeginWaitResTime |
integer |
The time when the node stopped running. |
1590416703313 |
| RelatedFlowId |
integer |
The type of the node. You can call the ListNodes operation to query the type of the node. |
123456 |
| Bizdate |
integer |
The number of entries to return on each page. Default value: 10. Maximum value: 100. You cannot specify the sorting method for the instances to be returned by this operation. By default, the instances are sorted in descending order of the time when the instances were created. |
1590336000000 |
| NodeName |
string |
The ID of the workflow. |
kzh |
| BeginWaitTimeTime |
integer |
The ID of the request. You can use the ID to locate logs and troubleshoot issues. |
1590416703313 |
| DqcDescription |
string |
The operation that you want to perform. |
[{"projectName":"ztjy_dim","tableName":"dim_user_agent_manage_area_a","partition":"ds\u003d$[yyyy-mm-dd-1]"}] |
| NodeId |
integer |
The environment of the workspace. Valid values: PROD and DEV. The value PROD indicates the production environment. The value DEV indicates the development environment. |
33115 |
| CreateUser |
string |
The ID of the node. You can call the ListNodes operation to query the ID of the node. |
Test |
Contoh
Respons sukses
JSONformat
{
"HttpStatusCode": 200,
"RequestId": "E6F0DBDD-5AD****",
"ErrorMessage": "The project does not exist.",
"ErrorCode": "Invalid.Tenant.ProjectNotExists",
"Success": true,
"Data": {
"PageNumber": 1,
"PageSize": 10,
"TotalCount": 66,
"Instances": [
{
"Status": "NOT_RUN",
"CycTime": 1590422400000,
"BeginRunningTime": 1590416703313,
"FinishTime": 1590416703313,
"ErrorMessage": "error message",
"CreateTime": 1590416703313,
"DagId": 33845,
"Priority": 1,
"TaskType": "NORMAL(0)",
"ParamValues": "bizdate=$bizdate tbods=$tbods",
"Connection": "odps_first",
"BaselineId": 123123,
"DqcType": 1,
"DagType": "DAILY",
"BusinessId": 123,
"TaskRerunTime": 0,
"ModifyTime": 1590416703313,
"Repeatability": true,
"RepeatInterval": 60000,
"InstanceId": 1234,
"BeginWaitResTime": 1590416703313,
"RelatedFlowId": 123456,
"Bizdate": 1590336000000,
"NodeName": "kzh",
"BeginWaitTimeTime": 1590416703313,
"DqcDescription": "[{\"projectName\":\"ztjy_dim\",\"tableName\":\"dim_user_agent_manage_area_a\",\"partition\":\"ds\\u003d$[yyyy-mm-dd-1]\"}]",
"NodeId": 33115,
"CreateUser": "Test"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.