Melihat tugas integrasi data.
Deskripsi operasi
Operasi ini memerlukan DataWorks Edisi Dasar atau yang lebih baru.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| Id |
integer |
No |
ID pekerjaan DI. |
11588 |
| WithDetails |
boolean |
No |
Menentukan apakah akan mengembalikan konfigurasi rinci, termasuk |
true |
| ProjectId |
integer |
No |
ID ruang kerja DataWorks. Anda dapat memanggil operasi |
10000 |
DIJobId
deprecated
|
integer |
No |
Bidang ini sudah usang. Gunakan bidang |
11588 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Data yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. Anda dapat menggunakan ID ini untuk menemukan log dan memecahkan masalah. |
C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490 |
| PagingInfo |
object |
Detail pekerjaan integrasi data. |
|
| Id |
integer |
ID pekerjaan. |
32601 |
| Description |
string |
Deskripsi pekerjaan. |
description |
| DestinationDataSourceSettings |
array<object> |
Pengaturan untuk sumber data tujuan. |
|
|
object |
Properti untuk sumber data tujuan. |
||
| DataSourceName |
string |
The name of the data source. |
dw_mysql |
| DestinationDataSourceType |
string |
Jenis sumber data tujuan. Nilai yang valid: |
Hologres |
| JobName |
string |
Nama pekerjaan. |
imp_ods_dms_det_dealer_info_df |
| JobSettings |
object |
Pengaturan pekerjaan. |
|
| ChannelSettings |
string |
The channel control settings for the synchronization task. You can configure special channel control settings for the following synchronization links: data synchronization between Hologres data sources and data synchronization from Hologres to Kafka.
|
{"structInfo":"MANAGED","storageType":"TEXTFILE","writeMode":"APPEND","partitionColumns":[{"columnName":"pt","columnType":"STRING","comment":""}],"fieldDelimiter":""} |
| ColumnDataTypeSettings |
array<object> |
The data type mappings between source fields and destination fields. |
|
|
object |
The data type mapping between a source field and a destination field. |
||
| DestinationDataType |
string |
The data type of the destination field. Valid values: bigint, boolean, string, text, datetime, timestamp, decimal, and binary. Different types of data sources support different data types. |
text |
| SourceDataType |
string |
The data type of the source field. Valid values: bigint, boolean, string, text, datetime, timestamp, decimal, and binary. Different types of data sources support different data types. |
bigint |
| CycleScheduleSettings |
object |
The settings for periodic scheduling. |
|
| CycleMigrationType |
string |
The synchronization type that requires periodic scheduling. Valid values:
|
Full |
| ScheduleParameters |
string |
The scheduling parameters. |
bizdate=$bizdate |
| DdlHandlingSettings |
array<object> |
The DDL operation types. Valid values:
|
|
|
object |
The type of the DDL operation. Valid values:
|
||
| Action |
string |
The processing policy for a specific type of DDL message. Valid values:
|
Ignore |
| Type |
string |
The DDL operation type. Valid values:
|
CreateTable |
| RuntimeSettings |
array<object> |
The runtime settings. |
|
|
object |
The runtime setting. |
||
| Name |
string |
The name of the configuration item. Valid values:
|
runtime.offline.concurrent |
| Value |
string |
The value of the configuration item. |
1 |
| MigrationType |
string |
Jenis sinkronisasi. Nilai yang valid:
|
FullAndRealtimeIncremental |
| JobType |
string |
Jenis pekerjaan.
|
DatabaseRealtimeMigration |
| ProjectId |
integer |
ID ruang kerja DataWorks untuk panggilan API. Anda dapat memperoleh ID ruang kerja dari halaman Konfigurasi Ruang Kerja di konsol DataWorks. |
98330 |
| ResourceSettings |
object |
Pengaturan sumber daya. |
|
| OfflineResourceSettings |
object |
The resource used for batch synchronization. |
|
| RequestedCu |
number |
The number of compute units (CUs) in the resource group for scheduling that are used for batch synchronization. |
2.0 |
| ResourceGroupIdentifier |
string |
The identifier of the resource group for Data Integration used for batch synchronization. |
di_resourcegroup_v1 |
| RealtimeResourceSettings |
object |
The resource used for real-time synchronization. |
|
| RequestedCu |
number |
The number of CUs in the resource group for Data Integration that are used for real-time synchronization. |
2.0 |
| ResourceGroupIdentifier |
string |
The identifier of the resource group for Data Integration used for real-time synchronization. |
di_resourcegroup_v1 |
| ScheduleResourceSettings |
object |
The resource used for scheduling. |
|
| RequestedCu |
number |
The number of CUs in the resource group for Data Integration that are used for scheduling. |
2.0 |
| ResourceGroupIdentifier |
string |
The identifier of the resource group for scheduling used by the synchronization task. |
schedual_resourcegroup_v1 |
| SourceDataSourceSettings |
array<object> |
Pengaturan untuk sumber data sumber. |
|
|
array<object> |
Pengaturan untuk sumber data sumber. |
||
| DataSourceName |
string |
The name of the data source. |
dw_mysql |
| DataSourceProperties |
object |
The properties of the data source. |
|
| Encoding |
string |
The encoding format of the database. |
UTF-8 |
| Timezone |
string |
The time zone. |
GMT+8 |
| SourceDataSourceType |
string |
Jenis sumber data sumber. Nilai yang valid: |
Mysql |
| TableMappings |
array<object> |
Daftar pemetaan untuk transformasi objek. Setiap elemen dalam daftar menjelaskan sekumpulan aturan pemilihan untuk objek sumber dan sekumpulan aturan transformasi yang berlaku untuk objek yang dipilih. Catatan
[ { "SourceObjectSelectionRules":[ { "ObjectType":"Database", "Action":"Include", "ExpressionType":"Exact", "Expression":"biz_db" }, { "ObjectType":"Schema", "Action":"Include", "ExpressionType":"Exact", "Expression":"s1" }, { "ObjectType":"Table", "Action":"Include", "ExpressionType":"Exact", "Expression":"table1" } ], "TransformationRuleNames":[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema" } ] } ] |
|
|
array<object> |
Pemetaan yang mendefinisikan objek sumber dan aturan transformasi yang akan diterapkan. |
||
| SourceObjectSelectionRules |
array<object> |
The list of rules used to select synchronization objects in the source. |
|
|
object |
The rule used to select synchronization objects in the source. The objects can be databases or tables. |
||
| Action |
string |
The operation that is performed to select objects. Valid values: Include and Exclude. |
Include |
| Expression |
string |
The expression. |
mysql_table_1 |
| ExpressionType |
string |
The expression type. Valid values: Exact and Regex. |
Exact |
| ObjectType |
string |
The object type. Valid values:
|
Table |
| TransformationRules |
array<object> |
The list of transformation rules that are applied to the synchronization objects selected from the source. Each entry in the list defines a transformation rule. |
|
|
object |
The transformation rule that is applied to the synchronization objects selected from the source. |
||
| RuleName |
string |
The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique. |
rename_rule_1 |
| RuleActionType |
string |
The action type. Valid values:
|
AddColumn |
| RuleTargetType |
string |
The type of the object on which the action is performed. Valid values:
|
Table |
| TransformationRules |
array<object> |
Daftar definisi untuk aturan transformasi objek. Catatan
[ { "RuleName":"my_database_rename_rule", "RuleActionType":"Rename", "RuleTargetType":"Schema", "RuleExpression":"{\"expression\":\"${srcDatasoureName}_${srcDatabaseName}\"}" } ] |
|
|
object |
Definisi untuk aturan transformasi objek. |
||
| RuleActionType |
string |
The action type. Valid values:
|
Rename |
| RuleExpression |
string |
The expression of the rule. The expression is a JSON string.
|
{"expression":"${srcDatasoureName}_${srcDatabaseName}"} |
| RuleName |
string |
The name of the rule. If the values of the RuleActionType parameter and the RuleTargetType parameter are the same for multiple transformation rules, you must make sure that the transformation rule names are unique. |
rename_rule_1 |
| RuleTargetType |
string |
The type of the object on which the action is performed. Valid values:
|
Table |
| JobStatus |
string |
Status pekerjaan. Nilai yang valid:
|
Running |
DIJobId
deprecated
|
string |
Bidang ini sudah usang. Gunakan bidang |
32601 |
| Owner |
string |
Contoh
Respons sukses
JSONformat
{
"RequestId": "C99E2BE6-9DEA-5C2E-8F51-1DDCFEADE490",
"PagingInfo": {
"Id": 32601,
"Description": "description",
"DestinationDataSourceSettings": [
{
"DataSourceName": "dw_mysql"
}
],
"DestinationDataSourceType": "Hologres",
"JobName": "imp_ods_dms_det_dealer_info_df",
"JobSettings": {
"ChannelSettings": "{\"structInfo\":\"MANAGED\",\"storageType\":\"TEXTFILE\",\"writeMode\":\"APPEND\",\"partitionColumns\":[{\"columnName\":\"pt\",\"columnType\":\"STRING\",\"comment\":\"\"}],\"fieldDelimiter\":\"\"}",
"ColumnDataTypeSettings": [
{
"DestinationDataType": "text",
"SourceDataType": "bigint"
}
],
"CycleScheduleSettings": {
"CycleMigrationType": "Full",
"ScheduleParameters": "bizdate=$bizdate\n"
},
"DdlHandlingSettings": [
{
"Action": "Ignore",
"Type": "CreateTable"
}
],
"RuntimeSettings": [
{
"Name": "runtime.offline.concurrent\n",
"Value": "1"
}
]
},
"MigrationType": "FullAndRealtimeIncremental",
"JobType": "DatabaseRealtimeMigration",
"ProjectId": 98330,
"ResourceSettings": {
"OfflineResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "di_resourcegroup_v1"
},
"RealtimeResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "di_resourcegroup_v1"
},
"ScheduleResourceSettings": {
"RequestedCu": 2,
"ResourceGroupIdentifier": "schedual_resourcegroup_v1"
}
},
"SourceDataSourceSettings": [
{
"DataSourceName": "dw_mysql",
"DataSourceProperties": {
"Encoding": "UTF-8\n",
"Timezone": "GMT+8\n"
}
}
],
"SourceDataSourceType": "Mysql",
"TableMappings": [
{
"SourceObjectSelectionRules": [
{
"Action": "Include",
"Expression": "mysql_table_1",
"ExpressionType": "Exact",
"ObjectType": "Table"
}
],
"TransformationRules": [
{
"RuleName": "rename_rule_1",
"RuleActionType": "AddColumn",
"RuleTargetType": "Table"
}
]
}
],
"TransformationRules": [
{
"RuleActionType": "Rename",
"RuleExpression": "{\"expression\":\"${srcDatasoureName}_${srcDatabaseName}\"}",
"RuleName": "rename_rule_1",
"RuleTargetType": "Table"
}
],
"JobStatus": "Running",
"DIJobId": "32601",
"Owner": ""
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.