Mengkueri peristiwa untuk tugas sinkronisasi.
Deskripsi operasi
Operasi API ini tersedia untuk semua edisi DataWorks.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DIJobId |
integer |
No |
ID tugas sinkronisasi. |
11588 |
| EventType |
string |
Yes |
Jenis peristiwa yang ingin Anda kueri. Nilai yang valid: Failover, Alarm, dan DDL. |
Alarm |
| StartTime |
integer |
Yes |
Awal rentang waktu yang akan dikueri. |
1716971005 |
| EndTime |
integer |
Yes |
Akhir rentang waktu yang akan dikueri. |
1717971005 |
| PageNumber |
integer |
No |
Nomor halaman. Halaman dimulai dari halaman 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri per halaman. Nilai default: 10. Nilai maksimum: 100. |
10 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons |
||
| RequestId |
string |
ID permintaan. Anda dapat menemukan log dan memecahkan masalah berdasarkan ID tersebut. |
645F6D68-9C29-5961-80B1-BDD4B794C22D |
| PagingInfo |
object |
Informasi paginasi. |
|
| TotalCount |
integer |
Jumlah total entri yang dikembalikan. |
2524 |
| PageSize |
integer |
Jumlah entri per halaman. |
10 |
| PageNumber |
integer |
Nomor halaman. |
1 |
| DIJobEvent |
array<object> |
Peristiwa yang dikembalikan. Nilai parameter ini berupa larik. |
|
|
object |
Detail tentang satu peristiwa. |
||
| Id |
string |
The event ID. |
1 |
| CreateTime |
string |
The time when the event was created. |
1663573162 |
| FailoverMessage |
string |
The error logs for failovers. |
2024-05-29 15:11:31,377 [main] INFO com.*.**.di.core.metrics.:21 [] {****} 2024-05-29 15:11:31,384 [main] INFO *.aliyun.*.di.*.*.metrics.*:27 [] - Open MarioDiReporter 2024-05-29 15:11:33,248 [flink-akka.*.*-dispatcher-17] INFO |
| Severity |
string |
The severity level of the alert. Valid values: Warning and Critical. |
Warning |
| Channels |
string |
The alert notification method. Valid values: Phone, Mail, Sms, Ding, and Webhook. |
Phone |
| Status |
string |
The sending status of an alert notification. Valid values: Success, Fail, and Silence. |
Success |
| Detail |
string |
The alert details. |
aggregator:avg [**] for 5 minutes, service maybe abnormal |
| Type |
string |
The type of the alert event.
|
Delay |
| Action |
string |
The processing result of the DDL event. Valid values: Critical, Ignore, Normal, and Warning. |
Ignore |
| SrcTable |
string |
The name of the source table. |
table1 |
| DstTable |
string |
The name of the destination table. |
table2 |
| SrcSql |
string |
The DDL statement of the source table. |
alter table table1 *** |
| DstSql |
string |
The DDL statement of the destination table. |
alter table table2 *** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "645F6D68-9C29-5961-80B1-BDD4****",
"PagingInfo": {
"TotalCount": 2524,
"PageSize": 10,
"PageNumber": 1,
"DIJobEvent": [
{
"Id": "1",
"CreateTime": "1663573162",
"FailoverMessage": "2024-05-29 15:11:31,377 [main] INFO com.*.**.di.core.metrics.:21 [] {****} \n2024-05-29 15:11:31,384 [main] INFO *.aliyun.*.di.*.*.metrics.*:27 [] - Open MarioDiReporter \n2024-05-29 15:11:33,248 [flink-akka.*.*-dispatcher-17] INFO ",
"Severity": "Warning",
"Channels": "Phone",
"Status": "Success",
"Detail": "数据集成同步任务异常: Level: WARNING, DataWorks项目名:** [Region: cn-shanghai], 任务名:**, 报警规则:业务延迟, aggregator:avg [**] for 5 minutes, service maybe abnormal",
"Type": "Delay",
"Action": "Ignore",
"SrcTable": "table1",
"DstTable": "table2",
"SrcSql": "alter table table1 ***",
"DstSql": "alter table table2 ***"
}
]
}
}
Kode kesalahan
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.